Zendesk class

Provides embed chat functionality

Constructors

Zendesk()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

addTags({List<String>? tags}) Future<void>
Utility to optionaly add tags to the conversation. This can be set to a List of strings which will then appear to the agent in the chat.
endChat() Future<void>
initialize(String accountKey, String appId) Future<void>
Initialize the Zendesk SDK with the provided accountKey and appId
registerPushToken(String pushToken) Future<void>
removeTags({List<String>? tags}) Future<void>
Utility to remove tags that were added to the conversation.
resetIdentity() Future<void>
Reset the identity of the user
sendMessage(String message) Future<void>
Send message to the chat
setIdentity(String jwtToken) Future<void>
Set the identity of the user using the provided jwtToken this will cleanup previous setVisitorInfo
setVisitorInfo({String? name, String? email, String? phoneNumber, String? department}) Future<void>
Convenience utility to prefill visitor information and optionally set a support department
startChat({bool? isDarkTheme, Color? primaryColor, bool isPreChatFormEnabled = true, bool isPreChatEmailField = true, bool isPreChatNameField = true, bool isPreChatPhoneField = true, bool isAgentAvailabilityEnabled = true, bool isChatTranscriptPromptEnabled = true, bool isOfflineFormEnabled = true, bool disableEndChatMenuAction = false, String? botName = 'Answer Bot', String? toolbarTitle = 'Contact Us', bool isFullscreen = false, String? close = 'Close'}) Future<void>
Open chat modal.
unregisterPushToken() Future<void>