Skip to content

SimplePinDialog

Philipp Niedermayer edited this page Aug 7, 2022 · 1 revision

Pin dialog

extends CustomViewDialog

API reference Examples

A dialog asking for a pin.

Usage

For general usage see SimpleDialog.

Additional methods are provided to set the length (length) or expected pin to validate (pin).

Please refer to the API reference for a comprehensive documentation of these methods.

Receiving results

For general usage see SimpleDialog.

The extras Bundle returned will contain the following additional keys:

String pin = extras.getString(SimplePinDialog.PIN);

Examples

SimplePinDialog.build()
               .length(4)
               .show(this, DIALOG_TAG);
SimplePinDialog.build()
               .pin("123456")
               .show(this, DIALOG_TAG);