FlutterUnionad class

描述:字节跳动 穿山甲广告flutter版 @author guozi @e-mail gstory0404@gmail.com @time 2020/3/11

Constructors

FlutterUnionad()

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 Methods

bannerAdView({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, int? expressAdNum, int? expressTime, required double? expressViewWidth, required double? expressViewHeight, int? downloadType, bool? isUserInteractionEnabled, int? adLoadType, FlutterUnionadBannerCallBack? callBack}) Widget
banner广告
drawFeedAdView({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, required double expressViewWidth, required double expressViewHeight, int? downloadType, int? adLoadType, FlutterUnionadDrawFeedCallBack? callBack}) Widget
draw视频广告
getSDKVersion() Future<String>
获取SDK版本号
getThemeStatus() Future<int>
获取主题模式 0正常模式 1夜间模式
loadFullScreenVideoAdInteraction({required String androidCodeId, required String iosCodeId, int? orientation}) Future<bool>
预加载新模板渲染插屏
loadRewardVideoAd({required String androidCodeId, required String iosCodeId, required String rewardName, required int rewardAmount, required String userID, int? orientation, String? mediaExtra}) Future<bool>
激励视频广告预加载 (模版渲染)
nativeAdView({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, required double expressViewWidth, required double expressViewHeight, int? downloadType, int? adLoadType, FlutterUnionadNativeCallBack? callBack}) Widget
信息流广告
register({required String iosAppId, required String androidAppId, String? appName, bool? useMediation, bool? paid, String? keywords, bool? useTextureView, bool? allowShowNotify, bool? debug, bool? supportMultiProcess, int? themeStatus, List<int>? directDownloadNetworkType, AndroidPrivacy? androidPrivacy, IOSPrivacy? iosPrivacy}) Future<bool>
SDK注册初始化
requestPermissionIfNecessary({FlutterUnionadPermissionCallBack? callBack}) Future<void>
请求权限
showFullScreenVideoAdInteraction() Future<bool>
显示新模板渲染插屏 分为全屏和插屏,全屏和插屏场景下开发者都可以选择投放的广告类型,分别为图片+视频、仅视频、仅图片。
showRewardVideoAd() Future<bool>
显示激励广告
splashAdView({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, double? expressViewWidth, double? expressViewHeight, int? downloadType, int? adLoadType, int? timeout, bool? hideSkip, FlutterUnionadSplashCallBack? callBack}) Widget
开屏广告