setAllowOffboardServiceOnExtraChargedNetwork static method
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:
- getAllowOffboardServiceOnExtraChargedNetwork to query the current setting.
Implementation
static void setAllowOffboardServiceOnExtraChargedNetwork(
ServiceGroupType serviceType,
bool allow,
) {
staticMethod(
'SdkSettings',
'setAllowOffboardServiceOnExtraChargedNetwork',
args: <String, Object>{'serviceType': serviceType.id, 'allow': allow},
);
}