Język

DiscoveryRequest.FlagNoPicker Field

Definition

Indicates that a UI service picker should never be shown to the user for this request.

[Android.Runtime.Register("FLAG_NO_PICKER", ApiSince=37)]
public const long FlagNoPicker = 1;
[<Android.Runtime.Register("FLAG_NO_PICKER", ApiSince=37)>]
val mutable FlagNoPicker : int64

Field Value

Value = 1

Implements

Attributes

Remarks

Indicates that a UI service picker should never be shown to the user for this request.

Starting from target SDK CinnamonBun (API level 37), if the caller does not have the AccessLocalNetwork permission and does not specify FlagUserApprovedOnly, the request fails through OnStartDiscoveryFailed(String, NsdFailure) with PermissionDenied.

Android reference for android.net.nsd.DiscoveryRequest.FLAG_NO_PICKER.

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