Freshchat class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
handlePushNotification (Map pushPayload )
→ void
Process the notification information and display a notification to the user as appropriate (Android)
identifyUser ({String ? externalId , String ? restoreId })
→ void
To identify an user in Freshchat with an unique identifier from your system and restore an user across devices/sessions/platforms based on an external identifier and restore id
init (String appId , String appKey , String domain , {bool responseExpectationEnabled = true , bool teamMemberInfoVisible = true , bool cameraCaptureEnabled = true , bool gallerySelectionEnabled = true , bool userEventsTrackingEnabled = true , String ? stringsBundle , String ? themeName , bool errorLogsEnabled = true })
→ void
Initialize Freshchat SDK with the necessary configuration
isFreshchatNotification (Map pushPayload )
→ Future <bool >
Check if the notification received with the provided intent is a Freshchat notification or not (Android)
linkifyWithPattern (String regex , String defaultScheme )
→ void
Creates deep links in messages turning the matches into links based on the regex (Android)
notifyAppLocaleChange ()
→ void
Notify any locale change that happens during runtime to Freshchat (Android)
openFreshchatDeeplink (String link )
→ void
Open Freshchat deeplinks.
resetUser ()
→ void
Resets the user stored by Freshchat SDK
restoreUserWithIdToken (String token )
→ void
Restore an user base on reference_id present in the jwt token
sendMessage (String tag , String message )
→ void
Send a message on behalf of the user to a conversation channel tagged with the provided tag
setNotificationConfig ({Priority priority = Priority.PRIORITY_DEFAULT , Importance importance = Importance.IMPORTANCE_DEFAULT , bool notificationSoundEnabled = true , bool notificationInterceptionEnabled = false , String ? largeIcon , String ? smallIcon })
→ void
Accepts Notification configurations allowing you to configure all the notification related parameters (Android)
setPushRegistrationToken (String token )
→ void
Allows you to configure the FCM Registration token for the user (Android)
setUser (FreshchatUser user )
→ void
Sync any change to user information with Freshchat
setUserProperties (Map propertyMap )
→ void
Sync a series of user meta information with Freshchat
setUserWithIdToken (String token )
→ void
Sync any change to user information, specified in JWT Token with Freshchat
showConversations ({String ? filteredViewTitle , List <String > ? tags })
→ void
Displays list of Support Channels (Channel List Activity) through which users can converse with you
showFAQ ({String ? faqTitle , String ? contactUsTitle , List <String > ? faqTags , List <String > ? contactUsTags , required FaqFilterType faqFilterType , bool showContactUsOnFaqScreens = true , bool showFaqCategoriesAsGrid = true , bool showContactUsOnAppBar = false , bool showContactUsOnFaqNotHelpful = true })
→ void
Displays the FAQ Categories Page (Category List Activity) from where users can view and search FAQs
trackEvent (String eventName , {Map ? properties })
→ void
Track an user event with Freshchat