TPBanner class
Constructors
- TPBanner()
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
- 广告位是否ready:adUnitId 广告位ID
-
callback(
TPBannerAdListener listener, String adUnitId, String method, Map arguments) → dynamic -
createBannerExtraMap(
{double height = 0, double width = 0, Map? customMap, String? sceneId, Map? localParams, bool? closeAutoDestroy = false, int contentMode = 0, bool openAutoLoadCallback = false, double maxWaitTime = 0, String? backgroundColor}) → Map - 构建ExtraMap:height 高度,width 宽度,customMap 流量分组等自定义数据,sceneId 场景ID contentMode 居中模式 仅iOS支持 0 = 顶部水平居中;1 = 垂直居中并水平居中; 2 = 底边水平居中;其他 = 0 closeAutoDestroy 是否关闭自动destroy 仅安卓支持 backgroundColor 背景色 例:#FFFFFF
-
entryBannerAdScenario(
String adUnitId, {String? sceneId}) → Future< void> - 进入广告场景:adUnitId 广告位ID ,sceneId 从Tradplus后台获取到到场景ID
-
loadBannerAd(
String adUnitId, {Map? extraMap}) → Future< void> - 加载广告:adUnitId 广告位ID, extraMap = createBannerExtraMap
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBannerListener(
TPBannerAdListener listener, {String adUnitId = ""}) → dynamic - 设置广告Listener:adUnitId 设置后只返回指定广告位相关回调(可选)
-
setCustomAdInfo(
String adUnitId, Map customAdInfo) → Future< void> - 开发者通过此接口在展示前设置透传信息,透传信息可以在广告展示后的相关回调的adInfo中获取
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited