setAllowOffboardServiceOnExtraChargedNetwork static method

void setAllowOffboardServiceOnExtraChargedNetwork(
  1. ServiceGroupType serviceType,
  2. bool allow
)

Enables or disables a service group on metered (extra-charged) networks.

Parameters

  • serviceType: the ServiceGroupType to configure.
  • allow: true to allow the service type on metered networks, false to block it.

Also see:

Implementation

static void setAllowOffboardServiceOnExtraChargedNetwork(
  ServiceGroupType serviceType,
  bool allow,
) {
  staticMethod(
    'SdkSettings',
    'setAllowOffboardServiceOnExtraChargedNetwork',
    args: <String, Object>{'serviceType': serviceType.id, 'allow': allow},
  );
}