DiskUsage

class DiskUsage

Entrypoint for accessing information about the amount of disk storage used by Ditto. This class can't be instantiated. You can access an instance through the ditto.diskUsage API.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun observe(eventHandler: (DiskUsageItem) -> Unit): Closeable

Observe disk usage using a lambda expression. The lambda will be invoked regularly delivering updated disk usage info until the returned handle goes out of scope or its close() method invoked.

fun observe(callback: DiskUsageCallback): Closeable

Observe disk usage using a callback class (for Java compatibility). The callback will be invoked regularly delivering updated disk usage info until the returned handle goes out of scope or its close() method is invoked.

Properties

Link copied to clipboard
val exec: DiskUsageItem

Returns a single snapshot of disk usage.