Intercom 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
displayArticle (String articleId )
→ Future <void >
To display an Article, pass in an articleId
from your Intercom workspace.
displayCarousel (String carouselId )
→ Future <void >
To display a Carousel, pass in a carouselId
from your Intercom workspace.
displayHelpCenter ()
→ Future <void >
To display an Activity with your Help Center content.
displayMessageComposer (String message )
→ Future <void >
To open the Intercom messenger to the composer screen with message
field pre-populated.
displayMessenger ()
→ Future <void >
To open the Intercom messenger.
getUnreadStream ()
→ Stream
You can check how many unread conversations a user has
even if a user dismisses a notification.
handlePush (Map <String , dynamic > message )
→ Future <void >
If the push message
is for Intercom then use this method to let
Intercom handle that push.
handlePushMessage ()
→ Future <void >
When a user taps on a push notification Intercom hold onto data
such as the URI in your message or the conversation to open.
hideMessenger ()
→ Future <void >
To close the Intercom messenger.
initialize (String appId , {String ? androidApiKey , String ? iosApiKey })
→ Future <void >
Function to initialize the Intercom SDK.
isIntercomPush (Map <String , dynamic > message )
→ Future <bool >
To check if the push message
is for Intercom or not.
This is useful when your app is also configured to receive push messages
from third parties.
logEvent (String name , [Map <String , dynamic > ? metaData ])
→ Future <void >
To log events in Intercom that record what users do in your app and when they do it.
For example, you can record when user opened a specific screen in your app.
You can also pass metaData
about the event.
logout ()
→ Future <void >
To logout a user from Intercom.
This clears the Intercom SDK's cache of your user's identity.
registerIdentifiedUser ({String ? userId , String ? email })
→ Future <void >
Function to create a identified user in Intercom.
You need to register your users before you can talk to them and
track their activity in your app.
registerUnidentifiedUser ()
→ Future <void >
Function to create a unidentified user in Intercom.
You need to register your users before you can talk to them and
track their activity in your app.
sendTokenToIntercom (String token )
→ Future <void >
The token
to send to the Intercom to receive the notifications.
setBottomPadding (int padding )
→ Future <void >
This method allows you to set a fixed bottom padding for in app messages and the launcher.
setInAppMessagesVisibility (IntercomVisibility visibility )
→ Future <void >
To allow or prevent in app messages from popping up in certain parts of your app.
setLauncherVisibility (IntercomVisibility visibility )
→ Future <void >
To hide or show the standard launcher on the bottom right-hand side of the screen.
setUserHash (String userHash )
→ Future <void >
To make sure that conversations between you and your users are kept private
and that one user can't impersonate another then you need you need to setup
the identity verification.
unreadConversationCount ()
→ Future <int >
You can check how many unread conversations a user has
even if a user dismisses a notification.
updateUser ({String ? email , String ? name , String ? phone , String ? company , String ? companyId , String ? userId , int ? signedUpAt , String ? language , Map <String , dynamic > ? customAttributes })
→ Future <void >
Updates the attributes of the current Intercom user.