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 WifiP2pUsdBasedServiceDiscoveryConfig

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

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