AndroidConfig constructor

const AndroidConfig({
  1. required String appId,
  2. bool? debug,
  3. bool? allowShowNotify,
  4. bool supportMultiProcess = false,
  5. List<int> directDownloadNetworkType = const [],
  6. bool? isPaidApp,
  7. bool? useTextureView = true,
  8. AndroidTitleBarTheme titleBarTheme = AndroidTitleBarTheme.light,
  9. bool? isCanUseLocation,
  10. PangleLocation? location,
  11. bool? isCanUsePhoneState,
  12. String? devImei,
  13. bool? isCanUseWifiState,
  14. bool? isCanUseWriteExternal,
  15. String? devOaid,
})

Register the ad config for Android

appId 必选参数,设置应用的AppId debug 测试阶段打开,可以通过日志排查问题,上线时去除该调用 allowShowNotify 是否允许sdk展示通知栏提示 supportMultiProcess 可选参数,设置是否支持多进程:true支持、false不支持。默认为false不支持 directDownloadNetworkType (仅国内)可选参数,允许直接下载的网络状态集合 isPaidApp 可选参数,设置是否为计费用户:true计费用户、false非计费用户。默认为false非计费用户。须征得用户同意才可传入该参数 useTextureView 可选参数,设置是否使用texture播放视频:true使用、false不使用。默认为false不使用(使用的是surface) 暂时修改为默认true 使用TextureView渲染视频 titleBarTheme 可选参数,设置落地页主题,默认为light TODO (keywords) 可选参数,设置用户画像的关键词列表 不能超过为1000个字符。须征得用户同意才可传入该参数 isCanUseLocation (仅国内)是否允许SDK主动使用地理位置信息。true可以获取,false禁止获取。默认为true location (仅国内)当isCanUseLocation=false时,可传入地理位置信息,穿山甲sdk使用您传入的地理位置信息 isCanUsePhoneState (仅国内)是否允许SDK主动使用手机硬件参数,如:imei。true可以使用,false禁止使用。默认为true devImei (仅国内)当isCanUsePhoneState=false时,可传入imei信息,穿山甲sdk使用您传入的imei信息 isCanUseWifiState (仅国内)是否允许SDK主动使用ACCESS_WIFI_STATE权限。true可以使用,false禁止使用。默认为true isCanUseWriteExternal (仅国内)是否允许SDK主动使用WRITE_EXTERNAL_STORAGE权限。true可以使用,false禁止使用。默认为true devOaid (仅国内)开发者可以传入oaid

Implementation

const AndroidConfig({
  required this.appId,
  this.debug,
  this.allowShowNotify,
  this.supportMultiProcess = false,
  this.directDownloadNetworkType = const [],
  this.isPaidApp,
  this.useTextureView = true,
  this.titleBarTheme = AndroidTitleBarTheme.light,
  this.isCanUseLocation,
  this.location,
  this.isCanUsePhoneState,
  this.devImei,
  this.isCanUseWifiState,
  this.isCanUseWriteExternal,
  this.devOaid,
});