WifiP2pUsdBasedServiceDiscoveryConfig
public
final
class
WifiP2pUsdBasedServiceDiscoveryConfig
extends Object
implements
Parcelable
| java.lang.Object | |
| ↳ | android.net.wifi.p2p.WifiP2pUsdBasedServiceDiscoveryConfig |
A class representing a Wi-Fi P2P USD based service discovery configuration for discovering the services.
Summary
Nested classes | |
|---|---|
class |
WifiP2pUsdBasedServiceDiscoveryConfig.Builder
Builder for |
Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Creator<WifiP2pUsdBasedServiceDiscoveryConfig> |
CREATOR
Implement the Parcelable interface |
Public methods | |
|---|---|
int
|
describeContents()
Implement the Parcelable interface |
int
|
getBand()
Get the band to scan for services. |
int[]
|
getFrequenciesMhz()
Get the frequencies to scan for services. |
String
|
toString()
Generates a string of all the defined elements. |
void
|
writeToParcel(Parcel dest, int flags)
Implement the Parcelable interface |
Inherited methods | |
|---|---|
Fields
CREATOR
public static final Creator<WifiP2pUsdBasedServiceDiscoveryConfig> CREATOR
Implement the Parcelable interface
Public methods
describeContents
public int describeContents ()
Implement the Parcelable interface
| Returns | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
getBand
public int getBand ()
Get the band to scan for services. See Builder.setBand(int)
| Returns | |
|---|---|
int |
Value is ScanResult.UNSPECIFIED, ScanResult.WIFI_BAND_24_GHZ, ScanResult.WIFI_BAND_5_GHZ, ScanResult.WIFI_BAND_6_GHZ, or ScanResult.WIFI_BAND_60_GHZ |
getFrequenciesMhz
public int[] getFrequenciesMhz ()
Get the frequencies to scan for services. See Builder.setFrequenciesMhz(int[])
| Returns | |
|---|---|
int[] |
This value may be null. |
toString
public String toString ()
Generates a string of all the defined elements.
| Returns | |
|---|---|
String |
a compiled string representing all elements |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
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.PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.