Close Engagement API
The Close Engagement API gives app customers a way to close the current messaging session with the agent.
API method for sending customer close message is exposed from NuanMessaging class. Get the instance of NuanMessaging by using below code.
let nuanMessaging = NuanMessaging.getInstance();
Public Methods
-
-(void) endEngagement
Sends close message to agent. This method raises an exception if status of the current engagement is neither created or nor queued.
let nuanMessaging = NuanMessaging.getInstance();
nuanMessaging.endEngagement();