CrispChatSdk class
Constructors
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
-
configure(
{required String websiteId}) → Future< String?> - Configures the next session with the websiteID
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openChat(
) → Future< String?> - Open chat view (this method open chat page)
-
resetChatSession(
) → Future< String?> - Reset the session
-
setSessionBool(
{required String key, required bool value}) → Future< String?> - Sets a session data bool
-
setSessionInt(
{required String key, required int value}) → Future< String?> - Sets a session data int
-
setSessionSegment(
{required String segment}) → Future< String?> - Sets a session segment
-
setSessionString(
{required String key, required String value}) → Future< String?> - Sets a session data string
-
setTokenID(
{required String tokenID}) → Future< String?> - Assigns the next session with a tokenID
-
setUserAvatar(
{required String avatar}) → Future< String?> - Sets the user avatar
-
setUserCompany(
{required UserCompany company}) → Future< String?> - Sets the user company
-
setUserEmail(
{required String email}) → Future< String?> - Sets the user email (note: if email is invalid, this method will return false and the value will not be set)
-
setUserNickname(
{required String nickname}) → Future< String?> - Sets the user name
-
setUserPhone(
{required String phone}) → Future< String?> - Sets the user phone (note: if phone is invalid, this method will return false and the value will not be set)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited