createLightInstance method

Future<ThinkingAnalyticsAPI> createLightInstance()

Creates a light instance.

Light instance shares most configuration like APP ID and Server URL with the master instance. But the user IDs of light instance are different with its master instance.

Implementation

Future<ThinkingAnalyticsAPI> createLightInstance() async {
  String? lightAppId = await _channel.invokeMethod<String>(
      'createLightInstance', <String, dynamic>{'appId': this._appId});

  return ThinkingAnalyticsAPI.private(lightAppId!);
}