Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceLicense.activateActivationKeyBuffer Method

Module: FaceLicense

## Definition

Activates a license using an activation key and returns the license in a data buffer.

Python

    @staticmethod
    activate_activation_key_buffer(hardware_code: str, activation_key: str, commentary: str) -> bytearray

Parameters

> `hardware_code` str
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `activation_key` str
> in The id3 activation key.
> `commentary` str
> in Commentary associated to this license activation.

Returns

> `bytearray`
> The license data buffer.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    static Uint8List activateActivationKeyBuffer(String? hardwareCode, String? activationKey, String? commentary)

Parameters

> `hardwareCode` String
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `activationKey` String
> in The id3 activation key.
> `commentary` String
> in Commentary associated to this license activation.

Returns

> `Uint8List`
> The license data buffer.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public static byte[] ActivateActivationKeyBuffer(string hardwareCode, string activationKey, string commentary)

Parameters

> `hardwareCode` string
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `activationKey` string
> in The id3 activation key.
> `commentary` string
> in Commentary associated to this license activation.

Returns

> `byte[]`
> The license data buffer.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public static byte[] activateActivationKeyBuffer(String hardwareCode, String activationKey, String commentary) throws FaceException

Parameters

> `hardwareCode` String
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `activationKey` String
> in The id3 activation key.
> `commentary` String
> in Commentary associated to this license activation.

Returns

> `byte[]`
> The license data buffer.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public static func activateActivationKeyBuffer(hardwareCode: String, activationKey: String, commentary: String) throws -> [UInt8]

Parameters

> `hardwareCode` String
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `activationKey` String
> in The id3 activation key.
> `commentary` String
> in Commentary associated to this license activation.

Returns

> `[UInt8]`
> The license data buffer.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceLicense_ActivateActivationKeyBuffer (
        const char * hardwareCode,
        const char * activationKey,
        const char * commentary,
        unsigned char * licenseFileBuffer,
        int * licenseFileBufferSize)

Parameters

> `hardwareCode` const char *
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `activationKey` const char *
> in The id3 activation key.
> `commentary` const char *
> in Commentary associated to this license activation.
> `licenseFileBuffer` unsigned char *
> out The license data buffer.
> `licenseFileBufferSize` int *
> in Size of the ‘licenseFileBuffer’ buffer. Receives the number of elements in the ‘licenseFileBuffer’ array.

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.