GameChatOverlayMessageSource.MessageReceived Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Event raised every time a message is received. This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, your app cannot use this API.
// Register
event_token MessageReceived(TypedEventHandler<GameChatOverlayMessageSource, GameChatMessageReceivedEventArgs const&> const& handler) const;
// Revoke with event_token
void MessageReceived(event_token const* cookie) const;
// Revoke with event_revoker
GameChatOverlayMessageSource::MessageReceived_revoker MessageReceived(auto_revoke_t, TypedEventHandler<GameChatOverlayMessageSource, GameChatMessageReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<GameChatOverlayMessageSource,GameChatMessageReceivedEventArgs> MessageReceived;
function onMessageReceived(eventArgs) { /* Your code */ }
gameChatOverlayMessageSource.addEventListener("messagereceived", onMessageReceived);
gameChatOverlayMessageSource.removeEventListener("messagereceived", onMessageReceived);
- or -
gameChatOverlayMessageSource.onmessagereceived = onMessageReceived;
Public Custom Event MessageReceived As TypedEventHandler(Of GameChatOverlayMessageSource, GameChatMessageReceivedEventArgs)