Package-level declarations

Description

This module contains the core functionality of the Adition Ad SDK which is independent on any display technology. This makes the sdk_core usable both for apps that use compose and in the future also for legacy view based approaches. If your app uses compose, add the com.adition.sdk_presentation_compose dependency.

This module contains classes for fetching ads, listening to events and managing local caches.

Types

Link copied to clipboard
object AdError : Error

The SDK error type. AdError is a property of the AdException Contains all errors types that may occur in the SDK with a short description.

Link copied to clipboard
class AdException(var adError: ErrorCode = AdError.DEFAULT, var exception: Exception? = null) : Exception, Parcelable, AdExceptionInterface

SDK exception class AdException contains: adError and a exception. The adError is an constant of the type ErrorCode. AdError is the object which contains the different custom AdSDK ErrorCode types. The exception is an optional Android/Kotlin exception.

Link copied to clipboard
Link copied to clipboard
object AdService

A key object for configuring your advertisements. It is responsible for initial configuration, managing the ad cache and creating tag requests.

Link copied to clipboard

Main Advertisement object. Can be created independently of presentation, then passed to rememberAdState in Compose. In order to fetch the Ad, loadAdvertisement method should be called.

Link copied to clipboard
data class ErrorCode(val description: String) : Parcelable

Contains the error code for the AdError.

Link copied to clipboard
data class Event(val id: String, val eventType: EventType, val adData: MutableMap<String, String>?, val adMetaData: AdMetaData?)

Event data class that is returned to developer when an Ad is observed/triggered

Link copied to clipboard

Event handler. Developers can observer events sharedflow. In order to use, needs to be passed to AdService when being initialized

Link copied to clipboard
sealed class EventType

All possible types of events that can be processed or transmitted via the SDK.

Link copied to clipboard
data class TagRequest(val key: String, val subKey: String, val value: String?)

Describes a request to "tag" a user.

Link copied to clipboard

The interface of object responsible for processing the URL that the SDK wants to open in the browser.

Link copied to clipboard

Event type related to ad server tracking events.