Log Out

Log out of Versus services.

Android

/**
* @return LoggedOutSuccessfully Bool - with few exceptions this method should always succeed and will simply return
* this bool which determines whether or not there were minor problems encountered along the way.
*/
fun logout(): VsLiveData<LoggedOutSuccesfully>
SDK.Account.logout().observe(object : VsObserver<Boolean>() {
  override fun onError(error: Throwable) {
  }

  override fun onChanged(t: LoggedOutSuccesfully) {
  }
})

iOS

/// - Parameters:
///     - completionHandler: This closure will be called when the user has been logged out
signOut(completionHandler: @escaping EmptyCompletionHandler)