Android Lib Overview
We are working on a new SDK that will replace this Javascript library during early 2023. Please check the section Building your own Experience and Embedding Experiences using the SDK sections to find out more.
Monterosa / Interaction Cloud (M/IC) was previously known as LViS. As such, you will find API documentation using the term.
The Android lib allows Android developers to connect natively to the platform.
Add to project
Add to the /build.gradle
Add to the app/build.gradle. Please see changelog for latest LViS versions.
Add Proguard rules: https://gitlab.monterosa.co.uk/mobile/enmasse_android/blob/master/proguard-rules.pro _[_https://gitlab.monterosa.co.uk/mobile/lvis_android/blob/master/proguard-rules.pro](https://gitlab.monterosa.co.uk/mobile/lvis_android/blob/master/proguard-rules.pro)
Dependencies
The LViS library internally depends on Enmasse library and its dependencies and all of them are fetched automatically when you add LViS library to client project.
LViS library structure
There are 4 basic blocks that you need to work with:
LViS - is an entry point to work with LViS lib
Project - is an entity that represents an 'LViS Project'
Event - is an entity that represents an 'LViS Event'
Elements - are entities that represent 'LViS Elements'
How to use
You can override default TRUE values if needed.
LViS needs to store its values internally. So you need to set a path to your internal or external storage:
LViS needs to be initialized with projectUuid and host
It's possible to load App Setup before connecting to LViS
To open LViS and subscribe to its changes:
To subscribe to an event:
After you've subscribed to an event you can get all event elements:
And you can listen to an event's changes:
You can listen to each element's changes. For example, to listen to a Regular poll's changes:
To unsubscribe from an event:
To log in with your userId and signature
After you've done with LViS you need to close it to clean all resources:
If you need to manage logs:
Changelog
Last updated