HwAds class
Constructors
- HwAds()
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 Methods
-
disableLogger(
) → Future< bool?> - Disables the HMSLogger capability which is used for sending usage analytics of Ads SDK's methods to improve the service quality.
-
enableLogger(
) → Future< bool?> - Enables the HMSLogger capability which is used for sending usage analytics of Ads SDK's methods to improve the service quality.
-
getAppActivateStyle(
) → Future< ActivateStyle?> - Obtains the style of an app activation reminder pop-up.
-
getRequestOptions(
) → Future< RequestOptions?> - Obtains the global request configuration.
-
getSdkVersion(
) → Future< String?> - Obtains the HUAWEI Ads SDK version.
-
init(
) → Future< void> - Initializes the HUAWEI Ads SDK.
-
initWithAppCode(
String appCode) → Future< void> - Initializes the HUAWEI Ads SDK with app code.
-
isAppInstalledNotify(
) → Future< bool> - Checks whether an app activation reminder pop-up is enabled.
-
setAppActivateStyle(
ActivateStyle style) → Future< void> - Sets the style for an app activation reminder pop-up after the app installation.
-
setAppInstalledNotify(
bool status) → Future< void> - Sets whether to enable an app activation reminder pop-up.
-
setConsent(
String consent) → Future< bool?> - Sets the user consent string that complies with TCF v2.0.
-
setRequestOptions(
RequestOptions options) → Future< bool?> - Sets the global ad request configuration.