Skip to main content

XblPresenceAddDevicePresenceChangedHandler

Registers an event handler for device presence change notifications. Notifications will only be received for the Users configured with XblPresenceTrackUsers.

Syntax

Parameters

xblContextHandle   _In_
Type: XblContextHandle
XBOX live context for the local user. handler   _In_
Type: XblPresenceDevicePresenceChangedHandler*
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
Last modified on August 20, 2026