register static method

Future<bool> register({
  1. required String androidId,
  2. required String iosId,
  3. int? personalized,
  4. bool? debug,
  5. int? channelId,
})

SDK注册初始化

androidId androidId 必填

iosId iosId 必填

channelId channelId 渠道id FlutterTencentadChannel

personalized personalized 是否开启个性化广告 FlutterTencentadPersonalized

Implementation

static Future<bool> register({
  required String androidId,
  required String iosId,
  int? personalized,
  bool? debug,
  int? channelId,
}) async {
  return await _channel.invokeMethod("register", {
    "androidId": androidId,
    "iosId": iosId,
    "debug": debug ?? false,
    "channelId": channelId ?? FlutterTencentadChannel.other,
    "personalized": personalized ?? FlutterTencentadPersonalized.show,
  });
}