DevicesLicense.activateActivationKeyBuffer Method¶
Module: DevicesLicense
Definition¶
Activates a license using an activation key and returns the license in a data buffer.
@staticmethod
activate_activation_key_buffer(hardware_code: str, activation_key: str, commentary: str) -> bytearray
Parameters
hardware_codestrin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activation_keystrin The id3 activation key.commentarystrin Commentary associated to this license activation.
Returns
bytearrayThe license data buffer.
Exceptions
An error has occurred during Devices Library execution.
static Uint8List activateActivationKeyBuffer(String? hardwareCode, String? activationKey, String? commentary)
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKeyStringin The id3 activation key.commentaryStringin Commentary associated to this license activation.
Returns
Uint8ListThe license data buffer.
Exceptions
An error has occurred during Devices Library execution.
public static byte[] ActivateActivationKeyBuffer(string hardwareCode, string activationKey, string commentary)
Parameters
hardwareCodestringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKeystringin The id3 activation key.commentarystringin Commentary associated to this license activation.
Returns
byte[]The license data buffer.
Exceptions
An error has occurred during Devices Library execution.
public static byte[] activateActivationKeyBuffer(String hardwareCode, String activationKey, String commentary) throws DevicesException
Parameters
hardwareCodeStringin The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKeyStringin The id3 activation key.commentaryStringin Commentary associated to this license activation.
Returns
byte[]The license data buffer.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesLicense_ActivateActivationKeyBuffer (
    const char * hardwareCode,
    const char * activationKey,
    const char * commentary,
    unsigned char * licenseFileBuffer,
    int * licenseFileBufferSize)
Parameters
hardwareCodeconst char *in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.activationKeyconst char *in The id3 activation key.commentaryconst char *in Commentary associated to this license activation.licenseFileBufferunsigned char *out The license data buffer.licenseFileBufferSizeint *in Size of the ‘licenseFileBuffer’ buffer. Receives the number of elements in the ‘licenseFileBuffer’ array.
Returns