Skip to main content

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

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.14x.GDK.C.lib

See also

real_time_activity_c
Last modified on August 20, 2026