Interface Discoverer.DiscoveredCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
Discoverer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the
DiscoveredCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(@Nullable DiscovererInfo info, @Nullable GError error) Will be emitted in async mode when all information on a URI could be discovered, or an error occurred.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceDiscoverer, MemorySegment info, MemorySegment error) Theupcallmethod is called from native code.
-
Method Details
-
run
Will be emitted in async mode when all information on a URI could be discovered, or an error occurred.When an error occurs,
infomight still contain some partial information, depending on the circumstances of the error. -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(org.freedesktop.gstreamer.pbutils.DiscovererInfo, org.gnome.glib.GError)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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-