Ditto 5.0.0
Loading...
Searching...
No Matches
DittoSDK.Store.DittoAttachmentFetcher Class Reference

These objects are returned by calls to DittoStore.FetchAttachment. More...

Inheritance diagram for DittoSDK.Store.DittoAttachmentFetcher:
DittoSDK.Internal.Drop

Public Member Functions

void Stop ()
 Stops fetching the fetcher's associated attachment and cleans up any associated resources.
Public Member Functions inherited from DittoSDK.Internal.Drop
void Dispose ()
 Suppresses finalization and initiates custom disposal logic.

Protected Member Functions

override void Dispose (bool disposing)
 Custom cleanup logic. Called either explicitly from Dispose or implicitly from finalizer.
Protected Member Functions inherited from DittoSDK.Internal.Drop
void Dispose (bool disposing)
 Overload for types to dispose of resources, regardless of whether the type is being disposed or finalized. Note that finalization occurs on a dedicated thread.

Properties

Ditto Ditto [get]
 Gets the Ditto object this attachment fetcher is registered with. NOTE: This is only set when fetching attachments using DittoStore.
Properties inherited from DittoSDK.Internal.Drop
bool IsDisposed [get]

Detailed Description

These objects are returned by calls to DittoStore.FetchAttachment.

They must be kept alive for as long as you wish to observe updates about the associated attachment.

Member Function Documentation

◆ Dispose()

override void DittoSDK.Store.DittoAttachmentFetcher.Dispose ( bool disposing)
inlineprotected

Custom cleanup logic. Called either explicitly from Dispose or implicitly from finalizer.

Parameters
disposingtrue when called explicitly; false when called from finalizer.

◆ Stop()

void DittoSDK.Store.DittoAttachmentFetcher.Stop ( )
inline

Stops fetching the fetcher's associated attachment and cleans up any associated resources.

Note that you are not required to call stop once your attachment fetch operation has finished. The method primarily exists to allow you to cancel an attachment fetch request while it is ongoing if you no longer wish for the attachment to be made available locally to the device.