ZJAndroid class

ZJSdk

Constructors

ZJAndroid.new()

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?>
获取ZJSdk版本号
no setter

Static Methods

contentAd(String posId, {dynamic contentAdListener(ZJEvent ret)?}) → void
原生展示视频内容
h5Page(String posId, String userId, {dynamic h5PageListener(ZJEvent ret)?}) → void
H5页面
init(String appId, {bool isDebug = true, int gdpr = -1, int coppa = -1, int ccpa = -1, int age = 0, ZJCustomController? customController, dynamic initListener(ZJEvent ret)?}) → void
初始化SDK
initWithoutStart(String appId, {bool isDebug = true, int gdpr = -1, int coppa = -1, int ccpa = -1, int age = 0, ZJCustomController? customController}) → void
初始化SDK 可以在进入应用后立即调用 返回是否初始化成功
interstitial(String posId, {String userId = "", bool videoSoundEnable = true, bool isPreLoad = false, int flags = 0, dynamic interstitialListener(ZJEvent ret)?}) → void
插全屏
loadRewardVideo(String posId, String userId, dynamic rewardListener(ZJEvent ret), {bool videoSoundEnable = true, String extra = "", bool isPreLoad = false, int flags = 0}) → void
加载激励视频
loadSplashAd(String posId, {String bgResType = "", String bgResName = "", dynamic splashListener(ZJEvent ret)?}) → void
加载原生开屏
newsAd(String posId, String userId, {dynamic newsAdListener(ZJEvent ret)?}) → void
原生展示新闻资讯
onInterstitialAdBidFailed(BidFailedReasonCode reasonCode, int firstECPM, {int bidType = 0, BidAdnId firstAdnId = BidAdnId.OTHER, String adUserName = "", String adTitle = "", BidMaterialType adnMaterialType = BidMaterialType.REPORT_MATERIAL_TYPE_OTHER, String adnMaterialUrl = "", bool isShow = false, bool isClick = false, int ts = 0}) → void
插全屏广告广告竞败后,上报失败原因
onInterstitialAdBidSuccess(int secondECPM, {int secondType = 0, BidAdnId secondAdnId = BidAdnId.OTHER}) → void
插全屏广告通知SDK竞胜
onRewardVideoBidFailed(BidFailedReasonCode reasonCode, int firstECPM, {int firstType = 0, BidAdnId firstAdnId = BidAdnId.OTHER, String adUserName = "", String adTitle = "", BidMaterialType adnMaterialType = BidMaterialType.REPORT_MATERIAL_TYPE_OTHER, String adnMaterialUrl = "", bool isShow = false, bool isClick = false, int ts = 0}) → void
激励广告竞败后,上报失败原因
onRewardVideoBidSuccess(int secondECPM, {int secondType = 0, BidAdnId secondAdnId = BidAdnId.OTHER}) → void
通知SDK激励广告竞胜
setPersonalRecommend(bool state) → void
配置个性化推荐开关 state 是否开启推荐
setProgrammaticRecommend(bool state) → void
配置程序化推荐开关 state 是否开启推荐
showInterstitial(dynamic interstitialListener(ZJEvent ret)?) → void
展示插全屏
showRewardVideo(dynamic rewardListener(ZJEvent ret)?) → void
展示激励视频
start({dynamic onStartListener(ZJEvent ret)?}) → void
启动SDK 需要在用户同意隐私政策之后尽快调用
taskAd(String posId, String userId, ZJTaskPage page, {dynamic taskAdListener(ZJEvent ret)?}) → void
任务墙