WifiP2pUsdBasedLocalServiceAdvertisementConfig
public
final
class
WifiP2pUsdBasedLocalServiceAdvertisementConfig
extends Object
implements
Parcelable
| java.lang.Object | |
| ↳ | android.net.wifi.p2p.WifiP2pUsdBasedLocalServiceAdvertisementConfig |
A class representing a Wi-Fi P2P USD based service advertisement configuration for advertising the services.
Summary
Nested classes | |
|---|---|
class |
WifiP2pUsdBasedLocalServiceAdvertisementConfig.Builder
Builder for |
Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Creator<WifiP2pUsdBasedLocalServiceAdvertisementConfig> |
CREATOR
Implement the Parcelable interface |
Public methods | |
|---|---|
int
|
describeContents()
Implement the Parcelable interface |
int
|
getFrequencyMhz()
Get the frequency on which the service is advertised. |
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<WifiP2pUsdBasedLocalServiceAdvertisementConfig> 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 |
getFrequencyMhz
public int getFrequencyMhz ()
Get the frequency on which the service is advertised.
| Returns | |
|---|---|
int |
Value is 0 or greater |
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.