UiEventHandler

interface UiEventHandler

This class is used to pass the location details to ui sdk location details can be used to show the address in the messaging window and share the location details with the agent

Functions

Link copied to clipboard
open fun beforeRenderMessage(message: Message): Message

This method is responsible for retrieving a custom message before it is displayed. The message is obtained from the server either through an event or as a response to a sent message

Link copied to clipboard

This method is utilized to modify the message before it is sent, if the user needs to alter the original message.

Link copied to clipboard
open fun customParticipantName(participant: Participant): String?

This method is used to get the custom participant name based on the participant type This function will be given priority over custom string and other flags like 'useBusinessAsParticipant' and 'displayAgentName' if more than one are implemented at once

Link copied to clipboard
abstract fun getLocationDetails(onComplete: (LocationMessage?) -> Unit)
Link copied to clipboard
open fun GetLocationMapWidget(latitude: Double, longitude: Double)

This method is used to get the location map widget

Link copied to clipboard
abstract fun getLocationUrl(latitude: Double?, longitude: Double?): String
Link copied to clipboard

This method is used to request the necessary permissions. It includes: