GeoTriggerBuilder

class GeoTriggerBuilder

GeoTriggerBuilder is use to build GeoTriggeringService object

Since

15.3.0

Constructors

Link copied to clipboard
fun GeoTriggerBuilder()

Properties

Link copied to clipboard
val notification: Notification? = null

foreground notification is set for foreground service

Link copied to clipboard
val notificationId: Int? = null

Id to display foreground notification

Functions

Link copied to clipboard
fun notification(notification: Notification): GeoTriggeringService.GeoTriggerBuilder

Notification to be used to run the GeoTriggering service as a foreground service.

Link copied to clipboard
fun notificationId(id: Int): GeoTriggeringService.GeoTriggerBuilder

Id to use when setting when starting the GeoTriggering service as a foreground service. If your app is already displaying a persistent notification for a foreground service, pass in the id used to have GeoTrigger service make use of the same notification, avoiding having your application displaying multiple persistent notifications. Either service may be stopped without affected any other service using the same notification id.

Link copied to clipboard
fun start(context: Context, geoTriggeringStatusListener: GeoTriggeringStatusListener)

Call this function to start the GeoTriggering service. Before calling this function, make sure that the application has the correct location permissions. We recommend checking that the correct location permissions are granted each time prior to calling this function. Thus, it is important to call this function while the application is in the foreground, so the user can respond to the location authorization prompt.