Udostępnij za pośrednictwem


GameChatOverlayMessageSource.MessageReceived Event

Definition

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) 

Event Type

Applies to