Partager via


NetworkRequest.CanBeSatisfiedBy(NetworkCapabilities) Method

Definition

Returns true if and only if the capabilities requested in this NetworkRequest are satisfied by the provided NetworkCapabilities.

[Android.Runtime.Register("canBeSatisfiedBy", "(Landroid/net/NetworkCapabilities;)Z", "GetCanBeSatisfiedBy_Landroid_net_NetworkCapabilities_Handler", ApiSince=30)]
public virtual bool CanBeSatisfiedBy (Android.Net.NetworkCapabilities? nc);
[<Android.Runtime.Register("canBeSatisfiedBy", "(Landroid/net/NetworkCapabilities;)Z", "GetCanBeSatisfiedBy_Landroid_net_NetworkCapabilities_Handler", ApiSince=30)>]
abstract member CanBeSatisfiedBy : Android.Net.NetworkCapabilities -> bool
override this.CanBeSatisfiedBy : Android.Net.NetworkCapabilities -> bool

Parameters

nc
NetworkCapabilities

Capabilities that should satisfy this NetworkRequest. null capabilities do not satisfy any request.

Returns

Attributes

Remarks

Returns true if and only if the capabilities requested in this NetworkRequest are satisfied by the provided NetworkCapabilities.

Java documentation for android.net.NetworkRequest.canBeSatisfiedBy(android.net.NetworkCapabilities).

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.

Applies to