public static interface

OfflineGeofenceApi.OfflineGeofences

com.mapsted.geofence_offline.OfflineGeofenceApi.OfflineGeofences

Summary

Nested Classes
interface OfflineGeofenceApi.OfflineGeofences.AddOfflineGeofenceCallback  
Public Methods
abstract void addOfflineGeofence(int propertyId, long expirationMs, NotificationDetail notificationDetail, OfflineGeofenceApi.OfflineGeofences.AddOfflineGeofenceCallback callback)
Same as addOfflineGeofence(int, long, AddOfflineGeofenceCallback) but additionally shows a notification when geofence is triggered.
abstract void addOfflineGeofence(int propertyId, long expirationMs, OfflineGeofenceApi.OfflineGeofences.AddOfflineGeofenceCallback callback)
abstract void removeOfflineGeofence(int propertyId, Consumer<Boolean> callback)
remove geofence for this property

Public Methods

public abstract void addOfflineGeofence (int propertyId, long expirationMs, NotificationDetail notificationDetail, OfflineGeofenceApi.OfflineGeofences.AddOfflineGeofenceCallback callback)

Same as addOfflineGeofence(int, long, AddOfflineGeofenceCallback) but additionally shows a notification when geofence is triggered.

Parameters
propertyId propertyId
expirationMs Time in future after which this geofence will be ignored.
notificationDetail Notification detail. When notification is tapped app is launched.
callback callback for success or failure

public abstract void addOfflineGeofence (int propertyId, long expirationMs, OfflineGeofenceApi.OfflineGeofences.AddOfflineGeofenceCallback callback)

Parameters
propertyId propertyId to add geofence for. If there was already one, it will be updated.
expirationMs time in future when this geofence will expire
callback callback

public abstract void removeOfflineGeofence (int propertyId, Consumer<Boolean> callback)

remove geofence for this property

Parameters
propertyId property id
callback callback with success or failure