@sudoplatform/sudo-email
    Preparing search index...

    Class DefaultSudoEmailClient

    Implements

    Index

    Constructors

    Methods

    • Update the maximum size of the local message body cache. The new limit is persisted and survives across client sessions. Set to 0 to disable caching; existing cached entries are evicted immediately when the limit is reduced.

      Parameters

      • bytes: number

        New cache size limit in bytes. Must be >= 0.

      Returns Promise<void>

    • Sets an optional callback to handle sign-in when operations are attempted while not signed in.

      When set, all operations (exception subscriptions and initialization/reset) will check sign-in status before performing their normal behavior. If the client is not signed in, the callback will be invoked to allow the host app to perform sign-in. Once the callback completes, then the client will attempt the original operation that triggered the callback. If the callback throws an error, then the error will be propagated to the caller and the original operation will not be attempted. To clear the callback, call this method with no arguments or undefined.

      Parameters

      • Optionalcallback: SudoPlatformSignInCallback

      Returns void