BasicAds

actual object BasicAds
expect object BasicAds

The main module for instantiating Android and iOS implementations of AdMob

See also

actual object BasicAds

Properties

Link copied to clipboard

The RequestConfiguration for the instantiation of AdMob

actual var configuration: RequestConfiguration
Link copied to clipboard
actual val errorDomain: String?
expect val errorDomain: String?

The domain name of which errors occur on

actual val errorDomain: String?
Link copied to clipboard
actual val initialized: Boolean
expect val initialized: Boolean

Whether or not the BasicAds.initialize was called successfully

actual val initialized: Boolean
Link copied to clipboard
actual val version: String
expect val version: String

The version of AdMob being used

actual val version: String

Functions

Link copied to clipboard

I have no idea what this does, but its here and it works on Android and iOS

Link copied to clipboard
@RequiresPermission(value = "android.permission.INTERNET")
actual fun initialize(context: Any?)
expect fun initialize(context: Any?)

The main function for instantiating Android and iOS implementations of AdMob. It is equivalent to Android's MobileAds.Initialize(context).

actual fun initialize(context: Any?)
Link copied to clipboard
actual fun openDebugMenu(context: Any?, adUnitId: String)
expect fun openDebugMenu(context: Any?, adUnitId: String)

This opens the Debug Menu, which I have never personally done myself.

actual fun openDebugMenu(context: Any?, adUnitId: String)
Link copied to clipboard
actual fun setAppMuted(muted: Boolean)
expect fun setAppMuted(muted: Boolean)

Mutes or unmutes ads

actual fun setAppMuted(muted: Boolean)
Link copied to clipboard
actual fun setAppVolume(volume: Float)
expect fun setAppVolume(volume: Float)

Sets the volume of ads based on a Float value between 0.0 for muted and 1.0 for full volume.

actual fun setAppVolume(volume: Float)