Skip to content
Back to top

# BiosealLicense.getHostHardwareCode Method

Module: BiosealLicense

## 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.

    static String getHostHardwareCode(LicenseHardwareCodeType hardwareCodeType)

Parameters

`hardwareCodeType` LicenseHardwareCodeType
in The requested hardware code type.

Returns

`String`
The device hardware code.

Exceptions

BiosealException
An error has occurred during Bioseal Library execution.