BrazeGeofenceManager

class BrazeGeofenceManager(context: Context, apiKey: String, val brazeManager: ERROR CLASS: Symbol not found for IBrazeManager, val configurationProvider: BrazeConfigurationProvider, val serverConfigStorageProvider: ERROR CLASS: Symbol not found for ServerConfigStorageProvider, internalIEventMessenger: ERROR CLASS: Symbol not found for IEventMessenger) : <ERROR CLASS> ERROR CLASS: Symbol not found for IGeofenceManager, IBrazeGeofenceLocationUpdateListener

Constructors

Link copied to clipboard
constructor(context: Context, apiKey: String, brazeManager: ERROR CLASS: Symbol not found for IBrazeManager, configurationProvider: BrazeConfigurationProvider, serverConfigStorageProvider: ERROR CLASS: Symbol not found for ServerConfigStorageProvider, internalIEventMessenger: ERROR CLASS: Symbol not found for IEventMessenger)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
private val applicationContext: Context?
Link copied to clipboard
val brazeGeofenceApi: ERROR CLASS: Unresolved name: BrazeGeofenceApi
Link copied to clipboard
var brazeGeofenceReEligibilityManager: ERROR CLASS: Unresolved name: BrazeGeofenceReEligibilityManager
Link copied to clipboard
val brazeGeofences: ERROR CLASS: Unresolved name: toMutableList
Link copied to clipboard
val brazeLocationApi: ERROR CLASS: Unresolved name: BrazeLocationApi
Link copied to clipboard
val brazeManager: ERROR CLASS: Symbol not found for IBrazeManager
Link copied to clipboard
Link copied to clipboard
val geofenceTransitionPendingIntent: ERROR CLASS: Unresolved name: getGeofenceTransitionPendingIntent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private val serverConfigStorageProvider: ERROR CLASS: Symbol not found for ServerConfigStorageProvider

Functions

Link copied to clipboard
fun analyticsEnabledForGeofenceId(geofenceId: String, geofenceTransitionType: GeofenceTransitionType): Boolean
Link copied to clipboard
open override fun configureFromServerConfig(serverConfig: ERROR CLASS: Symbol not found for ServerConfig)
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

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 override fun postGeofenceReport(geofenceId: String, transitionType: GeofenceTransitionType)
Link copied to clipboard
open override fun registerGeofences(geofenceList: List<BrazeGeofence>)
Link copied to clipboard
fun registerGeofencesWithGooglePlay(geofenceList: List<BrazeGeofence>, geofenceRequestIntent: PendingIntent)
Link copied to clipboard
open override fun requestGeofenceRefresh(location: IBrazeLocation)
open override fun requestGeofenceRefresh(ignoreRateLimit: Boolean)

Requests a single location update from Google Play Services.

Link copied to clipboard

Retrieve stored Braze geofence objects from local storage.

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: PendingIntent?)

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
open override fun unregisterGeofences()