DiscoveryRequest.Builder.SetFlags 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.
Overloads
| Name | Description |
|---|---|
| SetFlags(Int64) |
Set all the discovery flags. |
| SetFlags(Int64, Int64) |
Sets the discovery flags. |
SetFlags(Int64)
Set all the discovery flags.
[Android.Runtime.Register("setFlags", "(J)Landroid/net/nsd/DiscoveryRequest$Builder;", "", ApiSince=37)]
public Android.Net.Nsd.DiscoveryRequest.Builder SetFlags(long flags);
[<Android.Runtime.Register("setFlags", "(J)Landroid/net/nsd/DiscoveryRequest$Builder;", "", ApiSince=37)>]
member this.SetFlags : int64 -> Android.Net.Nsd.DiscoveryRequest.Builder
Parameters
- flags
- Int64
A bitmask of flags that should be enabled, or 0 to disable all flags. The flags are FlagNoPicker, FlagShowPicker, and FlagUserApprovedOnly.
Returns
This builder, with all discovery flags set to the supplied value.
- Attributes
Remarks
Set all the discovery flags.
FlagShowPicker cannot be combined with FlagNoPicker or FlagUserApprovedOnly. Build() rejects these combinations.
Android reference for android.net.nsd.DiscoveryRequest.Builder.setFlags.
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
SetFlags(Int64, Int64)
Sets the discovery flags.
[Android.Runtime.Register("setFlags", "(JJ)Landroid/net/nsd/DiscoveryRequest$Builder;", "", ApiSince=37)]
public Android.Net.Nsd.DiscoveryRequest.Builder SetFlags(long flags, long mask);
[<Android.Runtime.Register("setFlags", "(JJ)Landroid/net/nsd/DiscoveryRequest$Builder;", "", ApiSince=37)>]
member this.SetFlags : int64 * int64 -> Android.Net.Nsd.DiscoveryRequest.Builder
Parameters
- flags
- Int64
A bitmask of values to set; it may be a single flag, the bitwise OR of multiple flags, or 0 to clear. The flags are FlagNoPicker, FlagShowPicker, and FlagUserApprovedOnly.
- mask
- Int64
A bitmask indicating which flags to modify. The flags are FlagNoPicker, FlagShowPicker, and FlagUserApprovedOnly.
Returns
This builder, with the discovery flags selected by the mask updated.
- Attributes
Remarks
Sets the discovery flags.
Multiple flags may be enabled or disabled by passing the logical OR of the flags.
FlagShowPicker cannot be combined with FlagNoPicker or FlagUserApprovedOnly. Build() rejects these combinations.
For example, to set FlagNoPicker, call builder.SetFlags(DiscoveryRequest.FlagNoPicker, DiscoveryRequest.FlagNoPicker).
To disable it, call builder.SetFlags(0, DiscoveryRequest.FlagNoPicker).
Android reference for android.net.nsd.DiscoveryRequest.Builder.setFlags.
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.