chayns-api
Index
Classes
Enumerations
- AccessMode
- AppName
- BrowserName
- ColorMode
- DateType
- DeviceOs
- DialogAnimation
- DialogButtonType
- DialogIconType
- DialogInputType
- DialogSelectType
- DialogType
- Environment
- FloatingButtonAnimation
- FloatingButtonPosition
- Font
- Gender
- IconType
- Language
- MediaType
- RuntimeEnviroment
- ScanQrCodeCameraTypes
- ScanQrCodeCodeType
- ScreenSize
- SharingApp
- TappEvent
- ToastType
- WeekDayType
Event listener
Hooks
- useAccessToken
- useCurrentPage
- useCustomData
- useDevice
- useDialogData
- useDialogState
- useEnvironment
- useFunctions
- useGeoLocation
- useGeoLocationListener
- useIsAdminMode
- useLanguage
- usePage
- usePages
- useParameters
- useScrollListener
- useScrollOffsetBottom
- useScrollOffsetTop
- useScrollPosition
- useSite
- useUser
- useValues
- useWindowMetrics
- useWindowMetricsListener
User functions
Functions
- ChaynsHost
- ChaynsProvider
- WaitUntil
- addAnonymousAccount
- bindChaynsApi
- createDialog
- customCallbackFunction
- getAccessToken
- getAvailableSharingServices
- getClientDeviceInfo
- getCurrentPage
- getDevice
- getDeviceInfo
- getEnvironment
- getGeoLocation
- getLanguage
- getPage
- getPages
- getParameters
- getScreenSize
- getScrollPosition
- getSite
- getWindowMetrics
- initModuleFederationSharing
- isApp
- isAppCallSupported
- loadComponent
- loadModule
- login
- logout
- navigateBack
- openImage
- openMedia
- openUrl
- openVideo
- refreshAccessToken
- refreshData
- scrollByY
- scrollToY
- selectPage
- sendMessageToGroup
- sendMessageToPage
- sendMessageToUser
- setAdminMode
- setDisplayTimeout
- setFloatingButton
- setHeight
- setOverlay
- setRefreshScrollEnabled
- setScanQrCode
- setTempDesignSettings
- setWaitCursor
- storageGetItem
- storageRemoveItem
- storageSetItem
- vibrate
- withCompatMode
- withHydrationBoundary
Interfaces
- AdminMode
- AvailableSharingServices
- BaseDialog
- DesignSettings
- DialogAlert
- DialogConfirm
- DialogDate
- DialogFileSelect
- DialogIFrame
- DialogInput
- DialogModule
- DialogResultFile
- DialogSelect
- DialogSignature
- DialogToast
- DisplayTimeout
- FloatingButton
- GeoLocation
- IChaynsReact
- InvokeCall
- Login
- LoginResult
- OpenImage
- OpenUrl
- OpenVideo
- Page
- RefreshData
- RefreshScrollEnabled
- ScrollListenerResult
- SelectInput
- ShowOverlay
- ToolbarChangeListenerResult
- UserInfo
- Vibrate
- VisibilityChangeListenerResult
- WaitCursor
- WindowMetricsListenerResult
Namespaces
Type Aliases
- AccessToken
- AccessTokenResult
- AnonymousAccountResult
- ChaynsApiDevice
- ChaynsApiSite
- ChaynsApiUser
- CleanupCallback
- DataChangeCallback
- DataChangeValue
- Dialog
- DialogButton
- DialogDataHookResult
- DialogHookResult
- DialogResult
- DialogSelectListItemType
- HydrationContextValueType
- IntercomMessage
- OpenImageItem
- OpenMedia
- OpenMediaItem
- ScanQrCodeRequest
- ScanQrCodeResult
- SelectPage
- TaskList
- UserInfoQuery
Variables
Type Aliases
AccessToken
Type declaration
optionalexternal?: boolean
AccessTokenResult
Type declaration
accessToken: string | undefined
AnonymousAccountResult
Type declaration
token: string
ChaynsApiDevice
Type declaration
optionalaccessToken?: string
optionalapp?: { appVersion: number; callVersion: number; name: AppName; storePackageName?: string; version: number }
appVersion: number
callVersion: number
the version of the chayns call interface
name: AppName
optionalstorePackageName?: string
version: number
optionalbrowser?: { isWebPSupported: boolean; majorVersion: number; name?: IBrowser[name] | bot | null; version?: string | null }
isWebPSupported: boolean
majorVersion: number
optionalname?: IBrowser[name] | bot | null
optionalversion?: string | null
optionalengine?: IEngine
optionalimei?: string
isTouch: boolean
optionalos?: AIX | Amiga OS | Android OS | Arch | Bada | BeOS | BlackBerry | CentOS | Chromium OS | Contiki | Fedora | Firefox OS | FreeBSD | Debian | DragonFly | Gentoo | GNU | Haiku | Hurd | iOS | Joli | Linpus | Linux | Mac OS | Mageia | Mandriva | MeeGo | Minix | Mint | Morph OS | NetBSD | Nintendo | OpenBSD | OpenVMS | OS/2 | Palm | PCLinuxOS | Plan9 | Playstation | QNX | RedHat | RIM Tablet OS | RISC OS | Sailfish | Series40 | Slackware | Solaris | SUSE | Symbian | Tizen | Ubuntu | UNIX | VectorLinux | WebOS | Windows | Windows Phone | Windows Mobile | Zenwalk | null
optionalosVersion?: string
screenSize: ScreenSize
ChaynsApiSite
Type declaration
ChaynsApiUser
Type declaration
optionalfirstName?: string
optionalgender?: Gender
optionallastName?: string
optionalnickName?: string
optionalpersonId?: string
optionaluacGroups?: UacGroup[]
optionaluserId?: number
CleanupCallback
Type declaration
Returns void
DataChangeCallback
Type declaration
Parameters
value: DataChangeValue
Returns void
DataChangeValue
Dialog
Type parameters
- T: any = object
DialogButton
Type declaration
text: string
type: DialogButtonType
DialogDataHookResult
Type declaration
[key string | symbol]: object
DialogHookResult
Type declaration
addDataListener: ChaynsReactFunctions[addDialogHostEventListener]
isClosingRequested: boolean
sendData: ChaynsReactFunctions[dispatchEventToDialogHost]
setResult: ChaynsReactFunctions[setDialogResult]
DialogResult
Type declaration
close: (buttonType: DialogButtonType, data: any) => Promise<void>
Parameters
buttonType: DialogButtonType
data: any
Returns Promise<void>
open: () => Promise<any>
Returns Promise<any>
DialogSelectListItemType
Type declaration
optionalclassName?: string
optionaldisabled?: boolean
optionalicon?: string
id: number
optionalisSelected?: boolean
name: string
optionalurl?: string
HydrationContextValueType
Type parameters
- T
Type declaration
[key string]: StoreLikeValue<T>
IntercomMessage
Type declaration
optionalimages?: string[]
text: string
OpenImageItem
Type declaration
optionaldescription?: string
optionalpreventCache?: boolean
optionaltitle?: string
url: string
OpenMedia
Type declaration
items: [OpenMediaItem, ...OpenMediaItem[]]
optionalstartIndex?: number
OpenMediaItem
Type declaration
optionaldescription?: string
mediaType: MediaType
optionalpreventCache?: boolean
optionaltitle?: string
url: string
ScanQrCodeRequest
Type declaration
optionalcameraType?: ScanQrCodeCameraTypes
optionalcancel?: boolean
optionalccAnimation?: boolean
optionalcodeFormats?: 4 | 5
optionalcodeType?: ScanQrCodeCodeType
optionaldialogSubtitle?: string
optionaldialogTitle?: string
optionalenableCameraSwitch?: boolean
optionalenableFlashToggle?: boolean
optionalgeoLocation?: boolean
optionalshowInput?: boolean
optionaltimeout?: number
ScanQrCodeResult
Type declaration
optionalgeoLocation?: { latitude: number; longitude: number; speed: number }
latitude: number
longitude: number
speed: number
qrCode: string
resultType: number
status: number
SelectPage
Type declaration
optionalforceSelect?: boolean
optionalid?: number
optionalisAdminMode?: boolean
optionalparams?: {}
[key string]: string
optionalpath?: string
optionalposition?: number
optionalpreventHistory?: boolean
optionalshowName?: string
optionalsiteId?: string
TaskList
UserInfoQuery
Variables
HydrationContext
constdevice
constenvironment
Type declaration
buildEnvironment: Environment
runtimeEnvironment: string | RuntimeEnviroment
constlanguage
constpages
constparameters
Type declaration
[key string | symbol]: string | string[]
the actual app version according to the app name