Licensing

object Licensing

License management.

The libbeacon library requires a license to work, delivered as an API Key.

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.libbeacon.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 the method fr.maxcom.libbeacon.Licensing.allow. Typically this takes place in the onCreate() method of the activity declared as the application entry point or of your custom subclass of android.app.Application.

Properties

Link copied to clipboard
Link copied to clipboard

The version of the library.

Functions

Link copied to clipboard
fun allow(context: Context)

The initial call to the library to allow any further calls to the library components.