FaceLicense.checkLicenseBuffer Method

Module: FaceLicense

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 Face Library execution.
static void checkLicenseBuffer(Uint8List? licenseData)

Parameters

licenseData Uint8List
in A buffer containing the license file data.

Exceptions

An error has occurred during Face 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 Face Library execution.
public static void checkLicenseBuffer(byte[] licenseData) throws FaceException

Parameters

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

Exceptions

An error has occurred during Face Library execution.
public static func checkLicenseBuffer(licenseData: [UInt8]) throws

Parameters

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

Exceptions

An error has occurred during Face Library execution.
int id3FaceLicense_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 id3FaceError file for the list of possible error codes.