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 TypeMethodDescriptionvoidTheGio.AppLaunchContext::launch-startedsignal is emitted when aAppInfois about to be launched.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceAppLaunchContext, MemorySegment info, MemorySegment platformData) Theupcallmethod is called from native code.
-
Method Details
-
run
TheGio.AppLaunchContext::launch-startedsignal is emitted when aAppInfois about to be launched. If non-null theplatformDatais an GVariant dictionary mapping strings to variants (iea{sv}), which contains additional, platform-specific data about this launch. On UNIX, at least thestartup-notification-idkeys will be present.The value of the
startup-notification-idkey (types) is a startup notification ID corresponding to the format from the startup-notification specification. It allows tracking the progress of the launchee through startup.It is guaranteed that this signal is followed by either a
Gio.AppLaunchContext::launchedorGio.AppLaunchContext::launch-failedsignal.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.
- Since:
- 2.72
-
upcall
default void upcall(MemorySegment sourceAppLaunchContext, MemorySegment info, MemorySegment platformData) Theupcallmethod 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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-