Ditto 4.7.2
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Properties | List of all members
DittoSDK.DittoAttachmentFetcher Class Reference

These objects are returned by calls to DittoCollection.FetchAttachment(DittoAttachmentToken, Action<DittoAttachmentFetchEvent>). More...

Inheritance diagram for DittoSDK.DittoAttachmentFetcher:

Public Member Functions

void Stop ()
 Stops fetching the fetcher's associated attachment and cleans up any associated resources.
 

Protected Member Functions

override void Dispose (bool disposing)
 Custom cleanup logic. Called either explicitly from Dispose or implicitly from finalizer.
 

Properties

Ditto Ditto [get]
 Gets the Ditto object this attachment fetcher is registered with. NOTE: This is only set when fetching attachments using DittoStore.
 

Detailed Description

These objects are returned by calls to DittoCollection.FetchAttachment(DittoAttachmentToken, Action<DittoAttachmentFetchEvent>).

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