Hierarchy

  • InitArgs

Index

Properties

Optional accessToken

accessToken: string

User profile's access token

clientId

clientId: string

Client Id of application to load SDK

Optional endpoint

endpoint: string

Optional localizedStrings

localizedStrings: Object

Optional logger

logger: boolean

Enable/Disable debug logs. Default is false/

Optional nickName

nickName: string

If no accessToken arg is passed, and no userProfile is returned by storageStrategy arg, init() will generatate a new user profile. This argument sets the nickname of that user profile. If not, nickname will be randomly generated.

Optional publishKey

publishKey: string

Key used to enable message sending

Optional storageStrategy

storageStrategy: IStorageStrategy

The storageStrategy is used to get/set user profile. Default uses localStorage.

Optional syncStrategy

syncStrategy: ISyncStrategy

Optional theme

theme: ITheme

Theme style