VcnWifiUnderlyingNetworkTemplate.Builder.SetMetered(Int32) 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.
Set the matching criteria for metered networks.
[Android.Runtime.Register("setMetered", "(I)Landroid/net/vcn/VcnWifiUnderlyingNetworkTemplate$Builder;", "", ApiSince=33)]
public Android.Net.Vcn.VcnWifiUnderlyingNetworkTemplate.Builder SetMetered(int matchCriteria);
[<Android.Runtime.Register("setMetered", "(I)Landroid/net/vcn/VcnWifiUnderlyingNetworkTemplate$Builder;", "", ApiSince=33)>]
member this.SetMetered : int -> Android.Net.Vcn.VcnWifiUnderlyingNetworkTemplate.Builder
Parameters
- matchCriteria
- Int32
the matching criteria for metered networks. Defaults to VcnUnderlyingNetworkTemplate.MATCH_ANY. Value is one of the following: VcnUnderlyingNetworkTemplate.MATCH_ANY; VcnUnderlyingNetworkTemplate.MATCH_REQUIRED; VcnUnderlyingNetworkTemplate.MATCH_FORBIDDEN
Returns
- Attributes
Remarks
Set the matching criteria for metered networks.
A template where setMetered(MATCH_REQUIRED) will only match metered networks (one without NET_CAPABILITY_NOT_METERED). A template where setMetered(MATCH_FORBIDDEN) will only match a network that is not metered (one with NET_CAPABILITY_NOT_METERED).
Android reference for android.net.vcn.VcnWifiUnderlyingNetworkTemplate.Builder.setMetered.
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.