Sequenceablepublic class WifiP2pDevice extends Object implements Sequenceable
You can use WifiP2pController#requestP2pInfo(int, WifiP2pCallback)
to obtain the Wi-Fi P2P device information.
Sequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
WifiP2pDevice() |
Default constructor of this Wi-Fi P2P device.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getConnState() |
Obtains the status of the Wi-Fi P2P device.
|
String |
getDeviceAddress() |
Obtains the address of the Wi-Fi P2P device.
|
String |
getDeviceName() |
Obtains the name of the Wi-Fi P2P device.
|
String |
getPrimaryDeviceType() |
Obtains the type of the primary Wi-Fi P2P device.
|
boolean |
isGroupOwner() |
Checks whether the Wi-Fi P2P device is the group owner.
|
boolean |
marshalling(Parcel out) |
Writes a
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Restores a
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic WifiP2pDevice()
public String getDeviceAddress()
public String getDeviceName()
public String getPrimaryDeviceType()
public int getConnState()
public boolean isGroupOwner()
true if the Wi-Fi P2P device is the group owner;
returns false otherwise.public boolean marshalling(Parcel out)
Sequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be written.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
Sequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been written.true if the unmarshalling is successful; returns false otherwise.