Git Product home page Git Product logo

capacitor-intercom's Introduction

@kevinfav/capacitor-intercom

Fork from @sencrop/capacitor-intercom

Intercom Plugin for Capacitor 6+

Install

npm install @kevinfav/capacitor-intercom
npx cap sync

API

initialize(...)

initialize(config: IntercomSettings) => void
Param Type
config IntercomSettings

loginIdentifiedUser(...)

loginIdentifiedUser(identity: IntercomIdentity) => Promise<void>
Param Type
identity IntercomIdentity

loginUnidentifiedUser()

loginUnidentifiedUser() => Promise<void>

updateUser(...)

updateUser(user: IntercomUser) => Promise<void>
Param Type
user IntercomUser

logout()

logout() => Promise<void>

logEvent(...)

logEvent(event: IntercomEvent) => Promise<void>
Param Type
event IntercomEvent

displayMessenger()

displayMessenger() => Promise<void>

displayMessageComposer(...)

displayMessageComposer(message: IntercomMessage) => Promise<void>
Param Type
message IntercomMessage

displayHelpCenter()

displayHelpCenter() => Promise<void>

displayArticle(...)

displayArticle(article: IntercomArticle) => Promise<void>
Param Type
article IntercomArticle

hideMessenger()

hideMessenger() => Promise<void>

displayLauncher()

displayLauncher() => Promise<void>

hideLauncher()

hideLauncher() => Promise<void>

setCustomAttributes(...)

setCustomAttributes(payload: IntercomCustomAttributes) => Promise<void>
Param Type
payload IntercomCustomAttributes

displaySurvey(...)

displaySurvey(survey: IntercomSurvey) => Promise<void>
Param Type
survey IntercomSurvey

Interfaces

IntercomSettings

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

IntercomCompany

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

IntercomAvatar

Prop Type
type 'avatar'
image_url string

IntercomIdentity

Prop Type
userId string
email string
userHash string

IntercomUser

Prop Type
email string
phone string
name string
language string

IntercomEvent

Prop Type
name string
data any

IntercomMessage

Prop Type
content string

IntercomArticle

Prop Type
id number

IntercomCustomAttributes

Prop Type
attributes Record<string, number | string | boolean>

IntercomSurvey

Prop Type
id number

Type Aliases

Record

Construct a type with a set of properties K of type T

{ [P in K]: T; }

capacitor-intercom's People

Contributors

oupsla avatar piitaya avatar florianlauer avatar kevinfavv avatar fuzznimp avatar dependabot[bot] avatar bastienlemaitre avatar oluane avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.