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 Details

    • run

      void run(String pageUri, String faviconUri)
      This signal is emitted when the favicon URI of pageUri has been changed to faviconUri 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 a WebKitWebView it's easier to use the WebKitWebView:favicon property. See webkit_web_view_get_favicon() for more details.
    • upcall

      default void upcall(MemorySegment sourceFaviconDatabase, MemorySegment pageUri, MemorySegment faviconUri)
      The upcall method is called from native code. The parameters are marshaled and run(String, String) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, MemorySegment, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer