Language

WifiP2pPairingBootstrappingConfig.PairingBootstrappingPassword Property

Definition

Retrieves the PIN or password used for the current pairing bootstrapping method.

public string? PairingBootstrappingPassword { [Android.Runtime.Register("getPairingBootstrappingPassword", "()Ljava/lang/String;", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getPairingBootstrappingPassword", "()Ljava/lang/String;", "", ApiSince=36)>]
member this.PairingBootstrappingPassword : string

Property Value

The PIN or password as a String, or null if not applicable for the current pairing bootstrapping method.

Attributes

Remarks

Retrieves the PIN or password used for the current pairing bootstrapping method.

The specific type and format of the returned value depend on the active pairing bootstrapping method:

If the method is #PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PINCODE or #PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PINCODE, this method returns a PIN. A PIN is a string consisting of 4 or more digits (0-9).

If the method is #PAIRING_BOOTSTRAPPING_METHOD_DISPLAY_PASSPHRASE or #PAIRING_BOOTSTRAPPING_METHOD_KEYPAD_PASSPHRASE this method returns a password. A password is a UTF-8 encoded string with a minimum length of 1 character.

Java documentation for android.net.wifi.p2p.WifiP2pPairingBootstrappingConfig.getPairingBootstrappingPassword().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to