setMaxSessionLength static method

Future<void> setMaxSessionLength(
  1. double seconds
)

Sets the maximum recording time. Must be called before begin.

Minimum value is 60 seconds, else the value defined in the build settings will be used. The maximum value is the lowest value between this value and the value defined in the build settings. Time is rounded to the nearest minute.

Implementation

static Future<void> setMaxSessionLength(double seconds) async {
  TestFairyBase.prepareTwoWayInvoke();
  await TestFairyBase.channel
      .invokeMethod<void>('setMaxSessionLength', seconds);
}