Kernstra.events
Global
GlobalEvents — on() and off() for GlobalEventMap; see the Event System. Only the SDK emits on it. Kept across destroy(): subscribe once, at module level if you like.static propertyEvents and assetssince 1.0.0
Signature
static get events(): GlobalEvents
Returns
GlobalEvents on() and off() for GlobalEventMap.
Example
TypeScript
Kernstra.events.on('licenseChanged', (state) => { console.log('license', state.valid ? state.plan : state.reason); });