com.mapsted.ui.MapUiApi.AlertProvider |
![]() |
Alert provider. This will be implemented automatically by alerts-sdk in order to supply the map-ui-sdk with Alert-based data.
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) |
Create partial fragment alert list for given alertIds
alertIds | the alerts to populate |
---|---|
fragmentConsumer | the created fragment (nullable) |
Get the list of active alerts by propertyId
propertyId | the property of interest |
---|