ServiceManager

Service manager is used to interact with Bluedot Point Service

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun initialize(projectId: String, initializationResultListener: InitializationResultListener)

This method is used to initialise Bluedot PointSDK service manager with the given projectId. Usually this method called only once, unless you have many projectID's that you need to recycle through the lifecycle of your app. If so, you need to reset the Service Manager Please see ServiceManager.reset

fun initialize(projectId: String, url: String, initializationResultListener: InitializationResultListener)

This method is used to initialise Bluedot PointSDK service manager with the given projectId. Usually this method called only once, unless you have many projectID's that you need to recycle through the lifecycle of your app. If so, you need to reset the Service Manager. Please see ServiceManager.reset This method will not start neither Geo-triggering nor Tempo. For this see corresponding start from GeoTriggeringService.GeoTriggerBuilder and TempoService.TempoBuilder

Link copied to clipboard

Giving the zone ID to check if the zone has been disabled by your application. The zone is enabled by default.

Link copied to clipboard
fun reset(receiver: ResetResultReceiver)

This method will return service manager to the initial state: reset the project ID and all persisted data. Make sure this method is called after stopping both geo-triggering and tempo features.

Link copied to clipboard
fun setForegroundServiceNotification(notification: Notification, targetAllAPIs: Boolean)

Sets parameters for foreground service notification. Only required for apps targeting Android O and above.

Link copied to clipboard

Set the Resource ID for the Notification icon

Link copied to clipboard

Enable the zone by providing with the zone ID.