GameChatOverlayMessageSource.MessageReceived 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
每次收到消息时引发的事件。 此 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)