IBrazeLocationApi

Interface for the location services API used by the Braze SDK for geofence monitoring and location collection.

Functions

Link copied to clipboard
abstract fun initWithContext(context: Context, allowedProviders: EnumSet<LocationProviderName>, appConfigurationProvider: BrazeConfigurationProvider)

Initialize the object with some external variables. This function should be called immediately after the object is created and should be called only once.

Link copied to clipboard
abstract fun requestSingleLocationUpdate(locationUpdateCallback: (location: IBrazeLocation) -> Unit): Boolean

Requests a location fix for the session on the device.