WifiP2pUsdBasedServiceConfig.Builder.SetServiceProtocolType(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.
Specify the service discovery protocol type.
[Android.Runtime.Register("setServiceProtocolType", "(I)Landroid/net/wifi/p2p/nsd/WifiP2pUsdBasedServiceConfig$Builder;", "", ApiSince=36)]
public Android.Net.Wifi.P2p.Nsd.WifiP2pUsdBasedServiceConfig.Builder SetServiceProtocolType(int serviceProtocolType);
[<Android.Runtime.Register("setServiceProtocolType", "(I)Landroid/net/wifi/p2p/nsd/WifiP2pUsdBasedServiceConfig$Builder;", "", ApiSince=36)>]
member this.SetServiceProtocolType : int -> Android.Net.Wifi.P2p.Nsd.WifiP2pUsdBasedServiceConfig.Builder
Parameters
- serviceProtocolType
- Int32
One of the SERVICE_PROTOCOL_TYPE_* or a non-negative number set by the service layer. Value is between 0 and 255 inclusive
Returns
The builder to facilitate chaining builder.setXXX(..).setXXX(..). This value cannot be null.
- Attributes
Remarks
Specify the service discovery protocol type.
Optional. SERVICE_PROTOCOL_TYPE_GENERIC by default.
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.