v24
Powered By GitBook
LViS

Set cache dir

Set path to your internal or external storage.
1
void setCacheDirPath(String cacheDirPath);
Copied!

Set host and project uuid

1
void setProject(String host, String projectUuid);
Copied!

Load App Setup

1
void loadSettings(ResultCallback callback);
Copied!

Open

Init LViS and pass observer to listen to LViS events.
1
void open(LViSObserver lViSObserver);
Copied!

Get all events

Returns all LViS events.
1
List<Event> getAllEvents();
Copied!

Get server time

Returns server time in milliseconds.
1
long getServerTime();
Copied!

Set delay

Set delay for sync purposes - this delay in milliseconds is measured by a third-party ACR library.
1
void setDelay(int delayMillis);
Copied!

Subscribe to event

Subscribe to LViS event.
1
void subscribe(Event event, ResultCallback callback);
Copied!

Unsubscribe from event

1
void unsubscribe(Event event);
Copied!

Close

Release LViS resources.
1
void close();
Copied!
Last modified 2yr ago