Interface AppLaunchContext.OnLaunchFailed

Enclosing class:
AppLaunchContext
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface AppLaunchContext.OnLaunchFailed
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onLaunchFailed(Str startup_notify_id)
    The #GAppLaunchContext::launch-failed signal is emitted when a #GAppInfo launch
    fails.
  • Method Details

    • onLaunchFailed

      void onLaunchFailed(@Nonnull Str startup_notify_id)
      The #GAppLaunchContext::launch-failed signal is emitted when a #GAppInfo launch
      fails. The startup notification id is provided, so that the launcher
      can cancel the startup notification.

      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.
      Parameters:
      startup_notify_id - the startup notification id for the failed launch