語言

NetworkCapabilities.NetCapabilityNotSuspended 欄位

定義

警告

This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.

表示該網路目前尚未被暫停。

[Android.Runtime.Register("NET_CAPABILITY_NOT_SUSPENDED", ApiSince=28)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.", true)]
public const Android.Net.NetCapability NetCapabilityNotSuspended = 21;
[<Android.Runtime.Register("NET_CAPABILITY_NOT_SUSPENDED", ApiSince=28)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.", true)>]
val mutable NetCapabilityNotSuspended : Android.Net.NetCapability

欄位值

Value = 21

實作

屬性

備註

當網路被暫停時,網路的 IP 位址及網路上建立的任何連線仍然有效,但網路暫時無法傳輸資料。 例如,當行動網路在穿越隧道時,訊號暫時中斷時,就可能發生這種情況。具備此能力的網路不會被暫停,因此預期能傳輸資料。

Java 文件 android.net.NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於