HubspotWebView

class HubspotWebView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : WebView

HubspotWebView class is used for setting a custom headers, setting a user agent string It also loads the chat url including email and token

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Functions

Link copied to clipboard
fun show(chatFlow: String? = null, pushData: PushNotificationChatData? = null)

This show method shows the ChatURL which updates the chatflow if it passes as an arguments It also manages the UserAgent for Mobile and integrated javascript for load the widget It embedded extra header for the language changes Finally, it load the URL including all the changes