Freshchat class

Constructors

Freshchat()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Properties

getSdkVersion Future<String>
read-only
getUnreadCountAsync Future<Map>
read-only
getUser Future<FreshchatUser>
read-only
getUserAlias Future<String>
read-only
getUserIdTokenStatus Future<JwtTokenStatus>
read-only
onFreshchatEvents Stream
read-only
onLocaleChangedByWebView Stream
read-only
onMessageCountUpdate Stream
read-only
read-only
onRestoreIdGenerated Stream
read-only

Static Methods

handlePushNotification(Map pushPayload) → void
identifyUser({String externalId, String restoreId}) → void
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
isFreshchatNotification(Map pushPayload) Future<bool>
linkifyWithPattern(String regex, String defaultScheme) → void
notifyAppLocaleChange() → void
registerForEvent(String eventName, bool shouldRegister) → void
resetUser() → void
restoreUserWithIdToken(String token) → void
sendMessage(String tag, String message) → void
setNotificationConfig({Priority priority = Priority.PRIORITY_DEFAULT, Importance importance = Importance.IMPORTANCE_DEFAULT, bool notificationSoundEnabled = true, bool notificationInterceptionEnabled = false, String largeIcon, String smallIcon}) → void
setPushRegistrationToken(String token) → void
setUser(FreshchatUser user) → void
setUserProperties(Map propertyMap) → void
setUserWithIdToken(String token) → void
showConversations({String filteredViewTitle, List<String> tags}) → void
showFAQ({String faqTitle, String contactUsTitle, List<String> faqTags, List<String> contactUsTags, FaqFilterType faqFilterType, bool showContactUsOnFaqScreens = true, bool showFaqCategoriesAsGrid = true, bool showContactUsOnAppBar = false, bool showContactUsOnFaqNotHelpful = true}) → void
trackEvent(String eventName, {Map properties}) → void
wrapperMethodCallHandler(MethodCall methodCall) Future