Be notified of LicenseState change from the vision scope context

in an AbstractVisionComponent, we have acces to VisionClientContext and to getLicenseState.

In the gateway scope we can subscribe to LicenseState change with :

context.getLicenseManager().addLicenseStateUpdateListener

Can we register from the Vision scope to be notified of LicenseState change ?

1 Like

hello @mazeyrat,

were you able to find the answer to your question?

I am also interested in reacting to LICENSE_STATE_CHANGED event from inside my AbstractVisionPanel.

I did not find a listener to be notified of license change in client scope.
So I test the license periodiclly with

LicenseState licenseState = clientContext.getLicenseState(Constant.MODULE_ID);

Override notifyActivationStateChanged in your ClientModuleHook and forward that event wherever you need it.

1 Like