createLocator

fun createLocator(site: TablesideSite, optionalData: String? = null, callback: (TablesideLocator?, SdkError?) -> Unit? = null)

Create a locator for the site.

Once a site is known (via the findSite method), a locator may be created.

To receive updates from the TablesideLocator (e.g. starting, stopping, and state updates), set the TablesideLocatorListener for the locator after it is created (as shown below).

Example:

TablesideManager.getInstance()?.createLocator(site, optionalData) { tablesideLocator, sdkError ->
if (null != sdkError) {
// Handle error
} else {
tablesideLocator?.let {
// Set locator listener
it.listener = locatorListener
// Save locator or start it here
}
}
}