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
propertyIdan identifier of the property in question
listenerThe 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
propertyIdan identifier of the property in question
listenerThe listener to remove notification list
-
Creates an instance of the class with the specified parameters.
Declaration
Swift
func sendFirebaseToken(token: String, appIdentifier: String)Parameters
tokenThe firebase token
appIdentifierAn 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)
AlertsApiInterface Protocol Reference