-
Notifications
You must be signed in to change notification settings - Fork 31
Syncing Spaces APIs Android
Raghavendran Sundaraganesh edited this page Mar 1, 2023
·
3 revisions
Syncing Spaces API's can be used to show loading indicator or wait till syncing is completed after login. These API's are available from v3.8.0 onwards
-
Registering a setOnInitialSpacesSyncCompletedListener
webex.spaces.setOnInitialSpacesSyncCompletedListener( CompletionHandler { result-> if(result.isSuccessful){ //Initial Sync successful } }
-
Registering a setOnSpaceSyncingStatusChangedListener
webex.spaces.setOnSpaceSyncingStatusChangedListener( CompletionHandler { result-> if(result.isSuccessful){ //result.data gives the sync status if(result.data){ // result.data will be true if Spaces Sync is InProgress } else{ // result.data will be false if Spaces Sync is completed } } }
-
Getting isSpacesSyncCompleted status
webex.spaces.isSpacesSyncCompleted() // returns true if Spaces Sync is completed // returns false if Spaces Sync is InProgress