Skip to content

Syncing Spaces APIs Android

Raghavendran Sundaraganesh edited this page Mar 1, 2023 · 3 revisions

Syncing Spaces API's

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

Syncing Spaces API Examples

  1. Registering a setOnInitialSpacesSyncCompletedListener

    webex.spaces.setOnInitialSpacesSyncCompletedListener( CompletionHandler { result->
        if(result.isSuccessful){
            //Initial Sync successful
        } 
    }
  2. 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
            }
         }
    }   
  3. Getting isSpacesSyncCompleted status

     webex.spaces.isSpacesSyncCompleted()
     // returns true if Spaces Sync is completed
     // returns false if Spaces Sync is InProgress
Clone this wiki locally