yieldprobe / com.yieldlab.yieldprobe / Yieldprobe

Yieldprobe

object Yieldprobe

Yieldprobe is implemented as singleton. Using Kotlin language object feature. All methods are annotated with @JvmStatic so they are easy callable from Java.

Properties

DEFAULT_HTTP_CONNECTION_TIMEOUT_IN_MS

Default HTTP connection timeout

const val DEFAULT_HTTP_CONNECTION_TIMEOUT_IN_MS: Long

Functions

configure

Sets a new configuration.

fun configure(context: Context, activity: Activity, configuration: Configuration): Unit

getConfiguration

Gets the current SDK configuration.

fun getConfiguration(): Configuration

getDeviceMetaData

Gets the current device meta data.

fun getDeviceMetaData(): DeviceMetaData

getVersion

Get SDK version. Can be called without initializing SDK before.

fun getVersion(): String

getVersionName

Get version name (e.g. "1.0.0"). Can be called without initializing SDK before.

fun getVersionName(): String

initialize

Initializes the SDK. Has to be called once for the lifetime of the application.

fun initialize(context: Context, activity: Activity, configuration: Configuration): Unit

isGooglePlayServicesAvailable

Checking if Google Player Service is available. This call also can be done with SDK not initialized.

fun isGooglePlayServicesAvailable(activity: Activity, showPopup: Boolean): Boolean

isInitialized

Check the SDK initialize status.

fun isInitialized(): Boolean

onMessageEvent

EventBus function for EventIDFA.

fun onMessageEvent(event: EventIDFA): Unit

EventBus function for EventGeolocation.

fun onMessageEvent(event: EventGeolocation): Unit

probe

Call the backend for one adslot.

fun probe(adslotId: Int): CompletableFuture<Bid>

Call the backend for multiple adslot.

fun probe(adslotIds: Set<Int>): CompletableFuture<HashMap<Int, Bid>>

probeWithEvents

Call the backend for one adslot.

fun probeWithEvents(adslotId: Int): Unit

Call the backend for multiple adslot.

fun probeWithEvents(adslotIds: Set<Int>): Unit