Sequenceablepublic class WifiP2pNetworkInfo extends Object implements Sequenceable
You can use WifiP2pController#requestP2pInfo(int, WifiP2pCallback)
to obtain information about the Wi-Fi P2P network.
Sequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
WifiP2pNetworkInfo() |
Default constructor used to create a
WifiP2pNetworkInfo instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
WifiLinkedInfo.ConnState |
getConnState() |
Obtains the detailed state of the Wi-Fi P2P network.
|
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 WifiP2pNetworkInfo()
WifiP2pNetworkInfo instance.public WifiLinkedInfo.ConnState getConnState()
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.