FlutterUnionad class Null safety

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

Constructors

FlutterUnionad()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) 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, FlutterUnionadBannerCallBack? callBack}) Widget
banner广告 [...]
drawFeedAdView({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, required double expressViewWidth, required double expressViewHeight, FlutterUnionadDrawFeedCallBack? callBack}) Widget
draw视频广告 [...]
fullScreenVideoAd({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, int? orientation}) Future<bool>
个性化模板全屏广告
@Deprecated("推荐使用新模板渲染插屏 loadFullScreenVideoAdInteraction")
getSDKVersion() Future<String>
获取SDK版本号
interactionAd({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, required double expressViewWidth, required double expressViewHeight, required int expressNum}) Future<bool>
插屏广告 [...]
@Deprecated("推荐使用新模板渲染插屏 loadFullScreenVideoAdInteraction")
loadFullScreenVideoAdInteraction({required String androidCodeId, required String iosCodeId, bool? supportDeepLink, int? orientation}) Future<bool>
预加载新模板渲染插屏 [...]
loadRewardVideoAd({bool? mIsExpress, required String androidCodeId, required String iosCodeId, bool? supportDeepLink, double? expressViewWidth, double? expressViewHeight, 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, required int expressNum, FlutterUnionadNativeCallBack? callBack}) Widget
信息流广告 [...]
register({required String iosAppId, required String androidAppId, bool? useTextureView, required String appName, bool? allowShowNotify, bool? allowShowPageWhenScreenLock, bool? debug, bool? supportMultiProcess, 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, FlutterUnionadSplashCallBack? callBack}) Widget
开屏广告 [...]