Schnittstelle AlertDialog.OnResponse

Umschließende Klasse:
AlertDialog
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface AlertDialog.OnResponse
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onResponse(Str response)
    This signal is emitted when the dialog is closed.
  • Methodendetails

    • onResponse

      void onResponse(@Nonnull Str response)
      This signal is emitted when the dialog is closed.

      @response will be set to the response ID of the button that had been
      activated.

      if the dialog was closed by pressing <kbd>Escape</kbd> or with a system
      action, @response will be set to the value of
      [property@AlertDialog:close-response].
      Parameter:
      response - the response ID