- Notifications
You must be signed in to change notification settings - Fork0
Evam-life/sdk
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This package contains the Evam SDK TS/JS modules for Evam app development.
The full documentation is available at:Evam SDK documentation.
To use this SDK, instantiateEvamApi() and access its observer functions.
import{EvamApi}from"@evam-life/sdk";constevamApi=newEvamApi();// Register observer for active operationevamApi.onNewOrUpdatedActiveOperation((activeCase)=>{// Handle updated case})// Register observer for device locationevamApi.onNewOrUpdatedLocation((deviceLocation)=>{// Handle updated device location})// Add as many observers as required, see documentation for more
It is recommended you set up all needed observersonNew... as soon as your applicationstarts. The typical pattern is to handle each update fromEvamApi by passingthe observed data in your preferred application data store, such as Redux.
The SDK is written in Typescript and types are exported within thepackage, no need to install them separately. Javascript is fullycompatible with the SDK.
The use of React is recommended, but other libraries/frameworksshould also work. A set of turnkey React components is provided to getyou started quickly, seeUse the built-in components.
About
SDK for the Evam platform
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.