Added in API level 34

AwarePairingConfig


class AwarePairingConfig : Parcelable
kotlin.Any
   ↳ android.net.wifi.aware.AwarePairingConfig

The config for the Aware Pairing. Set to PublishConfig.Builder#setPairingConfig(AwarePairingConfig) and SubscribeConfig.Builder#setPairingConfig(AwarePairingConfig). Only valid when Characteristics#isAwarePairingSupported() is true.

Summary

Nested classes

Builder used to build AwarePairingConfig objects.

Constants
static Int

Aware Pairing bootstrapping method NFC reader

static Int

Aware Pairing bootstrapping method NFC tag

static Int

Aware Pairing bootstrapping method opportunistic

static Int

Aware Pairing bootstrapping method passphrase display

static Int

Aware Pairing bootstrapping method passphrase keypad

static Int

Aware Pairing bootstrapping method pin-code display

static Int

Aware Pairing bootstrapping method pin-code keypad

static Int

Aware Pairing bootstrapping method QR-code display

static Int

Aware Pairing bootstrapping method QR-code scan

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Int

Get the supported bootstrapping methods in this config.

Int

Boolean

Check if the NPK/NIK cache is support in the config

Boolean

Check if the Aware Pairing setup is support in the config.

Boolean

Check if the Aware Pairing verification is support in the config.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<AwarePairingConfig!>

Constants

PAIRING_BOOTSTRAPPING_NFC_READER

Added in API level 34
static val PAIRING_BOOTSTRAPPING_NFC_READER: Int

Aware Pairing bootstrapping method NFC reader

Value: 256

PAIRING_BOOTSTRAPPING_NFC_TAG

Added in API level 34
static val PAIRING_BOOTSTRAPPING_NFC_TAG: Int

Aware Pairing bootstrapping method NFC tag

Value: 16

PAIRING_BOOTSTRAPPING_OPPORTUNISTIC

Added in API level 34
static val PAIRING_BOOTSTRAPPING_OPPORTUNISTIC: Int

Aware Pairing bootstrapping method opportunistic

Value: 1

PAIRING_BOOTSTRAPPING_PASSPHRASE_DISPLAY

Added in API level 34
static val PAIRING_BOOTSTRAPPING_PASSPHRASE_DISPLAY: Int

Aware Pairing bootstrapping method passphrase display

Value: 4

PAIRING_BOOTSTRAPPING_PASSPHRASE_KEYPAD

Added in API level 34
static val PAIRING_BOOTSTRAPPING_PASSPHRASE_KEYPAD: Int

Aware Pairing bootstrapping method passphrase keypad

Value: 64

PAIRING_BOOTSTRAPPING_PIN_CODE_DISPLAY

Added in API level 34
static val PAIRING_BOOTSTRAPPING_PIN_CODE_DISPLAY: Int

Aware Pairing bootstrapping method pin-code display

Value: 2

PAIRING_BOOTSTRAPPING_PIN_CODE_KEYPAD

Added in API level 34
static val PAIRING_BOOTSTRAPPING_PIN_CODE_KEYPAD: Int

Aware Pairing bootstrapping method pin-code keypad

Value: 32

PAIRING_BOOTSTRAPPING_QR_DISPLAY

Added in API level 34
static val PAIRING_BOOTSTRAPPING_QR_DISPLAY: Int

Aware Pairing bootstrapping method QR-code display

Value: 8

PAIRING_BOOTSTRAPPING_QR_SCAN

Added in API level 34
static val PAIRING_BOOTSTRAPPING_QR_SCAN: Int

Aware Pairing bootstrapping method QR-code scan

Value: 128

Public methods

describeContents

Added in API level 34
fun describeContents(): Int
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

equals

Added in API level 34
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.

isPairingCacheEnabled

Added in API level 34
fun isPairingCacheEnabled(): Boolean

Check if the NPK/NIK cache is support in the config

isPairingSetupEnabled

Added in API level 34
fun isPairingSetupEnabled(): Boolean

Check if the Aware Pairing setup is support in the config. Setup is the first time for two device establish Aware Pairing

isPairingVerificationEnabled

Added in API level 34
fun isPairingVerificationEnabled(): Boolean

Check if the Aware Pairing verification is support in the config. Verification is for two device already paired and re-establish with cached NPK/NIK

writeToParcel

Added in API level 34
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

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

Added in API level 34
static val CREATOR: Parcelable.Creator<AwarePairingConfig!>