NativeAdOptions class Null safety
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:
read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
- 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:
read / write
- requestCustomMuteThisAd ↔ bool
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- videoOptions ↔ VideoOptions
-
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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
-
3
- ADCHOICES_BOTTOM_RIGHT → const int
-
2
- ADCHOICES_TOP_LEFT → const int
-
0
- ADCHOICES_TOP_RIGHT → const int
-
1
- MEDIA_ASPECT_RATIO_ANY → const int
-
1
- MEDIA_ASPECT_RATIO_LANDSCAPE → const int
-
2
- MEDIA_ASPECT_RATIO_PORTRAIT → const int
-
3
- MEDIA_ASPECT_RATIO_SQUARE → const int
-
4