WifiP2pUsdBasedLocalServiceAdvertisementConfig
class WifiP2pUsdBasedLocalServiceAdvertisementConfig : Parcelable
| kotlin.Any | |
| ↳ | android.net.wifi.p2p.WifiP2pUsdBasedLocalServiceAdvertisementConfig | 
A class representing a Wi-Fi P2P USD based service advertisement configuration for advertising the services.
Summary
| Nested classes | |
|---|---|
| 
            
             Builder for   | 
        |
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | 
            
             Implement the Parcelable interface  | 
        
| Int | 
            
             Get the frequency on which the service is advertised.  | 
        
| String | 
            toString()Generates a string of all the defined elements.  | 
        
| Unit | 
            writeToParcel(dest: Parcel, flags: Int)Implement the Parcelable interface  | 
        
| Properties | |
|---|---|
| static Parcelable.Creator<WifiP2pUsdBasedLocalServiceAdvertisementConfig!> | 
            
             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 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
          
getFrequencyMhz
fun getFrequencyMhz(): Int
Get the frequency on which the service is advertised.
| Return | |
|---|---|
Int | 
            Value is 0 or greater | 
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 either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
          
Properties
CREATOR
static val CREATOR: Parcelable.Creator<WifiP2pUsdBasedLocalServiceAdvertisementConfig!>
Implement the Parcelable interface