BrazeLocation

data class BrazeLocation @JvmOverloads constructor(val _latitude: Double, val _longitude: Double, val _altitude: Double? = null, val _accuracy: Double? = null, val _verticalAccuracy: Double? = null) : IBrazeLocation

Constructors

Link copied to clipboard
constructor(_latitude: Double, _longitude: Double, _altitude: Double? = null, _accuracy: Double? = null, _verticalAccuracy: Double? = null)
constructor(location: Location)

Creates a BrazeLocation from Location object. If the location object has fields that are not available (altitude, accuracy, and vertical accuracy), due to either hardware limitations or Android OS level, the BrazeLocation will have those fields as null.

constructor(jsonObject: JSONObject)

Types

Link copied to clipboard
private object Companion

Gets the vertical accuracy from the location object. If the location doesn't have the vertical accuracy (due to hardware constraints) or the Android level is older than Android O, null will be returned.

Properties

Link copied to clipboard
private val _accuracy: Double?
Link copied to clipboard
private val _altitude: Double?
Link copied to clipboard
private val _latitude: Double
Link copied to clipboard
private val _longitude: Double
Link copied to clipboard
Link copied to clipboard
open override val accuracy: Double?
Link copied to clipboard
open override val altitude: Double?
Link copied to clipboard
open override val latitude: Double
Link copied to clipboard
open override val longitude: Double
Link copied to clipboard
open override val verticalAccuracy: Double?

Functions

Link copied to clipboard
open override fun forJsonPut(): JSONObject