Added in API level 14
WifiP2pDeviceList
open class WifiP2pDeviceList : Parcelable
kotlin.Any | |
↳ | android.net.wifi.p2p.WifiP2pDeviceList |
A class representing a Wi-Fi P2p device list. Note that the operations are not thread safe. {@see WifiP2pManager}
Summary
Inherited constants | |
---|---|
Public constructors | |
---|---|
WifiP2pDeviceList(source: WifiP2pDeviceList!) copy constructor |
Public methods | |
---|---|
open Int |
Implement the Parcelable interface |
open WifiP2pDevice! |
Fetch a device from the list |
open MutableCollection<WifiP2pDevice!>! |
Get the list of devices |
open String |
toString() |
open Unit |
writeToParcel(dest: Parcel, flags: Int) Implement the Parcelable interface |
Properties | |
---|---|
static Parcelable.Creator<WifiP2pDeviceList!> |
Implement the Parcelable interface |
Public constructors
WifiP2pDeviceList
Added in API level 14
WifiP2pDeviceList(source: WifiP2pDeviceList!)
copy constructor
Public methods
describeContents
Added in API level 14
open fun describeContents(): Int
Implement the Parcelable interface
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
get
Added in API level 18
open fun get(deviceAddress: String!): WifiP2pDevice!
Fetch a device from the list
Parameters | |
---|---|
deviceAddress |
String!: is the address of the device |
Return | |
---|---|
WifiP2pDevice! |
WifiP2pDevice device found, or null if none found |
getDeviceList
Added in API level 14
open fun getDeviceList(): MutableCollection<WifiP2pDevice!>!
Get the list of devices
toString
Added in API level 14
open fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
writeToParcel
Added in API level 14
open fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Implement the Parcelable interface
Parameters | |
---|---|
dest |
Parcel: The Parcel in which the object should be written. This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
Added in API level 14
static val CREATOR: Parcelable.Creator<WifiP2pDeviceList!>
Implement the Parcelable interface