Sequenceablepublic class WifiP2pLinkedInfo extends Object implements Sequenceable
You can use WifiP2pController#requestP2pInfo(int, WifiP2pCallback)
to obtain the Wi-Fi P2P connection information.
Sequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
WifiP2pLinkedInfo() |
Default constructor of this Wi-Fi P2P linked info.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
InetAddress |
getGroupOwnerAddress() |
Obtains the address of the Wi-Fi P2P group owner.
|
boolean |
isGroupFormed() |
Checks whether a Wi-Fi P2P group has been formed.
|
boolean |
isGroupOwner() |
Checks whether this device is the Wi-Fi P2P 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 WifiP2pLinkedInfo()
public boolean isGroupFormed()
true if a Wi-Fi P2P group has been formed; returns false otherwise.public boolean isGroupOwner()
true if this device is the Wi-Fi P2P group owner; returns false otherwise.public InetAddress getGroupOwnerAddress()
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.