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. Value is either 0 or a combination of the following: DiscoveryRequest.FLAG_NO_PICKER; DiscoveryRequest.FLAG_SHOW_PICKER; DiscoveryRequest.FLAG_USER_APPROVED_ONLY
Returns
- Attributes
Remarks
Set all the discovery flags.
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; may be a single flag, the logical OR of multiple flags, or 0 to clear. Value is either 0 or a combination of the following: DiscoveryRequest.FLAG_NO_PICKER; DiscoveryRequest.FLAG_SHOW_PICKER; DiscoveryRequest.FLAG_USER_APPROVED_ONLY
- mask
- Int64
a bitmask indicating which flags to modify. Value is either 0 or a combination of the following: DiscoveryRequest.FLAG_NO_PICKER; DiscoveryRequest.FLAG_SHOW_PICKER; DiscoveryRequest.FLAG_USER_APPROVED_ONLY
Returns
- Attributes
Remarks
Sets the discovery flags.
Multiple flags may be enabled or disabled by passing the logical OR of the flags.
For example, to set DiscoveryRequest.FLAG_NO_PICKER: setFlags(FLAG_NO_PICKER, FLAG_NO_PICKER)
To disable DiscoveryRequest.FLAG_NO_PICKER: setFlags(0, FLAG_NO_PICKER)
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.