appLoadingFinished static method

Future<String?> appLoadingFinished()

Call this function when app is loaded, so that the app launch duration can be recorded. Should be called after init. returns the error or success message

Implementation

static Future<String?> appLoadingFinished() async {
  log('Calling "appLoadingFinished"');
  if (!_instance._countlyState.isInitialized) {
    String message = '"initWithConfig" must be called before "appLoadingFinished"';
    log('appLoadingFinished, $message', logLevel: LogLevel.WARNING);
    return message;
  }
  final String? result = await _channel.invokeMethod('appLoadingFinished');

  return result;
}