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 |
|
| 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 | |
| Int |
Get the supported bootstrapping methods in this config. |
| Int |
Get the supported cipher suites in this config. |
| Int |
hashCode() |
| 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
static val PAIRING_BOOTSTRAPPING_NFC_READER: Int
Aware Pairing bootstrapping method NFC reader
Value: 256PAIRING_BOOTSTRAPPING_NFC_TAG
static val PAIRING_BOOTSTRAPPING_NFC_TAG: Int
Aware Pairing bootstrapping method NFC tag
Value: 16PAIRING_BOOTSTRAPPING_OPPORTUNISTIC
static val PAIRING_BOOTSTRAPPING_OPPORTUNISTIC: Int
Aware Pairing bootstrapping method opportunistic
Value: 1PAIRING_BOOTSTRAPPING_PASSPHRASE_DISPLAY
static val PAIRING_BOOTSTRAPPING_PASSPHRASE_DISPLAY: Int
Aware Pairing bootstrapping method passphrase display
Value: 4PAIRING_BOOTSTRAPPING_PASSPHRASE_KEYPAD
static val PAIRING_BOOTSTRAPPING_PASSPHRASE_KEYPAD: Int
Aware Pairing bootstrapping method passphrase keypad
Value: 64PAIRING_BOOTSTRAPPING_PIN_CODE_DISPLAY
static val PAIRING_BOOTSTRAPPING_PIN_CODE_DISPLAY: Int
Aware Pairing bootstrapping method pin-code display
Value: 2PAIRING_BOOTSTRAPPING_PIN_CODE_KEYPAD
static val PAIRING_BOOTSTRAPPING_PIN_CODE_KEYPAD: Int
Aware Pairing bootstrapping method pin-code keypad
Value: 32PAIRING_BOOTSTRAPPING_QR_DISPLAY
static val PAIRING_BOOTSTRAPPING_QR_DISPLAY: Int
Aware Pairing bootstrapping method QR-code display
Value: 8PAIRING_BOOTSTRAPPING_QR_SCAN
static val PAIRING_BOOTSTRAPPING_QR_SCAN: Int
Aware Pairing bootstrapping method QR-code scan
Value: 128Public methods
describeContents
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
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. |
getBootstrappingMethods
fun getBootstrappingMethods(): Int
Get the supported bootstrapping methods in this config. Set of the PAIRING_BOOTSTRAPPING_ values.
getSupportedCipherSuites
fun getSupportedCipherSuites(): Int
Get the supported cipher suites in this config.
| Return | |
|---|---|
Int |
Value is either 0 or a combination of android.net.wifi.aware.Characteristics#WIFI_AWARE_CIPHER_SUITE_NCS_PK_PASN_128, and android.net.wifi.aware.Characteristics#WIFI_AWARE_CIPHER_SUITE_NCS_PK_PASN_256 |
isPairingCacheEnabled
fun isPairingCacheEnabled(): Boolean
Check if the NPK/NIK cache is support in the config
isPairingSetupEnabled
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
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
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 |