IPDAndroid class

IPDSdk

Constructors

IPDAndroid()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

sdkVersion Future<String?>
获取IPDSDK版本号
no setter

Static Methods

contentAd(String posId, {String userId = "", dynamic contentAdListener(IPDEvent ret)?}) → void
原生展示视频内容
h5Page(String posId, String userId, {dynamic h5PageListener(IPDEvent ret)?}) → void
H5页面
init(String appId, {bool isDebug = true, int gdpr = -1, int coppa = -1, int ccpa = -1, int age = 0, IPDCustomController? customController, dynamic initListener(IPDEvent ret)?}) → void
初始化SDK
initWithoutStart(String appId, {bool isDebug = true, int gdpr = -1, int coppa = -1, int ccpa = -1, int age = 0, IPDCustomController? customController}) → void
初始化SDK 可以在进入应用后立即调用 返回是否初始化成功
interstitial(String posId, {String userId = "", bool videoSoundEnable = true, bool isPreLoad = false, int flags = 0, dynamic interstitialListener(IPDEvent ret)?}) → void
插全屏
loadRewardVideo(String posId, String userId, dynamic rewardListener(IPDEvent ret), {bool videoSoundEnable = true, String extra = "", bool isPreLoad = false, int flags = 0}) → void
加载激励视频
loadSplashAd(String posId, {String userId = "", String bgResType = "", String bgResName = "", dynamic splashListener(IPDEvent ret)?}) → void
加载原生开屏
newsAd(String posId, String userId, {dynamic newsAdListener(IPDEvent ret)?}) → void
原生展示新闻资讯
setPersonalRecommend(bool state) → void
配置个性化推荐开关 state 是否开启推荐
setProgrammaticRecommend(bool state) → void
配置程序化推荐开关 state 是否开启推荐
showInterstitial(dynamic interstitialListener(IPDEvent ret)?) → void
展示插屏
showRewardVideo(dynamic rewardListener(IPDEvent ret)?) → void
展示激励视频
start({dynamic onStartListener(IPDEvent ret)?}) → void
启动SDK 需要在用户同意隐私政策之后尽快调用