BrazeLocation

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

Constructors

Link copied to clipboard
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)
constructor(_latitude: Double, _longitude: Double, _altitude: Double? = null, _accuracy: Double? = null, _verticalAccuracy: Double? = null)

Properties

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