DocumentLicense.getHostHardwareCode Method¶
Module: DocumentLicense
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_type
LicenseHardwareCodeTypein The requested hardware code type.
Returns
str
The device hardware code.
Exceptions
An error has occurred during Document Library execution.
static String getHostHardwareCode(LicenseHardwareCodeType hardwareCodeType)
Parameters
hardwareCodeType
LicenseHardwareCodeTypein The requested hardware code type.
Returns
String
The device hardware code.
Exceptions
An error has occurred during Document Library execution.
public static string GetHostHardwareCode(LicenseHardwareCodeType hardwareCodeType)
Parameters
hardwareCodeType
LicenseHardwareCodeTypein The requested hardware code type.
Returns
string
The device hardware code.
Exceptions
An error has occurred during Document Library execution.
public static String getHostHardwareCode(LicenseHardwareCodeType hardwareCodeType) throws DocumentException
Parameters
hardwareCodeType
LicenseHardwareCodeTypein The requested hardware code type.
Returns
String
The device hardware code.
Exceptions
An error has occurred during Document Library execution.
public static func getHostHardwareCode(hardwareCodeType: LicenseHardwareCodeType) throws -> String
Parameters
hardwareCodeType
LicenseHardwareCodeTypein The requested hardware code type.
Returns
String
The device hardware code.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentLicense_GetHostHardwareCode (
id3DocumentLicenseHardwareCodeType eHardwareCodeType,
char * code,
int * codeSize,
void * optionalParameter)
Parameters
eHardwareCodeType
id3DocumentLicenseHardwareCodeTypein The requested hardware code type.code
char *out The device hardware code.codeSize
int *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).optionalParameter
void *in Only used on Android for JNIEnv* pointer. Ignored for other devices (NULL).
Returns