DevicesLicense.getHostHardwareCode Method¶
Module: DevicesLicense
Definition¶
Retrieves the hardware code of the device using the requested hardware code type.
This function retrieves the hardware code of the device you run the library on.
The optional parameter is required:
On Android, it must be the JNIEnv* pointer cast as a void*.
In other cases, it must be set to NULL.
@staticmethod
get_host_hardware_code(hardware_code_type: LicenseHardwareCodeType) -> str
Parameters
hardware_code_typeLicenseHardwareCodeTypein The requested hardware code type.
Returns
strThe device hardware code.
Exceptions
An error has occurred during Devices Library execution.
static String getHostHardwareCode(LicenseHardwareCodeType hardwareCodeType)
Parameters
hardwareCodeTypeLicenseHardwareCodeTypein The requested hardware code type.
Returns
StringThe device hardware code.
Exceptions
An error has occurred during Devices Library execution.
public static string GetHostHardwareCode(LicenseHardwareCodeType hardwareCodeType)
Parameters
hardwareCodeTypeLicenseHardwareCodeTypein The requested hardware code type.
Returns
stringThe device hardware code.
Exceptions
An error has occurred during Devices Library execution.
public static String getHostHardwareCode(LicenseHardwareCodeType hardwareCodeType) throws DevicesException
Parameters
hardwareCodeTypeLicenseHardwareCodeTypein The requested hardware code type.
Returns
StringThe device hardware code.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesLicense_GetHostHardwareCode (
    id3DevicesLicenseHardwareCodeType eHardwareCodeType,
    char * code,
    int * codeSize,
    void * optionalParameter)
Parameters
eHardwareCodeTypeid3DevicesLicenseHardwareCodeTypein The requested hardware code type.codechar *out The device hardware code.codeSizeint *in Size of the ‘code’ buffer. Receives the minimum required buffer size to hold the ‘code’ string if the given one is too small (including the terminating NULL character), otherwise receives the number of characters in ‘code’ (excluding terminating NULL character).optionalParametervoid *in Only used on Android for JNIEnv* pointer. Ignored for other devices (NULL).
Returns