> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblRealTimeActivityAddResyncHandler

> XblRealTimeActivityAddResyncHandler

# XblRealTimeActivityAddResyncHandler

Registers a handler function to receive a notification that is sent when there is a resync message from the real time activity service.

## Syntax

```cpp theme={null}
XblFunctionContext XblRealTimeActivityAddResyncHandler(  
         XblContextHandle xboxLiveContext,  
         XblRealTimeActivityResyncHandler* handler,  
         void* context  
)  
```

### Parameters

*xboxLiveContext*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XBOX Live context handle.

*handler*   \_In\_\
Type: XblRealTimeActivityResyncHandler\*

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

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

## Remarks

This message indicates that data may have been lost and to resync all data by calling corresponding REST API's. Wherever possible, XSAPI will automatically resync the subscription and invoke the corresponding handler. For multiplayer session changed subscriptions, titles must resync their own sessions.

## Requirements

**Header:** real\_time\_activity\_c.h

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

## See also

[real\_time\_activity\_c](/reference/live/xsapi-c/real_time_activity_c/real_time_activity_c_members)


## Related topics

- [XblRealTimeActivityResyncHandler](/reference/live/xsapi-c/real_time_activity_c/functions/xblrealtimeactivityresynchandler.md)
- [XblRealTimeActivityRemoveResyncHandler](/reference/live/xsapi-c/real_time_activity_c/functions/xblrealtimeactivityremoveresynchandler.md)
- [XblRealTimeActivityAddConnectionStateChangeHandler](/reference/live/xsapi-c/real_time_activity_c/functions/xblrealtimeactivityaddconnectionstatechangehandler.md)
- [XblRealTimeActivitySubscriptionErrorHandler](/reference/live/xsapi-c/real_time_activity_c/functions/xblrealtimeactivitysubscriptionerrorhandler.md)
- [XblRealTimeActivityConnectionStateChangeHandler](/reference/live/xsapi-c/real_time_activity_c/functions/xblrealtimeactivityconnectionstatechangehandler.md)
