proximity-sdk / com.estimote.proximity_sdk.api / ProximityTriggerBuilder / NotificationProximityTriggerBuilder

NotificationProximityTriggerBuilder

class NotificationProximityTriggerBuilder

Constructors

<init>

NotificationProximityTriggerBuilder(applicationContext: Context, notification: Notification)

Functions

build

fun build(): ProximityTrigger

Builds the configured ProximityTrigger object. Bear in mind that this is only supported since Android 8.0. If run on the lower version of Android, it will simply trigger nothing.

triggerOnlyOnce

fun triggerOnlyOnce(): NotificationProximityTriggerBuilder

Triggers the event only at first time when a device enters the given proximity. By default it triggers every time. It is recommended to stop this trigger later on.

withNotificationId

fun withNotificationId(notificationId: Int): NotificationProximityTriggerBuilder

Builds with notification of specified id

withNotificationTag

fun withNotificationTag(notificationTag: String): NotificationProximityTriggerBuilder

Builds with notification of specified tag