SubscriptionManager.SetSubscriptionOverrideCongested Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetSubscriptionOverrideCongested(Int32, Boolean, Int64) |
Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered congested. |
SetSubscriptionOverrideCongested(Int32, Boolean, Int32[], Int64) |
Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered congested. |
SetSubscriptionOverrideCongested(Int32, Boolean, Int64)
Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered congested.
[Android.Runtime.Register("setSubscriptionOverrideCongested", "(IZJ)V", "GetSetSubscriptionOverrideCongested_IZJHandler", ApiSince=28)]
public virtual void SetSubscriptionOverrideCongested (int subId, bool overrideCongested, long expirationDurationMillis);
[<Android.Runtime.Register("setSubscriptionOverrideCongested", "(IZJ)V", "GetSetSubscriptionOverrideCongested_IZJHandler", ApiSince=28)>]
abstract member SetSubscriptionOverrideCongested : int * bool * int64 -> unit
override this.SetSubscriptionOverrideCongested : int * bool * int64 -> unit
Parameters
- subId
- Int32
the subscriber this override applies to.
- overrideCongested
- Boolean
set if the subscription should be considered congested.
- expirationDurationMillis
- Int64
the duration after which the requested override
will be automatically cleared, or 0
to leave in the
requested state until explicitly cleared, or the next reboot,
whichever happens first.
- Attributes
Remarks
Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered congested. This will cause the device to delay certain network requests when possible, such as developer jobs that are willing to run in a flexible time window.
This method is only accessible to the following narrow set of apps: <ul> <li>The carrier app for this subscriberId, as determined by TelephonyManager#hasCarrierPrivileges()
. <li>The carrier app explicitly delegated access through CarrierConfigManager#KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING
. </ul>
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SetSubscriptionOverrideCongested(Int32, Boolean, Int32[], Int64)
Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered congested.
[Android.Runtime.Register("setSubscriptionOverrideCongested", "(IZ[IJ)V", "GetSetSubscriptionOverrideCongested_IZarrayIJHandler", ApiSince=31)]
public virtual void SetSubscriptionOverrideCongested (int subId, bool overrideCongested, int[] networkTypes, long expirationDurationMillis);
[<Android.Runtime.Register("setSubscriptionOverrideCongested", "(IZ[IJ)V", "GetSetSubscriptionOverrideCongested_IZarrayIJHandler", ApiSince=31)>]
abstract member SetSubscriptionOverrideCongested : int * bool * int[] * int64 -> unit
override this.SetSubscriptionOverrideCongested : int * bool * int[] * int64 -> unit
Parameters
- subId
- Int32
the subscriber this override applies to.
- overrideCongested
- Boolean
set if the subscription should be considered congested.
- networkTypes
- Int32[]
the network types this override applies to. If no network types are specified, override values will be ignored.
- expirationDurationMillis
- Int64
the duration after which the requested override
will be automatically cleared, or 0
to leave in the requested state until explicitly
cleared, or the next reboot, whichever happens first.
- Attributes
Remarks
Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered congested. This will cause the device to delay certain network requests when possible, such as developer jobs that are willing to run in a flexible time window.
This method is only accessible to the following narrow set of apps: <ul> <li>The carrier app for this subscriberId, as determined by TelephonyManager#hasCarrierPrivileges()
. <li>The carrier app explicitly delegated access through CarrierConfigManager#KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING
. </ul>
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.