Schnittstelle AppLaunchContext.OnLaunchStarted

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

@FunctionalInterface public static interface AppLaunchContext.OnLaunchStarted
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onLaunchStarted(AppInfo info, Variant platform_data)
    The [signal@Gio.AppLaunchContext::launch-started] signal is emitted when a
    [iface@Gio.AppInfo] is about to be launched.
  • Methodendetails

    • onLaunchStarted

      void onLaunchStarted(@Nonnull AppInfo info, @Nullable Variant platform_data)
      The [signal@Gio.AppLaunchContext::launch-started] signal is emitted when a
      [iface@Gio.AppInfo] is about to be launched. If non-null the
      @platform_data is an GVariant dictionary mapping strings to variants
      (ie `a{sv}`), which contains additional, platform-specific data about this
      launch. On UNIX, at least the `startup-notification-id` keys will be
      present.

      The value of the `startup-notification-id` key (type `s`) is a startup
      notification ID corresponding to the format from the [startup-notification
      specification](https://specifications.freedesktop.org/startup-notification-spec/startup-notification-0.1.txt).
      It allows tracking the progress of the launchee through startup.

      It is guaranteed that this signal is followed by either a
      [signal@Gio.AppLaunchContext::launched] or
      [signal@Gio.AppLaunchContext::launch-failed] signal.

      Because a launch operation may involve spawning multiple instances of the
      target application, you should expect this signal to be emitted multiple
      times, one for each spawned instance.
      Parameter:
      info - the [iface@Gio.AppInfo] that is about to be launched
      platform_data - additional platform-specific data for this launch