WifiP2pPairingBootstrappingConfig


class WifiP2pPairingBootstrappingConfig : Parcelable

A class representing Wi-Fi Direct pairing bootstrapping configuration.

Summary

Constants
static Int

Pairing bootstrapping method display passphrase - The passphrase is displayed on the connection initiating device.

static Int

Pairing bootstrapping method display pin-code - The pin-code is displayed on the connection initiating device.

static Int

Pairing bootstrapping method keypad passphrase - The passphrase is displayed on the other device.

static Int

Pairing bootstrapping method keypad pin-code - The pin-code is displayed on the other device.

static Int

Pairing bootstrapping method opportunistic

static Int

Pairing bootstrapping done out of band (For example: Over Bluetooth LE. Refer Wi-Fi Alliance Wi-Fi Direct R2 specification Section 3.9 for the details).

Inherited constants
Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.

Public constructors

Constructor for a WifiP2pPairingBootstrappingConfig.

Public methods
Int

Implement the Parcelable interface

String

Generates a string of all the defined elements.

Unit
writeToParcel(dest: Parcel, flags: Int)

Implement the Parcelable interface

Properties
static Parcelable.Creator<WifiP2pPairingBootstrappingConfig!>

Implement the Parcelable interface

Constants

PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PASSPHRASE

static val PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PASSPHRASE: Int

Pairing bootstrapping method display passphrase - The passphrase is displayed on the connection initiating device. The user enters the displayed passphrase on the other device.

Value: 4

PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PINCODE

static val PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PINCODE: Int

Pairing bootstrapping method display pin-code - The pin-code is displayed on the connection initiating device. The user enters the displayed pin-code on the other device.

Value: 2

PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PASSPHRASE

static val PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PASSPHRASE: Int

Pairing bootstrapping method keypad passphrase - The passphrase is displayed on the other device. The user enters the displayed passphrase on the connection initiating device.

Value: 16

PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PINCODE

static val PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PINCODE: Int

Pairing bootstrapping method keypad pin-code - The pin-code is displayed on the other device. The user enters the displayed pin-code on the connection initiating device.

Value: 8

PAIRING_BOOTSTRAPPING_METHOD_OPPORTUNISTIC

static val PAIRING_BOOTSTRAPPING_METHOD_OPPORTUNISTIC: Int

Pairing bootstrapping method opportunistic

Value: 1

PAIRING_BOOTSTRAPPING_METHOD_OUT_OF_BAND

static val PAIRING_BOOTSTRAPPING_METHOD_OUT_OF_BAND: Int

Pairing bootstrapping done out of band (For example: Over Bluetooth LE. Refer Wi-Fi Alliance Wi-Fi Direct R2 specification Section 3.9 for the details).

Value: 32

Public constructors

WifiP2pPairingBootstrappingConfig

WifiP2pPairingBootstrappingConfig(
    method: Int,
    password: String?)

Constructor for a WifiP2pPairingBootstrappingConfig.

Exceptions
java.lang.IllegalArgumentException if a non-null password is set for pairing bootstrapping method PAIRING_BOOTSTRAPPING_METHOD_OPPORTUNISTIC, PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PINCODE or PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PASSPHRASE.

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

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<WifiP2pPairingBootstrappingConfig!>

Implement the Parcelable interface