-
- All Implemented Interfaces:
-
com.adsdk.android.ads.base.BaseAdManager
public class MaxAdSdkManager implements BaseAdManager
-
-
Field Summary
Fields Modifier and Type Field Description private static volatile MaxAdSdkManagerinstance
-
Method Summary
Modifier and Type Method Description static MaxAdSdkManagergetInstance()voidinitialize(@NonNull() Context context, @Nullable() OnSdkInitializationListener listener)ContextgetContext()booleanisSdkInitialed()voidenableDebug(boolean enable)voidshowMediationDebugger(Activity activity)voidsetHasUserConsent(boolean hasUserConsent, Context context)OxSdkConfigurationImplgetSdkConfiguration()voidsetMute(Context context, boolean mute)Set whether to begin video ads in a muted state or not.Params:muted – If ads should begin in a muted state. booleanshouldShowConsentDialog()是否应该展示GDPR voidsetGameLevel(Context context, int currentLevel)voidsetUserId(Context context, String userIdentifier)Note that the user ID is neither the user’s IDFA nor the device ID; it is your own proprietary user identifier. voidsetExtraParameter(Context context, String key, String value)为广告 Sdk 设置属性。 static voidsetFullscreenAdShowingToFalse(Context context)设置全屏广告展示状态为 false。 -
-
Method Detail
-
getInstance
static MaxAdSdkManager getInstance()
-
initialize
void initialize(@NonNull() Context context, @Nullable() OnSdkInitializationListener listener)
-
getContext
Context getContext()
-
isSdkInitialed
boolean isSdkInitialed()
-
enableDebug
void enableDebug(boolean enable)
-
showMediationDebugger
void showMediationDebugger(Activity activity)
-
setHasUserConsent
void setHasUserConsent(boolean hasUserConsent, Context context)
-
getSdkConfiguration
OxSdkConfigurationImpl getSdkConfiguration()
-
setMute
void setMute(Context context, boolean mute)
Set whether to begin video ads in a muted state or not.Params:muted – If ads should begin in a muted state.
-
shouldShowConsentDialog
boolean shouldShowConsentDialog()
是否应该展示GDPR
-
setGameLevel
void setGameLevel(Context context, int currentLevel)
-
setUserId
void setUserId(Context context, String userIdentifier)
Note that the user ID is neither the user’s IDFA nor the device ID; it is your own proprietary user identifier.
-
setExtraParameter
void setExtraParameter(Context context, String key, String value)
为广告 Sdk 设置属性。
-
setFullscreenAdShowingToFalse
static void setFullscreenAdShowingToFalse(Context context)
设置全屏广告展示状态为 false。
-
-
-
-