MobileAds class
This class allows you to set general SDK settings.
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 Properties
- ageRestrictedUser → bool
-
no setter
- debugErrorIndicatorEnabled → bool
-
Whether the indicator for native ad integration errors is shown.
no setter
- locationConsent → bool
-
Whether using location for targeting ads is allowed.
no setter
- loggingEnabled → bool
-
Whether the library outputs log messages.
no setter
- userConsent → bool
-
Whether the user from a GDPR country has allowed
using their personal data for targeting ads.
no setter
Static Methods
-
initialize(
) → Future< void> -
Initializes the Mobile Ads SDK.
Call this in the
initState
method of your app widget. -
setAgeRestrictedUser(
bool value) → Future< void> -
setDebugErrorIndicator(
bool value) → Future< void> - Enables or disables the debug error indicator.
-
setLocationConsent(
bool value) → Future< void> - Sets the location consent.
-
setLogging(
bool value) → Future< void> - Enables logging.
-
setUserConsent(
bool value) → Future< void> - Sets the user consent.
-
showDebugPanel(
) → Future< void> - Shows Debug Panel.
Constants
- pluginVersion → const String
- Returns the plugin version as a string.