shutdown method

Future<MoveShutdownResult> shutdown({
  1. bool force = true,
})

Shutdown SDK shared instance.

Stops SDK services, sends the queued user data, and de-intialized the SDK. After that is executed, the SDK State.uninitialized is triggered. The force parameter (default: true) will discard pending data to be uploaded. With force = true shudown will always succseed. Returns when shutdown completed or failed.

Implementation

Future<MoveShutdownResult> shutdown({bool force = true}) {
  return MovesdkPlatform.instance.shutdown(force: force);
}