Syncing Spaces APIs Android - webex/webex-android-sdk GitHub Wiki
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