getProductIds static method
- bool includeExpired = false,
Returns the product identifiers found on the device.
Parameters
includeExpired: Whentrue, include product identifiers for expired products as well. Defaults tofalse. If the activation API is not available on this platform/SDK build, this method returns an empty list.
Returns
- A list of product identifier strings present on the device.
Also see:
- getActivationsForProduct - Retrieve activation information.
Implementation
static List<String> getProductIds({final bool includeExpired = false}) {
final OperationResult resultString = staticMethod(
'ActivationService',
'getProductIds',
args: includeExpired,
);
if (resultString['gemApiError'] == GemError.missingCapability.code) {
return <String>[];
}
return (resultString['result'] as List<dynamic>).cast<String>();
}