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

andridPrivacy({bool? isCanUseLocation, double? lat, double? lon, bool? isCanUsePhoneState, String? imei, bool? isCanUseWifiState, bool? isCanUseWriteExternal, String? oaid, bool? alist, bool? isCanUseAndroidId, bool? isCanUsePermissionRecordAudio}) Future<bool>
隐私信息控制开关 只有android起效
bannerAdView({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, required 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视频广告
fullScreenVideoAd({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, int? orientation, int? downloadType}) Future<bool>
个性化模板全屏广告
getSDKVersion() Future<String>
获取SDK版本号
getThemeStatus() Future<int>
获取主题模式 0正常模式 1夜间模式
loadFullScreenVideoAdInteraction({required String androidCodeId, required String iosCodeId, bool? supportDeepLink, int? orientation, int? downloadType, int? adLoadType}) Future<bool>
预加载新模板渲染插屏
loadRewardVideoAd({required String androidCodeId, required String iosCodeId, bool? supportDeepLink, required String rewardName, required int rewardAmount, required String userID, int? orientation, String? mediaExtra, int? downloadType, int? adLoadType}) 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, bool? useTextureView, required String appName, bool? allowShowNotify, bool? allowShowPageWhenScreenLock, bool? debug, bool? supportMultiProcess, String? personalise, int? themeStatus, List<int>? directDownloadNetworkType}) 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
开屏广告