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

ProximityTriggerBuilder

class ProximityTriggerBuilder

Builds object that handles the deep background system scanning that will invoke given actions. Works only on phones with Android 8.0 or greater.

The purpose of the ProximityTrigger is to allow you to do low-power background scan which can trigger your notification/pending intent when entering the range of beacons.

Author
Estimote Inc. (contact@estimote.com)

Types

NotificationProximityTriggerBuilder

class NotificationProximityTriggerBuilder

Constructors

<init>

ProximityTriggerBuilder(applicationContext: Context)

Builds object that handles the deep background system scanning that will invoke given actions. Works only on phones with Android 8.0 or greater.

Functions

displayNotificationWhenInProximity

fun displayNotificationWhenInProximity(notification: Notification): NotificationProximityTriggerBuilder

Triggers given notification when the device enters the range of Estimote Beacons.

triggerPendingIntentWhenInProximity

fun triggerPendingIntentWhenInProximity(pendingIntent: PendingIntent): ProximityTrigger

Triggers given pending intent when the device enters the range of Estimote Beacons.