GameChatOverlayMessageSource.MessageReceived 事件

定义

每次收到消息时引发的事件。 此 API 并非适用于所有应用。 除非你的开发人员帐户由 Microsoft 专门预配,否则你的应用不能使用此 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) 

事件类型

适用于