completeOfflineActivation static method
- String offlineActivationKey
Completes an offline activation using the provided offline activation key.
Finalizes an offline activation flow where the activation service
returned a short offlineActivationKey. Use this when following the
offline/manual activation instructions.
Parameters
offlineActivationKey: The short activation key returned by the offline activation service flow.
Returns
- A tuple containing:
- GemError: Result code describing the outcome. Possible GemError values:
- GemError.success: Activation 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:
- activate - Activates a product using the supplied license key.
- completeActivation - Complete an activation that required manual steps.
Implementation
static (GemError, String) completeOfflineActivation(
final String offlineActivationKey,
) {
final OperationResult resultString = staticMethod(
'ActivationService',
'completeOfflineActivation',
args: offlineActivationKey,
);
return (
GemErrorExtension.fromCode(resultString['result']['first']),
resultString['result']['second'],
);
}