ServiceManager

class ServiceManager

Author

BluedotInnovation Service manager is used to interact with Bluedot Point Service

Functions

addBlueDotPointServiceStatusListener
Link copied to clipboard
open fun addBlueDotPointServiceStatusListener(listener: ServiceStatusListener)
Add a Bluedot PointService Status listener to monitor the status
getInstallRef
Link copied to clipboard
open fun getInstallRef(): String
Returns the installation reference of this Point SDK enabled App.This is the same as the Install Ref that appears in a Zone's Activity Log in Canvas, or queried via Open API.This reference is randomly generated at the first run-time of the App and remains fixed for the duration of the Appinstallation.
getSdkVersion
Link copied to clipboard
open fun getSdkVersion(): String
Returns the current version of the Point SDK
getTestInstance
Link copied to clipboard
open fun getTestInstance(): ServiceManager
Get singleton instance of the ServiceManager without passing in an Android Context.
getZonesAndFences
Link copied to clipboard
open fun getZonesAndFences(): ArrayList<ZoneInfo>
Get Zones and Fences list.
initialize
Link copied to clipboard
open 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 torecycle through the lifecycle of your app.
open 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 torecycle through the lifecycle of your app.If so, you need to reset the Service Manager.
open fun isBlueDotPointServiceConfiguredToRestart(): Boolean
The client checks if the BluedotPointService is configured to run in Restarting mode.
isBlueDotPointServiceRunning
Link copied to clipboard
open fun isBlueDotPointServiceRunning(): Boolean
The client checks if the BluedotPointService is running.
isBluedotServiceInitialized
Link copied to clipboard
open fun isBluedotServiceInitialized(): Boolean
The client checks if Bluedot Service is initialized is running.
isZoneDisabledByApplication
Link copied to clipboard
open fun isZoneDisabledByApplication(zoneId: String): Boolean
Giving the zone ID to check if the zone has been disabled by your application.
notifyPushUpdate
Link copied to clipboard
open fun notifyPushUpdate(data: Map<String, String>)
Notifies Point SDK that the push notification has been received with given data.
registerService
Link copied to clipboard
open fun registerService(serviceClass: Class)
registerService functionality and api scheduled to be removed in a future release.
removeBlueDotPointServiceStatusListener
Link copied to clipboard
open fun removeBlueDotPointServiceStatusListener(listener: ServiceStatusListener)
Remove the Bluedot Point Service status listener if your app does not want to monitor the Bluedot Point servicestatus anymore.
reset
Link copied to clipboard
open fun reset(receiver: ResetResultReceiver)
This method will return service manager to the initial state: reset the project ID and allpersisted data.
sendAuthenticationRequest
Link copied to clipboard
open fun sendAuthenticationRequest(apiKey: String, listener: ServiceStatusListener)
Start the Bluedot Point Service by providing with the credentials and a ServiceStatusListener, the app will benotified via the status listener if the Bluedot Point Service started successful.
open fun sendAuthenticationRequest(apiKey: String, listener: ServiceStatusListener, restartMode: Boolean)
Start the Bluedot Point Service by providing with the credentials, a ServiceStatusListener and the Bluedot Point API end point url, the app will benotified via the status listener if the Bluedot Point Service started successful.
open fun sendAuthenticationRequest(apiKey: String, listener: ServiceStatusListener, url: String)
Start the Bluedot Point Service by providing with the credentials, a ServiceStatusListener and the Bluedot Point API end point url, the app will benotified via the status listener if the Bluedot Point Service started successful.
open fun sendAuthenticationRequest(apiKey: String, listener: ServiceStatusListener, restartMode: Boolean, url: String)
Start the Bluedot Point Service by providing with the credentials, a ServiceStatusListener and the Bluedot Point API end point url, the app will benotified via the status listener if the Bluedot Point Service started successful.
setCustomEventMetaData
Link copied to clipboard
open fun setCustomEventMetaData(customEventMetaData: Map<String, String>)
Sets custom MetaData for Notification Events.
setCustomMessageAction
Link copied to clipboard
open fun setCustomMessageAction(activity: Class)
Set custom notification message action.
setForegroundServiceNotification
Link copied to clipboard
open fun setForegroundServiceNotification(notification: Notification, targetAllAPIs: Boolean)
Sets parameters for foreground service notification.Only required for apps targeting Android O and above.
open fun setForegroundServiceNotification(smallIconId: Int, title: String, text: String, pendingIntent: PendingIntent, targetAllAPIs: Boolean)
setNotificationIDResourceID
Link copied to clipboard
open fun setNotificationIDResourceID(resourceID: Int)
Set the Resource ID for the Notification icon
setZoneDisableByApplication
Link copied to clipboard
open fun setZoneDisableByApplication(zoneId: String, disable: Boolean)
Enable the zone by providing with the zone ID.
startTempoTracking
Link copied to clipboard
open fun startTempoTracking(destinationId: String, statusListener: TempoStatusListener)
Start Tempo Tracking.
stopPointService
Link copied to clipboard
open fun stopPointService()
Stop the Bluedot Point Service.
stopTempoTracking
Link copied to clipboard
open fun stopTempoTracking()
Stop Tempo Tracking tempoStopped will be called once tracking has ceased.
subscribeForApplicationNotification
Link copied to clipboard
open fun subscribeForApplicationNotification(applicationNotificationListener: ApplicationNotificationListener)
Subscribe for Application Notifications
unsubscribeForApplicationNotification
Link copied to clipboard
open fun unsubscribeForApplicationNotification(applicationNotificationListener: ApplicationNotificationListener)
Unsubscribe for Application Notifications

Properties

instance
Link copied to clipboard
private open var instance: ServiceManager