isActive static method
- String productId
Checks whether the given product is currently active on the device.
Parameters
productId: The product identifier to query.
Returns
trueif the product is active on this device, otherwisefalse. If the activation API is not available on this platform/SDK build, this method returnsfalse.
Throws
- May throw an exception for unexpected platform call failures.
Also see:
- getActivationsForProduct - Retrieve activation information.
Implementation
static bool isActive(final String productId) {
final OperationResult resultString = staticMethod(
'ActivationService',
'isActive',
args: productId,
);
if (resultString['gemApiError'] == GemError.missingCapability.code) {
return false;
}
return resultString['result'];
}