AlertsApiInterface
public protocol AlertsApiInterface : InAppNotificationInterface
-
Initialize the mapsted alerts SDK
Declaration
Swift
func addUserAtLocationListener(listener: UserAtLocationListener)
-
Declaration
Swift
func removeUserAtLocationListener(listener: UserAtLocationListener)
-
Adds a listener to get notified when active alerts change on a given property
Declaration
Swift
func addAlertChangeListener(propertyId: Int, listener: AlertsOnChangedListener)
Parameters
propertyId
an identifier of the property in question
listener
The listener to receive change notifications
-
Removes a listener from notifications when active alerts change on a given property
Declaration
Swift
func removeAlertChangeListener(propertyId: Int, listener: AlertsOnChangedListener)
Parameters
propertyId
an identifier of the property in question
listener
The listener to remove notification list
-
Creates an instance of the class with the specified parameters.
Declaration
Swift
func sendFirebaseToken(token: String, appIdentifier: String)
Parameters
token
The firebase token
appIdentifier
An identifier name for your app
-
Declaration
Swift
func processNotification(userInfo: [AnyHashable : Any], completion: (Bool, Error?) -> Void)
-
Declaration
Swift
func getOngoingAlertsForProperty(propertyId: Int) -> [AlertSearchable]
-
Declaration
Swift
func fetchEmergencyAlerts(propertyId: Int, callback: ([AlertSearchable]) -> Void)