public final class Licensing extends Object
This API Key has to be set in the AndroidManifest.xml
file as a meta data of the application:
<manifest ... > <application ... > <activity ... > </activity> <meta-data android:name="fr.maxcom.libmedia.apiKey" android:value="YOUR_API_KEY" /> </application> </manifest>
Before any call to the library can be made, the application code must make an initial call to
allow(Context)
. Typically this takes place in the onCreate()
method of the activity
declared as the application entry point.
Modifier and Type | Field and Description |
---|---|
static String |
VERSION
The version of the library.
|
Modifier and Type | Method and Description |
---|---|
static void |
allow(Context context)
The initial call to the library to allow any further calls to the library components.
|
static boolean |
getDeveloperMode()
Returns the developer mode current setting.
|
static void |
setDeveloperMode(boolean flag)
The developer mode performs some checks and outputs some traces in the log,
as an assistance to the developers.
|
public static final String VERSION
public static void allow(Context context)
context
- A contextpublic static void setDeveloperMode(boolean flag)
DO NOT set the developer mode for a production release. Not that it will not work, but it's useless.
flag
- true to activate the mode.public static boolean getDeveloperMode()