SketchUp C API
|
Stores extension license information. More...
#include <SketchUpAPI/extension_license.h>
Data Fields | |
bool | is_licensed |
Main flag indicating whether the extension is allowed to run or not. | |
enum SUExtensionLicenseState | state |
Additional state information. | |
size_t | days_remaining |
Number of days until license expiration. 0 if permanent or not licensed. | |
char | error_description [512] |
Related Functions | |
(Note that these are not member functions.) | |
enum SUResult | SUGetExtensionLicense (const char *extension_id, struct SUExtensionLicense *out_license) |
Gets a license for a given extension. More... | |
Stores extension license information.
|
related |
Gets a license for a given extension.
Starting in SketchUp 2025.0 (API 13.0), this function automatically tries to fetch a license from Extension Warehouse if the extension doesn't have a license on the current device. This only works if the user is signed in. In earlier SketchUp versions, the user has to go to Extension Manager, expand the extension in question and press Update License if the license is missing. (For performance reasons this automatic fetching is skipped during SketchUp startup. Make sure to do a license check when the user interacts with the extension).
[in] | extension_id | The Extension Warehouse UUID for the extension. |
[out] | out_license | the licensing retrieved. |
char SUExtensionLicense::error_description[512] |
Error description in case of failure to acquire a license. This is meant to aid in debugging only. Extensions should not rely on any exact error description.