WifiP2pPairingBootstrappingConfig


class WifiP2pPairingBootstrappingConfig : Parcelable
kotlin.Any
   ↳ android.net.wifi.p2p.WifiP2pPairingBootstrappingConfig

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
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.

Parameters
method Int: One of the PAIRING_BOOTSTRAPPING_METHOD_*. Value is either 0 or a combination of android.net.wifi.p2p.WifiP2pPairingBootstrappingConfig#PAIRING_BOOTSTRAPPING_METHOD_OPPORTUNISTIC, android.net.wifi.p2p.WifiP2pPairingBootstrappingConfig#PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PINCODE, android.net.wifi.p2p.WifiP2pPairingBootstrappingConfig#PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PASSPHRASE, android.net.wifi.p2p.WifiP2pPairingBootstrappingConfig#PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PINCODE, android.net.wifi.p2p.WifiP2pPairingBootstrappingConfig#PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PASSPHRASE, and android.net.wifi.p2p.WifiP2pPairingBootstrappingConfig#PAIRING_BOOTSTRAPPING_METHOD_OUT_OF_BAND
password String?: Password or PIN for pairing setup. if method is PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PINCODE, the password must be a string containing 4 or more digits (0-9). For example: "1234", "56789". if method is PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PASSPHRASE or PAIRING_BOOTSTRAPPING_METHOD_OUT_OF_BAND, the password must be a UTF-8 string of minimum of 1 character. The password must be set to null if the method is PAIRING_BOOTSTRAPPING_METHOD_OPPORTUNISTIC, PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PINCODE or PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PASSPHRASE.
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