XblPresenceSubscribeToDevicePresenceChange

Subscribes to device presence change notifications. DEPRECATED. This API continues to work, however it will be removed in a future release. Individual RTA subscription will be managed automatically by XSAPI as users are tracked with XblPresenceTrackUsers.

Syntax

HRESULT XblPresenceSubscribeToDevicePresenceChange(  
         XblContextHandle xblContextHandle,  
         uint64_t xuid,  
         XblRealTimeActivitySubscriptionHandle* subscriptionHandle  
)  

Parameters

xblContextHandle   _In_
Type: XblContextHandle

Xbox live context for the local user.

xuid   _In_
Type: uint64_t

The Xbox User ID of the person of the subscription.

subscriptionHandle   _Out_
Type: XblRealTimeActivitySubscriptionHandle*

Passes back the subscription handle that will be used to unsubscribe.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Requirements

Header: presence_c.h

Library: Microsoft.Xbox.Services.141.GSDK.C.lib

See also

presence_c