Package org.webkitgtk
Interface WebInspector.AttachCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
WebInspector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the
AttachCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun()Emitted when the inspector is requested to be attached to the window where the inspected web view is.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)method.default intupcall(MemorySegment sourceWebInspector) Theupcallmethod is called from native code.
-
Method Details
-
run
boolean run()Emitted when the inspector is requested to be attached to the window where the inspected web view is. If this signal is not handled the inspector view will be automatically attached to the inspected view, so you only need to handle this signal if you want to attach the inspector view yourself (for example, to add the inspector view to a browser tab).To prevent the inspector view from being attached you can connect to this signal and simply return
true. -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun()is executed. -
toCallback
Creates a native function pointer to theupcall(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
-