Sequenceablepublic class WifiP2pGroup extends Object implements Sequenceable
You can use WifiP2pController#requestP2pInfo(int, WifiP2pCallback)
to obtain information about the Wi-Fi P2P group.
Sequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
WifiP2pGroup() |
Default constructor of this Wi-Fi P2P group.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<WifiP2pDevice> |
getClientList() |
Obtains the list of clients of this Wi-Fi P2P group.
|
int |
getFrequency() |
Obtains the frequency of this Wi-Fi P2P group.
|
String |
getGroupName() |
Obtains the name of this Wi-Fi P2P group.
|
String |
getInterfaceName() |
Obtains the interface name of this Wi-Fi P2P group.
|
int |
getNetId() |
Obtains the network ID of this Wi-Fi P2P group.
|
String |
getOwnerIpAddress() |
Obtains the IP address of this Wi-Fi P2P group owner.
|
String |
getPassphrase() |
Obtains the passphrase of this Wi-Fi P2P group.
|
boolean |
isGroupOwner() |
Checks whether this device is the Wi-Fi P2P group owner.
|
boolean |
marshalling(Parcel out) |
Writes a
Sequenceable object into a Parcel. |
void |
setOwnerIpAddress(String ownerIpAddress) |
Sets the IP address of this Wi-Fi P2P group owner.
|
boolean |
unmarshalling(Parcel in) |
Restores a
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic int getFrequency()
public int getNetId()
public String getGroupName()
public String getInterfaceName()
public String getPassphrase()
public String getOwnerIpAddress()
public void setOwnerIpAddress(String ownerIpAddress)
ownerIpAddress - Indicates the IP address to set for this Wi-Fi P2P group owner.public boolean isGroupOwner()
true if this device is the Wi-Fi P2P group owner; returns false otherwise.public List<WifiP2pDevice> getClientList()
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.