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

    Class DefaultSudoEmailClient

    Implements

    Index

    Constructors

    Methods

    • Returns Promise<DraftEmailMessage[]>

      An array of draft email messages or an empty array if no matching draft email messages can be found.

      The method should not be used. Instead use listDraftEmailMessageMetadataForEmailAddressId.

      The method should not be used. Instead use listDraftEmailMessageMetadataForEmailAddressId. Lists the metadata and content of all draft email messages for the user.

    • 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