DevicesLicense.checkLicenseBuffer Method

Module: DevicesLicense

Definition

Checks a license from a buffer.

This function does two things:

  • First it loads the license from a buffer

  • Then it checks the validity of the license regarding the host it is called on (Windows, Linux, Android …)

Important

Calling one of the license checking function is required to get access to all the license member getters.

Note

The optional parameter is required on Android and must be the JNIEnv* pointer casted as a void*. It can be set as NULL for other devices.

@staticmethod
check_license_buffer(license_data: bytearray) -> None

Parameters

license_data bytearray
in A buffer containing the license file data.

Exceptions

An error has occurred during Devices Library execution.
static void checkLicenseBuffer(Uint8List? licenseData)

Parameters

licenseData Uint8List
in A buffer containing the license file data.

Exceptions

An error has occurred during Devices Library execution.
public static void CheckLicenseBuffer(byte[] licenseData)

Parameters

licenseData byte[]
in A buffer containing the license file data.

Exceptions

An error has occurred during Devices Library execution.
public static void checkLicenseBuffer(byte[] licenseData) throws DevicesException

Parameters

licenseData byte[]
in A buffer containing the license file data.

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesLicense_CheckLicenseBuffer (
    unsigned char * licenseData,
    int licenseDataSize,
    void * optionalParameter)

Parameters

licenseData unsigned char *
in A buffer containing the license file data.

licenseDataSize int
in Size of the ‘licenseData’ buffer.

optionalParameter void *
in Only used on Android: JNIEnv* pointer casted as a void*. Ignored for other devices.

Returns

int
An error code.
See id3DevicesError file for the list of possible error codes.