Subscribe a callback function when an Amazon Connect Agent Workspace contact is destroyed
Subscribes a callback function to-be-invoked whenever a contact destroyed event occurs in Amazon Connect Agent Workspace. If no contact ID is provided, then it uses the context of the current contact that the 3P app was opened on.
Signature
onDestroyed(handler: ContactDestroyedHandler, contactId?: string)
Usage
const handler: ContactDestroyedHandler = async (data: ContactDestroyedEventData) => { console.log("Contact destroyed occurred! " + data); }; contactClient.onDestroyed(handler); // ContactDestroyedEventData Structure { contactId: string; }
Permissions required:
Contact.Details.View