Chartboost

object Chartboost

SDK class that provides ads from the Chartboost ad network. Ensure to start Chartboost before requesting any ad. Setting data use consent information beforehand is highly recommended, otherwise Chartboost's ability to provide ads might be hindered.

Functions

Link copied to clipboard
fun addDataUseConsent(context: <Error class: unknown class>, dataUseConsent: DataUseConsent)

Restricts Chartboost's ability to collect personal data from the user.

Link copied to clipboard
fun clearDataUseConsent(context: <Error class: unknown class>, privacyStandard: String)

Clears the previously added consent for the specified privacy standard.

Link copied to clipboard

Gets the bidder token for the Chartboost SDK.

Link copied to clipboard
fun getDataUseConsent(context: <Error class: unknown class>, privacyStandard: String): DataUseConsent?

Retrieves stored data use consent. This method returns only the base class of the DataUseConsent, even if it was added as a specific class like GDPR or CCPA. Might return null if DataUseConsent is not found or was never stored.

Link copied to clipboard

Retrieves the current version of the Chartboost SDK.

Link copied to clipboard

Checks whether the SDK was started successfully.

Link copied to clipboard

Sets the Chartboost SDK logging level.

Link copied to clipboard
fun startWithAppId(context: <Error class: unknown class>, appId: String, appSignature: String, onStarted: StartCallback)

Initializes Chartboost with the required appId, appSignature, and callback. This method must be called before using cache and show methods.