NetworkRequest.Builder.AddCapability(NetCapability) Method
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.
Adds a required network capability.
[Android.Runtime.Register("addCapability", "(I)Landroid/net/NetworkRequest$Builder;", "GetAddCapability_IHandler")]
public virtual Android.Net.NetworkRequest.Builder? AddCapability(Android.Net.NetCapability capability);
[<Android.Runtime.Register("addCapability", "(I)Landroid/net/NetworkRequest$Builder;", "GetAddCapability_IHandler")>]
abstract member AddCapability : Android.Net.NetCapability -> Android.Net.NetworkRequest.Builder
override this.AddCapability : Android.Net.NetCapability -> Android.Net.NetworkRequest.Builder
Parameters
- capability
- NetCapability
The required capability. All requested capabilities must be satisfied for a network to match.
Returns
This builder.
- Attributes
Remarks
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.
Java documentation for android.net.NetworkRequest.Builder.addCapability(int).