NotificationHandler

fun interface NotificationHandler

The interface that is implemented to handle delivery of visits from the Movement Sdk to your app.

override fun handleVisit(context: Context, notification: SdkVisitNotification) {
val visit = notification.visit
val venue = visit.getVenue()
// Do something with the visit
}

Functions

Link copied to clipboard
open fun handleBackfillVisit(context: Context, notification: BackfillNotification)

The callback that will get invoked when the SDK fills in a missed visit due to various failure cases the main case being Android Doze and no network connection for the app.

Link copied to clipboard

The callback that will get invoked when the SDK generates ENTRANCE/DWELL/VENUE_CONFIRMED/EXIT events for geofence (v2).

Link copied to clipboard
open fun handleJourneyUpdate(context: Context, journey: Journey)

The callback will get invoked when there is an update to the user's current journey.

Link copied to clipboard
open fun handleUserStateChange(context: Context, notification: UserStateNotification)

The callback will get invoked when there is a notification of the user's current state.

Link copied to clipboard
abstract fun handleVisit(context: Context, notification: VisitNotification)

The callback that will get invoked when there is a notification at the user's current visit.