MethodChannelIntercomFlutter class
An implementation of IntercomFlutterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- IntercomFlutterPlatform
- MethodChannelIntercomFlutter
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
-
displayArticle(
String articleId) → Future< void> -
To display an Article, pass in an
articleId
from your Intercom workspace.override -
displayCarousel(
String carouselId) → Future< void> -
To display a Carousel, pass in a
carouselId
from your Intercom workspace.override -
displayConversation(
String conversationId) → Future< void> -
To display a Conversation, pass in a
conversationId
from your Intercom workspace.override -
displayHelpCenter(
) → Future< void> -
To display an Activity with your Help Center content.
override
-
displayHelpCenterCollections(
List< String> collectionIds) → Future<void> -
To display an Activity with your Help Center content for specific collections.
override
-
displayHome(
) → Future< void> -
To display an Intercom Home space.
override
-
displayMessageComposer(
String message) → Future< void> -
To open the Intercom messenger to the composer screen with
message
field pre-populated.override -
displayMessages(
) → Future< void> -
To display an Activity with your Messages content.
override
-
displayMessenger(
) → Future< void> -
To open the Intercom messenger.
override
-
displaySurvey(
String surveyId) → Future< void> -
To display a Survey, pass in a
surveyId
from your Intercom workspace.override -
displayTickets(
) → Future< void> -
To display an activity with all your tickets.
override
-
fetchLoggedInUserAttributes(
) → Future< Map< String, dynamic> > -
Retrieve the details of the currently logged in user.
override
-
getUnreadStream(
) → Stream -
You can check how many unread conversations a user has
even if a user dismisses a notification.
override
-
handlePush(
Map< String, dynamic> message) → Future<void> -
If the push
message
is for Intercom then use this method to let Intercom handle that push.override -
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.
override
-
hideMessenger(
) → Future< void> -
To close the Intercom messenger.
override
-
initialize(
String appId, {String? androidApiKey, String? iosApiKey}) → Future< void> -
Function to initialize the Intercom SDK.
override
-
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.override -
isUserLoggedIn(
) → Future< bool> -
Determine if a user is currently logged in to Intercom.
override
-
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.override -
loginIdentifiedUser(
{String? userId, String? email, IntercomStatusCallback? statusCallback}) → 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.
override
-
loginUnidentifiedUser(
{IntercomStatusCallback? statusCallback}) → 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.
override
-
logout(
) → Future< void> -
To logout a user from Intercom.
This clears the Intercom SDK's cache of your user's identity.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendTokenToIntercom(
String token) → Future< void> -
The
token
to send to the Intercom to receive the notifications.override -
setBottomPadding(
int padding) → Future< void> -
This method allows you to set a fixed bottom padding for in app messages and the launcher.
override
-
setInAppMessagesVisibility(
IntercomVisibility visibility) → Future< void> -
To allow or prevent in app messages from popping up in certain parts of your app.
override
-
setLauncherVisibility(
IntercomVisibility visibility) → Future< void> -
To hide or show the standard launcher on the bottom right-hand side of the screen.
override
-
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.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
unreadConversationCount(
) → Future< int> -
You can check how many unread conversations a user has
even if a user dismisses a notification.
override
-
updateUser(
{String? email, String? name, String? phone, String? company, String? companyId, String? userId, int? signedUpAt, String? language, Map< String, dynamic> ? customAttributes, IntercomStatusCallback? statusCallback}) → Future<void> -
Updates the attributes of the current Intercom user.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited