Share via


WifiP2pWfdInfo.SetDeviceType(Int32) Method

Definition

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.

Applies to