Class Prompt

All Implemented Interfaces:
org.freedesktop.dbus.interfaces.DBusInterface, Prompt

public class Prompt
extends Messaging
implements Prompt
  • Field Details

    • signals

      public static final List<Class<? extends org.freedesktop.dbus.messages.DBusSignal>> signals
  • Constructor Details

  • Method Details

    • prompt

      public void prompt​(String window_id)
      Description copied from interface: Prompt
      Perform the prompt.
      Specified by:
      prompt in interface Prompt
      Parameters:
      window_id - Platform specific window handle to use for showing the prompt.
      See Also:
      Prompt.Completed
    • prompt

      public void prompt​(org.freedesktop.dbus.ObjectPath prompt) throws NoSuchObject
      Description copied from interface: Prompt
      Perform the prompt.
      Specified by:
      prompt in interface Prompt
      Parameters:
      prompt - Objectpath of the prompt.
      Throws:
      NoSuchObject - No such item or collection exists.
      See Also:
      Prompt.Completed
    • await

      public Prompt.Completed await​(org.freedesktop.dbus.ObjectPath path, Duration timeout)
      Await the user interaction with the prompt.

      A prompt can either be dismissed or be completed successfully.

      Parameters:
      path - Objectpath of the prompt.
      timeout - Duration until the prompt times out.
      Returns:
      Completed or null if user input exceeds the default timeout.
      See Also:
      Prompt.Completed
    • await

      public Prompt.Completed await​(org.freedesktop.dbus.ObjectPath path)
      Await the user interaction with the prompt.

      A prompt can either be dismissed or be completed successfully.

      Parameters:
      path - Objectpath of the prompt.
      Returns:
      Completed or null if user input exceeds the default timeout.
      See Also:
      Prompt.Completed
    • dismiss

      public void dismiss()
      Description copied from interface: Prompt
      Dismiss the prompt.
      Specified by:
      dismiss in interface Prompt
    • isRemote

      public boolean isRemote()
      Specified by:
      isRemote in interface org.freedesktop.dbus.interfaces.DBusInterface
    • getObjectPath

      public String getObjectPath()
      Specified by:
      getObjectPath in interface org.freedesktop.dbus.interfaces.DBusInterface
      Overrides:
      getObjectPath in class Messaging