ReaperNativeDrawFeedVideoView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ReaperNativeDrawFeedVideoView
Constructors
- ReaperNativeDrawFeedVideoView({Key? key, bool? cache = true, double? width = 0, double? height = 0, dynamic onAdCallBack(ReaperNativeDrawFeedVideoAdCallBack)?, int? uniqueId = -1, @required String? positionId, bool? interruptVideoPlay, String? pauseIconPath, int? pauseIconResource, int? pauseIconSize, int? drawFeedItemLayoutId, int? drawFeedPageLayoutId, int? gravity, int? topMargin, int? bottomMargin, int? leftMargin, int? rightMargin, Color? backgroundColor = Colors.transparent})
-
const
Properties
- backgroundColor → Color?
-
final
- bottomMargin → int?
-
final
- cache → bool?
-
if you set it true,every ad view will be cached,or especially in scrollview,
such as listview,scroll up or down,every ad view will be requested more than
one time which lead to lost frame,however,ad view to be cached can make it much more better.
final
- drawFeedItemLayoutId → int?
-
自定义3:布局(icon、标题、描述、按钮)view,适用于Android
final
- drawFeedPageLayoutId → int?
-
自定义4:drawFeedItemLayoutId的父布局view,可以在界面设置点赞等按钮,适用于Android
final
- gravity → int?
-
位置,Gravity类值枚举,适用于Android
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- interruptVideoPlay → bool?
-
自定义1:设置广告视频区域是否响应点击行为,控制视频暂停、继续播放,默认不响应;
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftMargin → int?
-
final
- onAdCallBack → (dynamic Function(ReaperNativeDrawFeedVideoAdCallBack)?)
-
final
- pauseIconPath → String?
-
自定义2:设置视频暂停的图标路径
final
- pauseIconResource → int?
-
自定义2:设置视频暂停的图标工程路径,pauseIconPath和pauseIconResource设置一个即可
final
- pauseIconSize → int?
-
大小(单位为dp)
final
- positionId → String?
-
final
- rightMargin → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topMargin → int?
-
final
- uniqueId → int?
-
final
- viewType → String
-
final
- width → double?
-
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited