NativeAdOptions class
Constructors
- NativeAdOptions({bool? requestCustomMuteThisAd, int? adChoichesPlacement, int? mediaAspectRatio, VideoOptions? videoOptions})
Properties
- adChoicesPlacement ↔ int
-
The AdChoices overlay is set to the top right corner by default.
Apps can change which corner this overlay is rendered in by setting
this property to one of the following:
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- mediaAspectRatio ↔ int
-
This sets the aspect ratio for image or video to be returned for the native ad.
Setting NativeMediaAspectRatio to one of the following constants will cause only
ads with media of the specified aspect ratio to be returned:
getter/setter pair
- requestCustomMuteThisAd ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- videoOptions ↔ VideoOptions
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- ADCHOICES_BOTTOM_LEFT → const int
- ADCHOICES_BOTTOM_RIGHT → const int
- ADCHOICES_TOP_LEFT → const int
- ADCHOICES_TOP_RIGHT → const int
- MEDIA_ASPECT_RATIO_ANY → const int
- MEDIA_ASPECT_RATIO_LANDSCAPE → const int
- MEDIA_ASPECT_RATIO_PORTRAIT → const int
- MEDIA_ASPECT_RATIO_SQUARE → const int