NetworkCapabilities.NetCapabilityLocalNetwork 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.
表示該網路為區域網路。
[Android.Runtime.Register("NET_CAPABILITY_LOCAL_NETWORK", ApiSince=35)]
[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 NetCapabilityLocalNetwork = 36;
[<Android.Runtime.Register("NET_CAPABILITY_LOCAL_NETWORK", ApiSince=35)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.NetCapability enum directly instead of this field.", true)>]
val mutable NetCapabilityLocalNetwork : Android.Net.NetCapability
欄位值
Value = 36實作
- 屬性
備註
表示該網路為區域網路。
區域網路是指裝置不直接從網路取得 IP 位址,而是自行宣告 IP 位址的網路。 本地網路的例子包括: <ul><li>USB 共享網路或 Wi-Fi 熱點網路,裝置共用其網際網路連線。 <li>Thread 網路,目前的裝置是 Thread 邊界路由器。 <li>Wi-Fi P2P 網路,目前裝置是群組擁有者。 </ul>
用於取得網際網路接取的網路從來不是本地網路。
先前 Build.VERSION_CODES.VANILLA_ICE_CREAM 針對 SDK 的應用程式,除非在 NetworkRequests 中明確設定NET_CAPABILITY_LOCAL_NETWORK,否則不會看到具備此功能的網路。
Java 文件 android.net.NetworkCapabilities.NET_CAPABILITY_LOCAL_NETWORK。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。