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 void |
activate(Context applicationContext)
Activate OM SDK prior to calling any other API methods.
|
static java.lang.String |
getVersion()
Access the running OM SDK semantic version.
|
static boolean |
isActive()
Determine if the running OM SDK is active before attempting to create any ad sessions.
|
static void |
updateLastActivity()
Notify OM SDK to update last activity time when users interact on CTV devices.
|
public static void activate(Context applicationContext)
applicationContext
- of the running application.java.lang.IllegalArgumentException
- if the supplied application context is null.public static void updateLastActivity()
java.lang.IllegalStateException
- if this method has been executed before OM SDK has been
activated.public static java.lang.String getVersion()
public static boolean isActive()