Braze Internal Location Api
An implementation of the location calls so that they are contained in a single, external module that clients don't need to include if they don't want location services.
Functions
Returns the last known location from the LocationManager.GPS_PROVIDER, if not older than LAST_KNOWN_GPS_LOCATION_MAX_AGE_MS. Assumes that the Manifest.permission.ACCESS_FINE_LOCATION permission is present.
Determines the best location provider based on the permissions and list of providers allowed.
Initialize the object with some external variables. This function should be called immediately after the object is created and should be called only once.
Requests a location fix for the session on the device. Note that the return value of this method is used to start the Geofences process so be wary of early returning based on configuration that Geofences does not use.