Package org.gnome.webkit
Interface UserContentManager.ScriptMessageReceivedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
UserContentManager
- 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 UserContentManager.ScriptMessageReceivedCallback
extends FunctionPointer
Functional interface declaration of the
ScriptMessageReceivedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This signal is emitted when JavaScript in a web view calls <code>window.webkit.messageHandlers.<name>.postMessage()</code>, after registering <code><name></code> using webkit_user_content_manager_register_script_message_handler()default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceUserContentManager, MemorySegment value) Theupcall
method is called from native code.
-
Method Details
-
run
This signal is emitted when JavaScript in a web view calls <code>window.webkit.messageHandlers.<name>.postMessage()</code>, after registering <code><name></code> using webkit_user_content_manager_register_script_message_handler() -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.webkit.jsc.Value)
is executed. -
toCallback
Creates a native function pointer to theupcall(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
-