Checking the Stock Application License

The following EventHandlerBase API methods can be used to determine whether a specific application is licensed:

isActivityLicenseEnabled

Returns whether specified activity license is enabled

public static boolean isActivityLicenseEnabled(EventHandlerContext context, String activityId);

getLicensesAvailable

Returns the number of available licenses for specified activity.

public static int getLicensesAvailable(EventHandlerContext context, String activityId);

getLicensesInUse

Returns the number of in-use licenses for specified activity.

public static int getLicensesInUse(EventHandlerContext context, String activityId);