Package org.gnome.webkit.wpe
Interface WebProcessExtension.UserMessageReceivedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
WebProcessExtension
- 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 WebProcessExtension.UserMessageReceivedCallback
extends FunctionPointer
Functional interface declaration of the
UserMessageReceivedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(UserMessage message) This signal is emitted when aWebKitUserMessage
is received from theWebKitWebContext
corresponding toextension
.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 sourceWebProcessExtension, MemorySegment message) Theupcall
method is called from native code.
-
Method Details
-
run
This signal is emitted when aWebKitUserMessage
is received from theWebKitWebContext
corresponding toextension
. Messages sent byWebKitWebContext
are always broadcasted to all web extensions and they can't be replied to. Calling webkit_user_message_send_reply() will do nothing. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.webkit.wpe.UserMessage)
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
-