logout static method

Future<void> logout(
  1. String deviceID
)

Logs out the current identified user and resets the session. The process will also unregister the user's device from receiving push notifications, and stop any ongoing session recording.

@param deviceID A unique device ID. This should be either an identifier unique to your system, or the app vendor identifier i.e. Android ID (Settings.Secure.ANDROID_ID) for Android and IDFV (UIDevice.identifierForVendor) for iOS, or Firebase installation ID.

@see {@link https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor/ UIDevice.identifierForVendor} @see {@link https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID Settings.Secure.ANDROID_ID} @see {@link https://firebase.google.com/docs/projects/manage-installations#monitor-id-lifecycle Firebase installation ID}

Implementation

static Future<void> logout(String deviceID) {
  return DevRevSDKPlatform.instance.logout(deviceID);
}