licensing.init()

Type Function
Library licensing.*
Return value Boolean
Revision 2017.3060
Keywords licensing
See also licensing.verify()

Overview

Initializes the licensing service library by specifying the name of the licensing provider. Currently, only "google" is supported.

Returns true if successful; otherwise returns false.

Gotchas

Android

You must add the following permission to the build.settings file in order to use the Google licensing provider.

settings =
{
    android =
    {
        usesPermissions =
        {
            "com.android.vending.CHECK_LICENSE"
        },
    },
}

Syntax

licensing.init( providerName )
providerName (required)

String. String containing the provider's name.