.. java:import:: android.annotation SuppressLint .. java:import:: android.app Activity .. java:import:: android.app AlertDialog .. java:import:: android.app Dialog .. java:import:: android.content DialogInterface .. java:import:: android.os Bundle .. java:import:: android.view LayoutInflater .. java:import:: android.view View .. java:import:: android.view ViewGroup .. java:import:: android.widget ArrayAdapter .. java:import:: android.widget ImageView .. java:import:: android.widget ListView .. java:import:: android.widget TextView .. java:import:: android.widget Toast .. java:import:: androidx.annotation NonNull .. java:import:: androidx.annotation Nullable .. java:import:: androidx.fragment.app DialogFragment .. java:import:: androidx.fragment.app FragmentActivity .. java:import:: com.idopte.scmapi Certificate .. java:import:: com.idopte.scmapi Util .. java:import:: com.idopte.scmjavaapi R .. java:import:: java.util List ChooseCertificateDialog ======================= .. java:package:: com.idopte.scmapi.ui :noindex: .. java:type:: public class ChooseCertificateDialog implements ChooseCertificate Implementation of \ :java:ref:`ChooseCertificate`\ interface, using a ``DialogFragment`` to display UI for the user. Constructors ------------ ChooseCertificateDialog ^^^^^^^^^^^^^^^^^^^^^^^ .. java:constructor:: public ChooseCertificateDialog(FragmentActivity fragmentActivity) :outertype: ChooseCertificateDialog Creates a ChooseCertificateDialog instance. :param fragmentActivity: activity in which UI will be displayed. Methods ------- chooseCertificate ^^^^^^^^^^^^^^^^^ .. java:method:: @Override public void chooseCertificate(List certificateList, ChooseCertificate.Callback callback) :outertype: ChooseCertificateDialog 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. :param certificateList: list of certificates :param callback: object to use as a callback. dismissChooseCertificate ^^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Override public void dismissChooseCertificate() :outertype: ChooseCertificateDialog Stops asking the user to choose a certificate.