getActivationsForGate static method

List<ActivationInfo> getActivationsForGate([
  1. Gate gate = Gate.core
])

Returns activations found for the specified gate.

Retrieves a list of ActivationInfo objects representing activations for gate that are stored on this device.

Parameters

  • gate: The gate for which to list activations. Defaults to Gate.core.

Returns

  • A list of ActivationInfo instances for the given gate. If the activation API is not available on this platform/SDK build, this method returns an empty list.

Also see:

Implementation

static List<ActivationInfo> getActivationsForGate([Gate gate = Gate.core]) {
  final OperationResult resultString = staticMethod(
    'ActivationService',
    'getActivationsForGate',
    args: gate.id,
  );

  if (resultString['gemApiError'] == GemError.missingCapability.code) {
    return <ActivationInfo>[];
  }

  return (resultString['result'] as List<dynamic>)
      .map((dynamic e) => ActivationInfo.fromJson(e))
      .toList();
}