Package org.webkitgtk
Interface WebContext.AutomationStartedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
WebContext
- 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 WebContext.AutomationStartedCallback
extends FunctionPointer
Functional interface declaration of the
AutomationStartedCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(@Nullable AutomationSession session) This signal is emitted when a new automation request is made.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceWebContext, MemorySegment session) Theupcallmethod is called from native code.
-
Method Details
-
run
This signal is emitted when a new automation request is made. Note that it will never be emitted if automation is not enabled incontext,see webkit_web_context_set_automation_allowed() for more details.- Since:
- 2.18
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(org.webkitgtk.AutomationSession)is executed. -
toCallback
Creates a native function pointer to theupcall(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
-