appStop method

Future<bool> appStop(
  1. int startTime,
  2. int timeLength
)

app退出 startTime 启动时间,时间戳 单位秒 timeLength 访问时长

Implementation

Future<bool> appStop(int startTime, int timeLength) async {
  if (!_supportPlatform || !isInitialize) return false;
  final bool? state = await _channel.invokeMethod<bool>(
      'appStop', {'startTime': startTime, 'timeLength': timeLength});
  return state ?? false;
}