WifiP2pWfdInfo.SetR2DeviceType(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 Wifi Display R2 device.
[Android.Runtime.Register("setR2DeviceType", "(I)Z", "", ApiSince=31)]
public bool SetR2DeviceType (int deviceType);
[<Android.Runtime.Register("setR2DeviceType", "(I)Z", "", ApiSince=31)>]
member this.SetR2DeviceType : int -> bool
Parameters
- deviceType
- Int32
Returns
true if the device type was successfully set, false otherwise
- Attributes
Remarks
Sets the type of the Wifi Display R2 device. See Wifi Display technical specification v2.0.0, section 5.1.12 for Wifi Display R2. Before calling this API, call WifiManager#isWifiDisplayR2Supported() to know whether Wifi Display R2 is supported or not. If R2 info was filled without Wifi Display R2 support, {@link WifiP2pManager#setWfdInfo(Channel, WifiP2pWfdInfo, ActionListener) would fail.
@param deviceType One of {@link #DEVICE_TYPE_WFD_SOURCE
, #DEVICE_TYPE_PRIMARY_SINK
, #DEVICE_TYPE_SOURCE_OR_PRIMARY_SINK
Java documentation for android.net.wifi.p2p.WifiP2pWfdInfo.setR2DeviceType(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.