setLastKnownLocation

fun setLastKnownLocation(latitude: Double, longitude: Double, altitude: Double? = null, accuracy: Double? = null, verticalAccuracy: Double? = null)

Sets the last known location for the user. Intended for use with com.braze.configuration.BrazeConfig.Builder.setIsLocationCollectionEnabled set to false in the braze.xml configuration file, so that the only locations being set are by the integrating app. Otherwise, calls to this method will be contending with automatic location update events. Latitude and longitude are required; altitude and accuracy may be set to null

Parameters

latitude

The latitude of the User's location in degrees (valid values are between -90 to 90 degrees)

longitude

The longitude of the User's location (valid values are between -180 to 180 degrees)

altitude

The altitude of the User's location in meters above the WGS 84 reference ellipsoid

accuracy

The horizontal accuracy of the User's location in meters

verticalAccuracy

The vertical accuracy of the User's location in meters