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

# FaceLicense.reactivate Method

Module: FaceLicense

## Definition

Reactivates a license file using the host hardware code and the product reference.

Python

    @staticmethod
    reactivate(hardware_code: str, product_reference: str, path: str) -> None

Parameters

> `hardware_code` str
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `product_reference` str
> in The product reference.
> `path` str
> in Path to the license file.

Exceptions

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

Dart

    static void reactivate(String? hardwareCode, String? productReference, String? path)

Parameters

> `hardwareCode` String
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `productReference` String
> in The product reference.
> `path` String
> in Path to the license file.

Exceptions

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

C#

    public static void Reactivate(string hardwareCode, string productReference, string path)

Parameters

> `hardwareCode` string
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `productReference` string
> in The product reference.
> `path` string
> in Path to the license file.

Exceptions

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

Java

    public static void reactivate(String hardwareCode, String productReference, String path) throws FaceException

Parameters

> `hardwareCode` String
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `productReference` String
> in The product reference.
> `path` String
> in Path to the license file.

Exceptions

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

Swift

    public static func reactivate(hardwareCode: String, productReference: String, path: String) throws

Parameters

> `hardwareCode` String
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `productReference` String
> in The product reference.
> `path` String
> in Path to the license file.

Exceptions

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

C

    int id3FaceLicense_Reactivate (
        const char * hardwareCode,
        const char * productReference,
        const char * path)

Parameters

> `hardwareCode` const char *
> in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.
> `productReference` const char *
> in The product reference.
> `path` const char *
> in Path to the license file.

Returns

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