SubscriptionManager.SetSubscriptionOverrideCongested 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| SetSubscriptionOverrideCongested(Int32, Boolean, Int64) |
暫時覆寫電信業者與特定訂閱者之間的計費關聯性方案,以視為擁擠。 |
| SetSubscriptionOverrideCongested(Int32, Boolean, Int32[], Int64) |
暫時覆寫電信業者與特定訂閱者之間的計費關聯性方案,以視為擁擠。 |
SetSubscriptionOverrideCongested(Int32, Boolean, Int64)
暫時覆寫電信業者與特定訂閱者之間的計費關聯性方案,以視為擁擠。
[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
參數
- subId
- Int32
這個覆寫套用至的訂閱者。
- overrideCongested
- Boolean
如果訂用帳戶應該視為叢集,則設定 。
- expirationDurationMillis
- Int64
要求覆寫將會自動清除的持續時間,或 0 保留要求的狀態,直到明確清除,或下次重新啟動,只要先發生。
- 屬性
備註
暫時覆寫電信業者與特定訂閱者之間的計費關聯性方案,以視為擁擠。 這會導致裝置盡可能延遲特定網路要求,例如願意在彈性時間範圍中執行的開發人員工作。
這個方法只能存取下列狹窄的應用程式集:<ul<>li>此 subscriberId 的電信業者應用程式,由 決定TelephonyManager#hasCarrierPrivileges()。 <li>電信業者應用程式透過 明確委派存取 CarrierConfigManager#KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING權。 </Ul>
的 android.telephony.SubscriptionManager.setSubscriptionOverrideCongested(int, boolean, long)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
SetSubscriptionOverrideCongested(Int32, Boolean, Int32[], Int64)
暫時覆寫電信業者與特定訂閱者之間的計費關聯性方案,以視為擁擠。
[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
參數
- subId
- Int32
這個覆寫套用至的訂閱者。
- overrideCongested
- Boolean
如果訂用帳戶應該視為叢集,則設定 。
- networkTypes
- Int32[]
套用此覆寫的網路類型。 如果未指定任何網路類型,則會忽略覆寫值。
- expirationDurationMillis
- Int64
要求覆寫將會自動清除的持續時間,或 0 保留要求的狀態,直到明確清除,或下次重新啟動,只要先發生。
- 屬性
備註
暫時覆寫電信業者與特定訂閱者之間的計費關聯性方案,以視為擁擠。 這會導致裝置盡可能延遲特定網路要求,例如願意在彈性時間範圍中執行的開發人員工作。
這個方法只能存取下列狹窄的應用程式集:<ul<>li>此 subscriberId 的電信業者應用程式,由 決定TelephonyManager#hasCarrierPrivileges()。 <li>電信業者應用程式透過 明確委派存取 CarrierConfigManager#KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING權。 </Ul>
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。