AdvertisingRequest.Builder.SetProtocolType(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.
Sets the protocol to use for advertising.
[Android.Runtime.Register("setProtocolType", "(I)Landroid/net/nsd/AdvertisingRequest$Builder;", "", ApiSince=36)]
public Android.Net.Nsd.AdvertisingRequest.Builder SetProtocolType(int protocolType);
[<Android.Runtime.Register("setProtocolType", "(I)Landroid/net/nsd/AdvertisingRequest$Builder;", "", ApiSince=36)>]
member this.SetProtocolType : int -> Android.Net.Nsd.AdvertisingRequest.Builder
Parameters
- protocolType
- Int32
the advertising protocol to use. Value is one of the following: NsdManager.PROTOCOL_DNS_SD
Returns
- Attributes
Remarks
Sets the protocol to use for advertising.
Android reference for android.net.nsd.AdvertisingRequest.Builder.setProtocolType.
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.