Region

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:

  • Implements: Parcelable, Comparable<Region>

The geographic center point of the region.

Optional description text for the region.

Unique identifier for the region.

Major value for beacon-based regions.

Collection of messages associated with this region.

Minor value for beacon-based regions.

Optional display name for the region.

UUID for proximity beacon identification.

The radius distance (in meters) for geofence regions.

Integer value indicating the type of region (geofence, beacon, etc.).

Serializes the Region object to a JSON representation.

Returns: JSONObject containing the region data.

Companion object for the Region class.