LatLon

A data class representing geographical coordinates (latitude and longitude).

The LatLon class is a Kotlin data class that represents geographical coordinates using latitude and longitude values. It implements Android’s Parcelable interface, allowing instances to be efficiently passed between Android components.

  • SDK: Salesforce Marketing Cloud Unified SDK
  • Module: Push Models Module
  • Module Version: 1.0.2
  • SDK Version: 11.0.0
  • Platform: androidJvm

The latitude coordinate value.

The longitude coordinate value.

Returns the latitude coordinate.

Returns: The latitude value as a Double.

Returns the longitude coordinate.

Returns: The longitude value as a Double.

Companion object for the LatLon class.

  • Implements: android.os.Parcelable
  • As a Kotlin data class, LatLon automatically provides the following methods:
    • equals()
    • hashCode()
    • toString()
    • copy()
  • The @JvmField annotation exposes the properties as public fields to Java code, enabling direct field access from Java.
  • The Parcelable implementation allows instances to be passed between Android components (Activities, Fragments, Services) efficiently.