completeOfflineDeactivation static method
- String offlineDeactivationKey
Completes an offline deactivation using the provided deactivation key.
Finalizes an offline deactivation flow where the deactivation service
returned a short offlineDeactivationKey. Use this when following the
offline/manual deactivation instructions.
Parameters
offlineDeactivationKey: The short deactivation key returned by the offline deactivation service flow.
Returns
- A tuple containing:
- GemError: Result code describing the outcome. Possible GemError values:
- GemError.success: Deactivation completed successfully.
- GemError.invalidInput: Provided blob is invalid; check the returned hint.
- GemError.notFound: No matching activation found on this device.
- GemError.io: IO error while updating local license storage.
- String: A hint or additional information from the platform.
- GemError: Result code describing the outcome. Possible GemError values:
Also see:
- deactivate - Deactivates a product previously activated with a license key.
Implementation
static (GemError, String) completeOfflineDeactivation(
final String offlineDeactivationKey,
) {
final OperationResult resultString = staticMethod(
'ActivationService',
'completeOfflineDeactivation',
args: offlineDeactivationKey,
);
return (
GemErrorExtension.fromCode(resultString['result']['first']),
resultString['result']['second'],
);
}