Package org.gnome.webkit
Interface FaviconDatabase.FaviconChangedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
FaviconDatabase
- 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 FaviconDatabase.FaviconChangedCallback
extends FunctionPointer
Functional interface declaration of the
FaviconChangedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This signal is emitted when the favicon URI ofpageUri
has been changed tofaviconUri
in the database.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceFaviconDatabase, MemorySegment pageUri, MemorySegment faviconUri) Theupcall
method is called from native code.
-
Method Details
-
run
This signal is emitted when the favicon URI ofpageUri
has been changed tofaviconUri
in the database. You can connect to this signal and call webkit_favicon_database_get_favicon() to get the favicon. If you are interested in the favicon of aWebKitWebView
it's easier to use theWebKitWebView
:favicon property. See webkit_web_view_get_favicon() for more details. -
upcall
default void upcall(MemorySegment sourceFaviconDatabase, MemorySegment pageUri, MemorySegment faviconUri) Theupcall
method is called from native code. The parameters are marshaled andrun(java.lang.String, java.lang.String)
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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-