WifiP2pDiscoveryConfig
public
final
class
WifiP2pDiscoveryConfig
extends Object
implements
Parcelable
| java.lang.Object | |
| ↳ | android.net.wifi.p2p.WifiP2pDiscoveryConfig |
A class representing a Wi-Fi P2P scan configuration for setting up discovery.
Summary
Nested classes | |
|---|---|
class |
WifiP2pDiscoveryConfig.Builder
Builder for |
Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Creator<WifiP2pDiscoveryConfig> |
CREATOR
Implement the Parcelable interface |
Public methods | |
|---|---|
int
|
describeContents()
Implement the Parcelable interface |
int
|
getFrequencyMhz()
Get the frequency to scan in MHz. |
int
|
getScanType()
Get the type of this scan. |
String
|
toString()
Returns a string representation of the object. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
|---|---|
Fields
CREATOR
public static final Creator<WifiP2pDiscoveryConfig> 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
|
getFrequencyMhz
public int getFrequencyMhz ()
Get the frequency to scan in MHz. See Builder.setFrequencyMhz(int)
| Returns | |
|---|---|
int |
|
getScanType
public int getScanType ()
Get the type of this scan. See Builder.Builder(int)}
| Returns | |
|---|---|
int |
Value is one of the following: |
toString
public String toString ()
Returns a string representation of the object.
| Returns | |
|---|---|
String |
a string representation of the object. |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
| 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 the following:
|
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 2026-02-13 UTC.