WifiAwareNetworkInfo.Port Property
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.
Get the port number to be used to create a network connection to the Wi-Fi Aware peer.
public int Port { [Android.Runtime.Register("getPort", "()I", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getPort", "()I", "", ApiSince=29)>]
member this.Port : int
Property Value
A port number on the peer. A value of 0 indicates that no port was specified by the peer.
- Attributes
Remarks
Get the port number to be used to create a network connection to the Wi-Fi Aware peer. The port information is provided by the app running on the peer which requested the connection, using the WifiAwareNetworkSpecifier.Builder#setPort(int)
.
Java documentation for android.net.wifi.aware.WifiAwareNetworkInfo.getPort()
.
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.