XblRealTimeActivityAddConnectionStateChangeHandler

Registers a handler function to receive a notification that is sent when the client service loses or gains connectivity to the real time activity service.

Syntax

XblFunctionContext XblRealTimeActivityAddConnectionStateChangeHandler(  
         XblContextHandle xboxLiveContext,  
         XblRealTimeActivityConnectionStateChangeHandler* handler,  
         void* context  
)  

Parameters

xboxLiveContext   _In_
Type: XblContextHandle

Xbox Live context handle.

handler   _In_
Type: XblRealTimeActivityConnectionStateChangeHandler*

The callback function that receives notifications.

context   _In_opt_
Type: void*

Caller context that will be passed back to the handler function.

Return value

Type: XblFunctionContext

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

Requirements

Header: real_time_activity_c.h

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

See also

real_time_activity_c