Marketing Cloud SDK / com.salesforce.marketingcloud.messages / RegionMessageManager

RegionMessageManager

interface RegionMessageManager

Types

GeofenceMessageResponseListener

interface GeofenceMessageResponseListener

ProximityMessageResponseListener

interface ProximityMessageResponseListener

RegionTransitionEventListener

Interface to use to listen for region(Geofence/Proximity) transition(enter/exit) events. The in the provided Region will always be empty when these methods are called. If there is a message attached to the region transition that should be shown as a notification then it will be displayed shortly after this interface is notified of the event.

interface RegionTransitionEventListener

Functions

disableGeofenceMessaging

Disables geofence messaging.

abstract fun disableGeofenceMessaging(): Unit

disableProximityMessaging

Disables proximity messaging.

abstract fun disableProximityMessaging(): Unit

enableGeofenceMessaging

Enables geofence messaging. This will only succeed if:

abstract fun enableGeofenceMessaging(): Boolean

enableProximityMessaging

Enables proximity messaging. This will only succeed if:

abstract fun enableProximityMessaging(): Boolean

isGeofenceMessagingEnabled

Indicates whether geofence messaging is enabled.

abstract fun isGeofenceMessagingEnabled(): Boolean

isProximityMessagingEnabled

Indicates whether proximity messaging is enabled.

abstract fun isProximityMessagingEnabled(): Boolean

registerGeofenceMessageResponseListener

Registers the provided listener for geofence message response events.

abstract fun registerGeofenceMessageResponseListener(listener: GeofenceMessageResponseListener): Unit

registerProximityMessageResponseListener

Registers the provided listener for proximity message response events.

abstract fun registerProximityMessageResponseListener(listener: ProximityMessageResponseListener): Unit

registerRegionTransitionEventListener

Registers the provided listener for region transition events.

abstract fun registerRegionTransitionEventListener(listener: RegionTransitionEventListener): Unit

unregisterGeofenceMessageResponseListener

Unregisters the provided listener for geofence message response events.

abstract fun unregisterGeofenceMessageResponseListener(listener: GeofenceMessageResponseListener): Unit

unregisterProximityMessageResponseListener

Unregisters the provided listener for proximity message response events.

abstract fun unregisterProximityMessageResponseListener(listener: ProximityMessageResponseListener): Unit

unregisterRegionTransitionEventListener

Unregisters the provided listener for region transition events.

abstract fun unregisterRegionTransitionEventListener(listener: RegionTransitionEventListener): Unit