Message
Region
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Region is a data class in the Salesforce Marketing Cloud Unified SDK that represents a geographic or proximity-based region for location-based messaging. It implements Parcelable for Android serialization and Comparable<Region> for sorting capabilities.
Package: com.salesforce.marketingcloud.messages
Inheritance:
Parcelable, Comparable<Region>1@JvmField
2val center: LatLonThe geographic center point of the region.
1@JvmField
2val description: String?Optional description text for the region.
1@JvmField
2val id: StringUnique identifier for the region.
1@JvmField
2val major: IntMajor value for beacon-based regions.
1@JvmField
2val messages: List<Message>Collection of messages associated with this region.
1@JvmField
2val minor: IntMinor value for beacon-based regions.
1@JvmField
2val name: String?Optional display name for the region.
1@JvmField
2val proximityUuid: String?UUID for proximity beacon identification.
1@JvmField
2val radius: IntThe radius distance (in meters) for geofence regions.
1@JvmField
2val regionType: IntInteger value indicating the type of region (geofence, beacon, etc.).
1fun toJson(): JSONObjectSerializes the Region object to a JSON representation.
Returns: JSONObject containing the region data.
1object CompanionCompanion object for the Region class.