@@ -3495,9 +3495,14 @@ typedef enum realm_flx_sync_subscription_set_state {
34953495typedef void (*realm_sync_on_subscription_state_changed_t )(realm_userdata_t userdata,
34963496 realm_flx_sync_subscription_set_state_e state);
34973497
3498+ typedef void (*realm_user_changed_callback_t )(realm_userdata_t userdata, realm_user_state s);
3499+
3500+
34983501typedef struct realm_async_open_task_progress_notification_token realm_async_open_task_progress_notification_token_t ;
34993502typedef struct realm_sync_session_connection_state_notification_token
35003503 realm_sync_session_connection_state_notification_token_t ;
3504+ typedef struct realm_sync_user_subscription_token
3505+ realm_sync_user_subscription_token_t ;
35013506
35023507/* *
35033508 * Callback function invoked by the async open task once the realm is open and fully synchronized.
@@ -3894,6 +3899,13 @@ RLM_API realm_sync_session_connection_state_notification_token_t* realm_sync_ses
38943899 realm_sync_session_t *, realm_sync_progress_func_t , realm_sync_progress_direction_e, bool is_streaming,
38953900 realm_userdata_t userdata, realm_free_userdata_func_t userdata_free) RLM_API_NOEXCEPT;
38963901
3902+
3903+ // register callback for tracking user status.
3904+ RLM_API realm_sync_user_subscription_token_t *
3905+ realm_sync_user_state_change_register_callback (
3906+ realm_user_t *, realm_user_changed_callback_t , realm_userdata_t userdata,
3907+ realm_free_userdata_func_t userdata_free);
3908+
38973909/* *
38983910 * Register a callback that will be invoked when all pending downloads have completed.
38993911 */
0 commit comments