class NotificationProximityTriggerBuilder
NotificationProximityTriggerBuilder(applicationContext: Context, notification: Notification) |
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. |
|
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. |
|
fun withNotificationId(notificationId: Int): NotificationProximityTriggerBuilder
Builds with notification of specified id |
|
fun withNotificationTag(notificationTag: String): NotificationProximityTriggerBuilder
Builds with notification of specified tag |