Intercom Plugin for Capacitor
npm install @sencrop/capacitor-intercom
npx cap sync
initialize(...)
loginIdentifiedUser(...)
loginUnidentifiedUser()
updateUser(...)
logout()
logEvent(...)
displayMessenger()
displayMessageComposer(...)
displayHelpCenter()
displayArticle(...)
hideMessenger()
displayLauncher()
hideLauncher()
setCustomAttributes(...)
displaySurvey(...)
- Interfaces
- Type Aliases
initialize(config: IntercomSettings) => void
Param | Type |
---|---|
config |
IntercomSettings |
loginIdentifiedUser(identity: IntercomIdentity) => Promise<void>
Param | Type |
---|---|
identity |
IntercomIdentity |
loginUnidentifiedUser() => Promise<void>
updateUser(user: IntercomUser) => Promise<void>
Param | Type |
---|---|
user |
IntercomUser |
logout() => Promise<void>
logEvent(event: IntercomEvent) => Promise<void>
Param | Type |
---|---|
event |
IntercomEvent |
displayMessenger() => Promise<void>
displayMessageComposer(message: IntercomMessage) => Promise<void>
Param | Type |
---|---|
message |
IntercomMessage |
displayHelpCenter() => Promise<void>
displayArticle(article: IntercomArticle) => Promise<void>
Param | Type |
---|---|
article |
IntercomArticle |
hideMessenger() => Promise<void>
displayLauncher() => Promise<void>
hideLauncher() => Promise<void>
setCustomAttributes(payload: IntercomCustomAttributes) => Promise<void>
Param | Type |
---|---|
payload |
IntercomCustomAttributes |
displaySurvey(survey: IntercomSurvey) => Promise<void>
Param | Type |
---|---|
survey |
IntercomSurvey |
Prop | Type |
---|---|
app_id |
string |
api_base |
string |
alignment |
string |
custom_launcher_selector |
string |
hide_default_launcher |
boolean |
horizontal_padding |
number |
session_duration |
number |
vertical_padding |
number |
action_color |
string |
background_color |
string |
email |
string |
phone |
string |
created_at |
number |
name |
string |
user_id |
string |
user_hash |
string |
unsubscribed_from_emails |
boolean |
language_override |
string |
utm_campaign |
string |
utm_content |
string |
utm_medium |
string |
utm_source |
string |
utm_term |
string |
company |
IntercomCompany |
companies |
IntercomCompany[] |
avatar |
IntercomAvatar |
Prop | Type |
---|---|
name |
string |
id |
string | number |
company_id |
string | number |
created_at |
number |
remote_created_at |
number |
plan |
string |
monthly_spend |
number |
user_count |
number |
size |
number |
website |
string |
industry |
string |
Prop | Type |
---|---|
type |
'avatar' |
image_url |
string |
Prop | Type |
---|---|
userId |
string |
email |
string |
userHash |
string |
Prop | Type |
---|---|
email |
string |
phone |
string |
name |
string |
language |
string |
Prop | Type |
---|---|
name |
string |
data |
any |
Prop | Type |
---|---|
content |
string |
Prop | Type |
---|---|
id |
number |
Prop | Type |
---|---|
attributes |
Record<string, number | string | boolean> |
Prop | Type |
---|---|
id |
number |
Construct a type with a set of properties K of type T
{
[P in K]: T;
}