NetworkCapabilities.TransportInfo 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.
Returns a transport-specific information container.
public Android.Net.ITransportInfo? TransportInfo { [Android.Runtime.Register("getTransportInfo", "()Landroid/net/TransportInfo;", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getTransportInfo", "()Landroid/net/TransportInfo;", "", ApiSince=29)>]
member this.TransportInfo : Android.Net.ITransportInfo
Property Value
A concrete implementation of the TransportInfo
class or null if not
available for the network.
- Attributes
Remarks
Returns a transport-specific information container. The application may cast this container to a concrete sub-class based on its knowledge of the network request. The application should be able to deal with a null
return value or an invalid case, e.g. use instanceof
operator to verify expected type.
Java documentation for android.net.NetworkCapabilities.getTransportInfo()
.
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.