ChooseCertificateDialog

public class ChooseCertificateDialog implements ChooseCertificate

Implementation of ChooseCertificate interface, using a DialogFragment to display UI for the user.

Constructors

ChooseCertificateDialog

public ChooseCertificateDialog(FragmentActivity fragmentActivity)

Creates a ChooseCertificateDialog instance.

Parameters:
  • fragmentActivity – activity in which UI will be displayed.

Methods

chooseCertificate

public void chooseCertificate(List<Certificate> certificateList, ChooseCertificate.Callback callback)

Shows a dialog fragment asking the user to choose a certificate from a list.

If a certificate is chosen or the user cancels certificate choice, dialog is closed. If given list is null or empty, nothing happens.

Parameters:
  • certificateList – list of certificates
  • callback – object to use as a callback.

dismissChooseCertificate

public void dismissChooseCertificate()

Stops asking the user to choose a certificate.