startImmediateUpdate static method

Future<PlayxVersionUpdateResult<bool>> startImmediateUpdate()

Starts immediate update flow. In the immediate flow, the method returns one of the following values of the PlayxVersionUpdateResult: bool : The user accepted and the update succeeded. (which, in practice, your app never should never receive because it already updated). ActivityNotFoundError : When the user started the update flow from background. PlayxInAppUpdateCanceledError : The user denied or canceled the update. PlayxInAppUpdateInfoRequestCanceledError : Checking update availability was canceled. PlayxInAppUpdateFailedError : The flow failed either during the user confirmation, the download, or the installation. DefaultFailureError : other errors that may occur during the update flow.

Implementation

static Future<PlayxVersionUpdateResult<bool>> startImmediateUpdate() async {
  return PlayxVersionUpdatePlatform.instance.startImmediateUpdate();
}