语言

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。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于