BrazeGeofenceManager

class BrazeGeofenceManager(context: <Error class: unknown class>, apiKey: String, val brazeManager: <Error class: unknown class>, configurationProvider: BrazeConfigurationProvider, serverConfigStorageProvider: <Error class: unknown class>, internalIEventMessenger: <Error class: unknown class>) : IBrazeGeofenceLocationUpdateListener

Constructors

Link copied to clipboard
constructor(context: <Error class: unknown class>, apiKey: String, brazeManager: <Error class: unknown class>, configurationProvider: BrazeConfigurationProvider, serverConfigStorageProvider: <Error class: unknown class>, internalIEventMessenger: <Error class: unknown class>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val brazeGeofenceApi: <Error class: unknown class>
Link copied to clipboard
var brazeGeofenceReEligibilityManager: <Error class: unknown class>
Link copied to clipboard
val brazeGeofences: <Error class: unknown class>
Link copied to clipboard
val brazeLocationApi: <Error class: unknown class>
Link copied to clipboard
val brazeManager: <Error class: unknown class>
Link copied to clipboard
val geofenceStorageSharedPreferences: <Error class: unknown class>
Link copied to clipboard
val geofenceTransitionPendingIntent: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun analyticsEnabledForGeofenceId(geofenceId: String, geofenceTransitionType: GeofenceTransitionType): Boolean
Link copied to clipboard
open fun configureFromServerConfig(serverConfig: <Error class: unknown class>)
Link copied to clipboard

Performs the setup required to initialize Geofences on the device, including registering Geofences on the device. when location permissions are granted to the app by the user.

Link copied to clipboard
fun isGeofencesEnabledFromEnvironment(context: <Error class: unknown class>): Boolean

Together with GeofenceUtils.getGeofencesEnabledFromServerConfig determines whether the geofence feature is enabled for the current app run. Both checks must be satisfied for geofences to be enabled.

Link copied to clipboard
open override fun onLocationRequestComplete(location: IBrazeLocation?)

Informs the BrazeGeofenceManager about the result of the last single location request.

Link copied to clipboard
open fun postGeofenceReport(geofenceId: String, transitionType: GeofenceTransitionType)
Link copied to clipboard
open fun registerGeofences(geofenceList: List<BrazeGeofence>)
Link copied to clipboard
fun registerGeofencesWithGooglePlay(geofenceList: List<BrazeGeofence>, geofenceRequestIntent: <Error class: unknown class>)
Link copied to clipboard
open fun requestGeofenceRefresh(ignoreRateLimit: Boolean)

Requests a single location update from Google Play Services.

Link copied to clipboard
fun setUpGeofences(reRegisterGeofences: Boolean)

If reRegisterGeofences is true, re-registers geofences with Google Play Services.

Link copied to clipboard
fun tearDownGeofences(geofenceRequestIntent: <Error class: unknown class>?)

Unregister all Braze geofences from Google Play Services and delete all locally stored geofences. This method should only be used when geofences are newly disabled via server config.

Link copied to clipboard