ShowQRActivity

public final class ShowQRActivity extends AppCompatActivity

Activity to show the QR code to the user

Constructors

Link copied to clipboard

Types

Link copied to clipboard
public class Companion

Properties

Link copied to clipboard

The button to save the QR code

Link copied to clipboard
public final static ShowQRActivity.Companion Companion
Link copied to clipboard
public final static String EXTRA_QR_IMAGE_BYTES

Extra key to pass the QR code image bytes to the activity

Link copied to clipboard

The back button

Link copied to clipboard

The image view to show the QR code

Functions

Link copied to clipboard
private final AppCompatButton getBtnSaveQr()

The button to save the QR code

Link copied to clipboard
private final AppCompatImageView getIvBack()

The back button

Link copied to clipboard
private final AppCompatImageView getIvQr()

The image view to show the QR code

Link copied to clipboard

Override the back button press and navigate to the main activity

Link copied to clipboard
protected Unit onCreate(Bundle savedInstanceState)
Link copied to clipboard
private final Unit setBtnSaveQr(AppCompatButton btnSaveQr)

The button to save the QR code

Link copied to clipboard
private final Unit setIvBack(AppCompatImageView ivBack)

The back button

Link copied to clipboard
private final Unit setIvQr(AppCompatImageView ivQr)

The image view to show the QR code

Link copied to clipboard
private final Unit setupComponents()

Sets up the components in the activity

Link copied to clipboard
private final Unit setUpListeners()

Sets up the listeners for the UI components

Link copied to clipboard
private final Unit showQRSaved()

Shows a dialog to indicate that the QR code is saved to the gallery