allowShortBreakForAnotherApp static method

Future<void> allowShortBreakForAnotherApp(
  1. bool continueSession
)

This method is used for pausing session when navigating to another app

continueSession is boolean

eg: allowShortBreakForAnotherApp(true) ---> will stop session until user comes back to app. Current Session will not be stopped.

Implementation

static Future<void> allowShortBreakForAnotherApp(bool continueSession) async {
  await _channel
      .invokeMethod('allowShortBreakForAnotherApp', {"key": continueSession});
}