v24
LViS

Delegate

Manage LViS delegate.
1
weak var delegate: LViSDelegate? { get set }
Copied!

Init

Init LViS.
1
func initialize(projectUuid: String, host: String)
Copied!

Get all events

Returns all LViS events.
1
func getAllEvents() -> [Event]
Copied!

Get server time

Returns server time in seconds.
1
func getServerTime() -> Int64
Copied!

Set delay

Set delay for sync purposes - this delay in seconds is measured by a third-party ACR library.
1
func setDelay(delay: Int)
Copied!

Subscribe to event

Subscribe/Unsubscribe to LViS event.
1
func subscribe(event: Event, completion: ((success: Bool, error: NSError!)->Void)!)
Copied!
func unsubscribe()
1
func unsubscribe()
Copied!

Historical Elements

To decide if historical elements are needed please use the following property:
1
var shouldAlsoPublishHistoricalElements: Bool { get set }
Copied!

Project

To get current project please use the method:
1
public func getProject() -> Project?
Copied!
As you see there project is an Optional type.

Close

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