DSEnvelopeDelegate

class DSEnvelopeDelegate : DSBaseDelegate, IDisposableHandler

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun addDisposableToCompositeDisposable(disposable: Disposable)
Link copied to clipboard
fun cacheEnvelope(envelope: DSEnvelope, cacheEnvelopeListener: CacheEnvelopeListener)

Given a envelope, cache it to the DB for using it with offline signing

fun cacheEnvelope(envelopeId: String, cacheEnvelopeListener: DSCacheEnvelopeListener)

Cache the envelope given the envelope ID. This will return the envelope if it is already cached. If not, fetches the latest copy of the envelope along with the documents from the Docusign API

Link copied to clipboard
open override fun clearAllDisposables()
Link copied to clipboard
fun composeAndSendEnvelope(envelope: DSEnvelope, listener: DSComposeAndSendEnvelopeListener)

Composes a new envelope with the data provided through DSEnvelope instance.

Link copied to clipboard
fun deleteCachedEnvelope(envelopeId: String, listener: DSDeleteCachedEnvelopeListener)

Deletes the cached envelope for the given envelopeId

Link copied to clipboard
fun downloadCompletedEnvelopeDocument(envelopeId: String, listener: DSDownloadCompletedEnvelopeListener)

Retrieves the completed envelope's combined document uri path

Link copied to clipboard
fun getCachedEnvelope(envelopeId: String, includeDocuments: Boolean = false, cachedEnvelopeListener: DSGetCachedEnvelopeListener)

Retrieves cached envelope

Link copied to clipboard
fun getCachedEnvelopeList(listFilter: DSListFilter, syncStatusList: List<SyncStatus>, listener: DSGetEnvelopeListListener)

Retrieves All cached envelope

Link copied to clipboard
fun getEnvelope(serverEnvelopeId: String, envelopeListener: DSGetEnvelopeListener)

Retrieves the envelope from Docusign server and returns DSEnvelope on success

Link copied to clipboard
fun getSyncPendingEnvelopeIdsList(listener: DSGetEnvelopeIdsListener)

Retrieves the list of all SYNC PENDING, SYNC FAILED and SYNC IN_PROGRESS envelope Id's

Link copied to clipboard
open override fun removeDisposableFromCompositeDisposable(disposable: Disposable): Boolean
Link copied to clipboard
fun syncAll(envelopeIdList: List<String>, listener: DSSyncAllEnvelopesListener, deleteCachedEnvelope: Boolean = true)

Syncs all envelopes in the envelopeList in batches of 5 - defined in ENVELOPES_TO_SYNC_IN_BATCH.

Link copied to clipboard
fun syncAllEnvelopes(listener: DSSyncAllEnvelopesListener, deleteCachedEnvelope: Boolean = true)

Syncs all the cached envelopes in batches of 5

Link copied to clipboard
fun syncEnvelope(envelopeId: String, listener: DSSyncEnvelopeListener, deleteCachedEnvelope: Boolean = true)

Syncs the cached envelope for the given envelopeId