public final class Omid
extends java.lang.Object
Note that OM SDK may only be used on the main UI thread. Make sure you are on the main thread when you initialize the SDK, create its objects, and invoke its methods.
Created by Natasha Garner on 20/06/2017.
Modifier and Type | Method and Description |
---|---|
static boolean |
activateWithOmidApiVersion(java.lang.String version,
android.content.Context applicationContext)
Enables the integration partner to activate OMID prior to calling any other API methods.
|
static java.lang.String |
getVersion()
Access the running OMID library semantic version.
|
static boolean |
isActive()
Used to determine if the running OMID library is active before attempting to create any ad
sessions.
|
static boolean |
isCompatibleWithOmidApiVersion(java.lang.String version)
Allows the integration partner to check that they are compatible with the running OMID
library version.
|
public static boolean isCompatibleWithOmidApiVersion(java.lang.String version)
version
- of OMID library integrated by the partner.java.lang.IllegalArgumentException
- if the supplied version parameter is null, blank or an
invalid semantic version number.public static java.lang.String getVersion()
public static boolean isActive()
public static boolean activateWithOmidApiVersion(java.lang.String version, android.content.Context applicationContext)
version
- of OMID library integrated by the partner.applicationContext
- of the running application.java.lang.IllegalArgumentException
- if the supplied version parameter is null, blank or an
invalid semantic version number.java.lang.IllegalArgumentException
- if the supplied application context is null.