Partager via


XblPresenceAddTitlePresenceChangedHandler

Registers an event handler for title presence change notifications. Notifications will only be received for the Users and Titles configured with XblPresenceTrackUsers and XblPresenceTrackAdditionalTitles respectively.

Syntax

XblFunctionContext XblPresenceAddTitlePresenceChangedHandler(  
         XblContextHandle xblContextHandle,  
         XblPresenceTitlePresenceChangedHandler* handler,  
         void* context  
)  

Parameters

xblContextHandle   _In_
Type: XblContextHandle

Xbox live context for the local user.

handler   _In_
Type: XblPresenceTitlePresenceChangedHandler*

The callback function that receives notifications.

context   _In_opt_
Type: void*

Caller context that will be passed back to the handler.

Return value

Type: XblFunctionContext

An XblFunctionContext object that can be used to unregister the event handler.

Requirements

Header: presence_c.h

Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

presence_c