WifiP2pUsdBasedServiceDiscoveryConfig
class WifiP2pUsdBasedServiceDiscoveryConfig : Parcelable
| kotlin.Any | |
| ↳ | android.net.wifi.p2p.WifiP2pUsdBasedServiceDiscoveryConfig | 
A class representing a Wi-Fi P2P USD based service discovery configuration for discovering the services.
Summary
| Nested classes | |
|---|---|
| Builder for  | |
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | Implement the Parcelable interface | 
| Int | getBand()Get the band to scan for services. | 
| IntArray? | Get the frequencies to scan for services. | 
| String | toString()Generates a string of all the defined elements. | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Implement the Parcelable interface | 
| Properties | |
|---|---|
| static Parcelable.Creator<WifiP2pUsdBasedServiceDiscoveryConfig!> | Implement the Parcelable interface | 
Public methods
describeContents
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 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
getBand
fun getBand(): Int
Get the band to scan for services. See Builder.setBand(int)
getFrequenciesMhz
fun getFrequenciesMhz(): IntArray?
Get the frequencies to scan for services. See Builder.setFrequenciesMhz(int[])
| Return | |
|---|---|
| IntArray? | This value may be null. | 
toString
fun toString(): String
Generates a string of all the defined elements.
| Return | |
|---|---|
| String | a compiled string representing all elements | 
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Implement the Parcelable interface
| Parameters | |
|---|---|
| dest | Parcel: 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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
Properties
CREATOR
static val CREATOR: Parcelable.Creator<WifiP2pUsdBasedServiceDiscoveryConfig!>
Implement the Parcelable interface
