Module: Sketchup::Licensing
Overview
The Sketchup::Licensing
module contains methods for extensions purchased from Extension Warehouse to check their licensing status.
It is advised to place these calls inside encrypted Ruby (.rbe) files. This API is also exposed via the SketchUp C API. Extensions that already use native code should prefer using the native API, which should be more secure than their Ruby API counterparts.
For more details, see Licensing Example
Defined Under Namespace
Classes: ExtensionLicense
Constants for extension license state # collapse
- Sketchup::Licensing::LICENSED
- Sketchup::Licensing::EXPIRED
- Sketchup::Licensing::TRIAL
- Sketchup::Licensing::TRIAL_EXPIRED
- Sketchup::Licensing::NOT_LICENSED
Class Method Summary # collapse
-
.get_extension_license(extension_id) ⇒ Sketchup::Licensing::ExtensionLicense
Gets a license for a given extension.
Class Method Details
↑ .get_extension_license(extension_id) ⇒ Sketchup::Licensing::ExtensionLicense
Gets a license for a given extension.
Starting in SketchUp 2025.0, this method 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 SU startup. Make sure to do a license check when the user interacts with the extension).