startWithConfiguration static method

Future<void> startWithConfiguration(
  1. TTSDKConfiguration configuration
)

Implementation

static Future<void> startWithConfiguration(TTSDKConfiguration configuration) async {
  Map<String, dynamic> modelMap = configuration.toJson();
  TTFLogger.i('FlutterTTSDKManager', 'startWithConfiguration:$modelMap');
  await methodChannel.invokeMethod<void>('startWithConfiguration', modelMap);
  await methodChannel.invokeMethod('setTrackCustomHeader', {
    'appId': configuration.appID,
    'headers': {
      'flutter_sdk_version_vod': TTSDK_FLUTTER_VERSION,
    }
  });
}