TPOfferwall class
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
-
awardBalance(String adUnitId, int count)
→ Future<void>
-
添加用户积分墙积分:adUnitId 广告位ID,count 添加的数量
-
callback(TPOfferwallAdListener listener, String adUnitId, String method, Map arguments)
→ dynamic
-
-
构建ExtraMap,isAutoLoad 是否开启自动记载 默认开启, customMap 流量分组等自定义数据
-
entryOfferwallAdScenario(String adUnitId, {String? sceneId})
→ Future<void>
-
进入广告场景:adUnitId 广告位ID ,sceneId 从Tradplus后台获取到到场景ID
-
getCurrencyBalance(String adUnitId)
→ Future<void>
-
查询当前用户积分墙积分:adUnitId 广告位ID
-
loadOfferwallAd(String adUnitId, {})
→ Future<void>
-
加载广告:adUnitId 广告位ID, extraMap = createOfferwallExtraMap
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
offerwallAdReady(String adUnitId)
→ Future<bool>
-
广告是否ready:adUnitId 广告位ID
-
setCustomAdInfo(String adUnitId, Map customAdInfo)
→ Future<void>
-
开发者通过此接口在展示前设置透传信息,透传信息可以在广告展示后的相关回调的adInfo中获取
-
setOfferwallListener(TPOfferwallAdListener listener, {String adUnitId = ""})
→ dynamic
-
设置广告Listener:adUnitId 设置后只返回指定广告位相关回调(可选)
-
setUserId(String adUnitId, String userId)
→ Future<void>
-
设置用户ID
-
showOfferwallAd(String adUnitId, {String? sceneId})
→ Future<void>
-
展示广告:adUnitId 广告位ID ,sceneId 从Tradplus后台获取到到场景ID
-
spendBalance(String adUnitId, int count)
→ Future<void>
-
扣除用户积分墙积分:adUnitId 广告位ID,count 扣除的数量
-
toString()
→ String
-
A string representation of this object.
inherited