WifiP2pWfdInfo.SetDeviceType(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 type of the device.
[Android.Runtime.Register("setDeviceType", "(I)Z", "", ApiSince=30)]
public bool SetDeviceType (int deviceType);
[<Android.Runtime.Register("setDeviceType", "(I)Z", "", ApiSince=30)>]
member this.SetDeviceType : int -> bool
Parameters
- deviceType
- Int32
One of #DEVICE_TYPE_WFD_SOURCE
, #DEVICE_TYPE_PRIMARY_SINK
,
#DEVICE_TYPE_SECONDARY_SINK
, #DEVICE_TYPE_SOURCE_OR_PRIMARY_SINK
Returns
true if the device type was successfully set, false otherwise
- Attributes
Remarks
Sets the type of the device.
Java documentation for android.net.wifi.p2p.WifiP2pWfdInfo.setDeviceType(int)
.
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.