Authorization Interface
Last updated
Was this helpful?
Last updated
Was this helpful?
For authorization process, please refer to Chapter .
Windows/Linux/Arm_Linux interface is described here, for Android interface please refer to .
Function: Activate license online. Return the activated license content. Calling this function requires network; synchronous network requests are possible. Depending on network conditions, time consumed may be different. This interface is the only SDK interface that requires networking connection.
This interface does not need to be called when using offline authorization.
Declaration:
Parameters:
[in] inactive_license_content: Input an unactivated license string, which need to be read from an unactivated license file.
[out] out_activated_license_content: Return the activated license content. Need to call stid_license_release_content interface to release.
Return:
[return] Return STID_OK if successful, otherwise return error code.
Note: The activation only needs to be performed once on each machine. The returned activated license content can be saved permanently. For subsequent SDK runs, you only need to load the activated license into the load_license_content interface.
Function: Load license content (string).
Declaration:
Parameters:
[in] license_content: input license string, support offline verified license or activated license (returned by online_activate_license interface).
Return:
[return] Return STID_OK if successful, otherwise return error code (for the same product that is loaded for multiple times, STID_E_PRODUCT_LICENSE_LOADED will be returned).
Function: Release license content, such as activated license.
Declaration:
Parameters:
[in] Content: license content to be released.
Return: None.