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 TypeMethodDescriptionvoidThis signal is emitted when the favicon URI ofpageUrihas been changed tofaviconUriin the database.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.default voidupcall(MemorySegment sourceFaviconDatabase, MemorySegment pageUri, MemorySegment faviconUri) Theupcallmethod is called from native code.
-
Method Details
-
run
This signal is emitted when the favicon URI ofpageUrihas been changed tofaviconUriin 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 aWebKitWebViewit'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) Theupcallmethod is called from native code. The parameters are marshaled andrun(String, String)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-