AdManager class
广告管理 sdk只有首页banner广告和直播间广告 广告跳转只支持 1、内外链接 2、直播间 3、直播间游戏 4、业务方自定义广告(包括后台设置和sdk传入)
Constructors
- AdManager()
-
factory
Properties
- allAdModel ↔ AllAdModel?
-
getter/setter pair
-
customAdList
↔ List<
AdModel> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getHomeBannerAds(
) → List< AdModel> - 获取首页banner广告
-
getLiveRoomAds(
) → List< AdModel> - 获取直播间广告
-
init(
) → void - 初始化广告
-
jump(
BuildContext context, AdModel? adModel, {dynamic boostRoute = true}) → Future? -
boostRoutetrue:来自首页跳转。首页由于嵌入到业务方页面,来自首页的所有跳转都将以boost方式打开,即新起一个页面。boostRoutefalse:非首页跳转。非首页的跳转使用Navigator跳转即可。 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCustomAd(
String adJsonArray) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited