public static interface

MapUiApi.AlertProvider

com.mapsted.ui.MapUiApi.AlertProvider
Known Indirect Subclasses

Class Overview

Alert provider. This will be implemented automatically by alerts-sdk in order to supply the map-ui-sdk with Alert-based data.

Summary

Public Methods
abstract boolean addActiveAlertChangeListener(MapUiApi.AlertChangeListener listener)
abstract void createAlertListPartialFragment(List<String> alertIds, Consumer<Fragment> fragmentConsumer)
Create partial fragment alert list for given alertIds
abstract boolean displayAlertListDialog(List<String> alertIds, FragmentManager fragmentManager, Consumer<EntityZone> entityZoneSelection)
abstract void getActiveAlerts(int propertyId, Consumer<List<String>> alertsConsumer)
Get the list of active alerts by propertyId
abstract Fragment getEntityAlertListFragment(Entity entity)
abstract boolean hasAlerts(Entity entity)
abstract boolean removeActiveAlertChangeListener(MapUiApi.AlertChangeListener listener)
abstract void showAlertDialogForEntity(Entity entity, FragmentManager fragmentManager, Consumer<EntityZone> entityZoneSelection)

Public Methods

public abstract boolean addActiveAlertChangeListener (MapUiApi.AlertChangeListener listener)

public abstract void createAlertListPartialFragment (List<String> alertIds, Consumer<Fragment> fragmentConsumer)

Create partial fragment alert list for given alertIds

Parameters
alertIds the alerts to populate
fragmentConsumer the created fragment (nullable)

public abstract boolean displayAlertListDialog (List<String> alertIds, FragmentManager fragmentManager, Consumer<EntityZone> entityZoneSelection)

public abstract void getActiveAlerts (int propertyId, Consumer<List<String>> alertsConsumer)

Get the list of active alerts by propertyId

Parameters
propertyId the property of interest

public abstract Fragment getEntityAlertListFragment (Entity entity)

public abstract boolean hasAlerts (Entity entity)

public abstract boolean removeActiveAlertChangeListener (MapUiApi.AlertChangeListener listener)

public abstract void showAlertDialogForEntity (Entity entity, FragmentManager fragmentManager, Consumer<EntityZone> entityZoneSelection)