Ditto 4.8.0
Loading...
Searching...
No Matches
DittoSDK.DittoDiskUsage Class Reference

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. More...

Public Member Functions

DittoDiskUsageChild Exec ()
 
DittoDiskUsageObserver Observe (Action< DittoDiskUsageChild > callback)
 Starts filesystem observation. Disk usage details will be passed in the callback as files in the Ditto directory change size over time.
 

Detailed Description

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.

Member Function Documentation

◆ Observe()

DittoDiskUsageObserver DittoSDK.DittoDiskUsage.Observe ( Action< DittoDiskUsageChild > callback)
inline

Starts filesystem observation. Disk usage details will be passed in the callback as files in the Ditto directory change size over time.

Invoke the DittoDiskUsageObserver.Stop() method on the handle to terminate callbacks.

Parameters
callbackA callback that will be invoked regularly with DittoDiskUsageChild instances.
Returns
A DiskUsageObserverHandle which should be held in scope to continue observation.