WifiP2pUsdBasedServiceResponse
class WifiP2pUsdBasedServiceResponse : Parcelable
| kotlin.Any | |
| ↳ | android.net.wifi.p2p.nsd.WifiP2pUsdBasedServiceResponse | 
A class for a response for USD based service discovery. For the details of the configuration, refer Wi-Fi Alliance Wi-Fi Direct R2 specification - Appendix H - Unsynchronized Service Discovery (as defined in Wi-Fi Aware) and section 4.2.13 USD frame format.
Summary
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | Implement the Parcelable interface | 
| Int | Get the service protocol type provided by the peer device in the USD service response. | 
| ByteArray? | Get the service specific information provided by the peer device in the USD service response. | 
| String | toString()Generates a string of all the defined elements. | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Implement the Parcelable interface | 
| Properties | |
|---|---|
| static Parcelable.Creator<WifiP2pUsdBasedServiceResponse!> | 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 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
getServiceProtocolType
fun getServiceProtocolType(): Int
Get the service protocol type provided by the peer device in the USD service response. See also WifiP2pUsdBasedServiceConfig.Builder.setServiceProtocolType(int)
| Return | |
|---|---|
| Int | A non-negative service layer protocol type. Value is between 0 and 255 inclusive | 
getServiceSpecificInfo
fun getServiceSpecificInfo(): ByteArray?
Get the service specific information provided by the peer device in the USD service response. See also WifiP2pUsdBasedServiceConfig.Builder.setServiceSpecificInfo(byte[])
| Return | |
|---|---|
| ByteArray? | A byte-array of service specification information, or null if unset. | 
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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
Properties
CREATOR
static val CREATOR: Parcelable.Creator<WifiP2pUsdBasedServiceResponse!>
Implement the Parcelable interface
