Package org.gnome.gio
Interface AppLaunchContext.LaunchStartedCallback
- All Superinterfaces:
FunctionPointer
- 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.LaunchStartedCallback
extends FunctionPointer
Functional interface declaration of the
LaunchStartedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
TheGio.AppLaunchContext::launch-started
signal is emitted when aAppInfo
is about to be launched.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceAppLaunchContext, MemorySegment info, MemorySegment platformData) Theupcall
method is called from native code.
-
Method Details
-
run
TheGio.AppLaunchContext::launch-started
signal is emitted when aAppInfo
is about to be launched. If non-null theplatformData
is an GVariant dictionary mapping strings to variants (iea{sv}
), which contains additional, platform-specific data about this launch. On UNIX, at least thestartup-notification-id
keys will be present.The value of the
startup-notification-id
key (types
) 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
Gio.AppLaunchContext::launched
orGio.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.
-
upcall
default void upcall(MemorySegment sourceAppLaunchContext, MemorySegment info, MemorySegment platformData) Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gio.AppInfo, org.gnome.glib.Variant)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-