initialize static method

Future<void> initialize(
  1. String apiKey, {
  2. String? localConfigurationPath,
  3. String? remoteConfigurationURL,
  4. String? providerId,
  5. bool disableDidomiRemoteConfig = false,
  6. String? languageCode,
  7. String? noticeId,
  8. String? androidTvNoticeId,
  9. bool androidTvEnabled = false,
})

Initialize the SDK

Implementation

static Future<void> initialize(String apiKey,
        {String? localConfigurationPath,
        String? remoteConfigurationURL,
        String? providerId,
        bool disableDidomiRemoteConfig = false,
        String? languageCode,
        String? noticeId,
        String? androidTvNoticeId,
        bool androidTvEnabled = false}) async =>
    await _channel.invokeMethod("initialize", {
      "apiKey": apiKey,
      "localConfigurationPath": localConfigurationPath,
      "remoteConfigurationURL": remoteConfigurationURL,
      "providerId": providerId,
      "disableDidomiRemoteConfig": disableDidomiRemoteConfig,
      "languageCode": languageCode ?? Platform.localeName,
      "noticeId": noticeId,
      "androidTvNoticeId": androidTvNoticeId,
      "androidTvEnabled": androidTvEnabled
    });