DiskUsageObserverHandle

class DiskUsageObserverHandle(dittoHandle: SWIGTYPE_p_CDitto, eventHandler: (DiskUsageItem) -> Unit) : DiskUsageObserverRust, Closeable

Opaque handle for disk usage observation. Callback start immediately. Call close() to stop.

Parameters

dittoHandle

Reference to the CDitto instance.

eventHandler

Lambda expression which will be called with DiskUsageItem when there are updates.

Constructors

Link copied to clipboard
fun DiskUsageObserverHandle(dittoHandle: SWIGTYPE_p_CDitto, eventHandler: (DiskUsageItem) -> Unit)

Functions

Link copied to clipboard
open override fun close()

Stops observer callbacks and cleans up resources.

Link copied to clipboard
open override fun delete()
Link copied to clipboard
open override fun diskUsageUpdated(diskUsageBytes: slice_ref_uint8_t?)

Called when there are updates to the presence graph.

Link copied to clipboard
open fun getIs_closing(): Boolean
Link copied to clipboard
open fun release()
Link copied to clipboard
open fun retain()
Link copied to clipboard
open fun setIs_closing(value: Boolean)
Link copied to clipboard
open fun stop()
Link copied to clipboard
open fun subscribe(ditto: SWIGTYPE_p_CDitto)
Link copied to clipboard
open override fun swigReleaseOwnership()
Link copied to clipboard
open override fun swigTakeOwnership()