ServiceManager

class ServiceManager

Service manager is used to interact with Bluedot Point Service

Properties

Link copied to clipboard
private open var instance: ServiceManager
Get Singleton instance of the ServiceManager.

Functions

Link copied to clipboard
open fun getCustomEventMetaData(): Map<String, String>
Gets custom MetaData for Notification Events.
Link copied to clipboard
open fun getInstallRef(): String
Returns the installation reference of this Point SDK enabled App.
Link copied to clipboard
open fun getSdkVersion(): String
Returns the current version of the Point SDK
Link copied to clipboard
open fun getZonesAndFences(): ArrayList<ZoneInfo>
Get Zones and Fences list.
Link copied to clipboard
open fun initialize(@NonNull projectId: String, @NonNull initializationResultListener: InitializationResultListener)
open fun initialize(    @NonNull projectId: String,     @NonNull url: String,     @NonNull initializationResultListener: InitializationResultListener)
This method is used to initialise Bluedot PointSDK service manager with the given projectId.
Link copied to clipboard
open fun isBluedotServiceInitialized(): Boolean
The client checks if Bluedot Service is initialized is running.
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.
Link copied to clipboard
open fun reset(@NonNull receiver: ResetResultReceiver)
This method will return service manager to the initial state: reset the project ID and all persisted data.
Link copied to clipboard
open fun setCustomEventMetaData(customEventMetaData: Map<String, String>)
Sets custom MetaData for Notification Events.
Link copied to clipboard
open fun setForegroundServiceNotification(notification: Notification, targetAllAPIs: Boolean)
Sets parameters for foreground service notification.
Link copied to clipboard
open fun setNotificationIDResourceID(resourceID: Int)
Set the Resource ID for the Notification icon
Link copied to clipboard
open fun setZoneDisableByApplication(zoneId: String, disable: Boolean)
Enable the zone by providing with the zone ID.