public class EmergencyManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
EmergencyManager.SendSmsInterface |
Modifier and Type | Method and Description |
---|---|
void |
cancelRepeat() |
void |
cancelRepeat(EmergencyType repeatType,
boolean sendSms) |
void |
clearExpiredBeacons() |
void |
dispose() |
android.content.Context |
getContext() |
java.util.List<EmergencyBeacon> |
getEmergencyBeacons() |
EmergencyType |
getEmergencyType() |
static EmergencyManager |
getInstance() |
static boolean |
hasSmsSendPlugin()
Used to let the AlertPreferenceFragment know that there is a Sms send Plugin.
|
static void |
initialize(MapView mapView) |
void |
initiateRepeat(EmergencyType repeatType,
boolean sendSms) |
java.lang.Boolean |
isEmergencyOn() |
void |
registerEmergencyStateChangeListener(EmergencyListener listener) |
void |
sendSMS(EmergencyType repeatType) |
void |
setEmergencyOn(boolean emergencyOn) |
void |
setEmergencyType(EmergencyType emergencyType) |
static void |
setSendSmsInterface(EmergencyManager.SendSmsInterface iface)
Sets the Send SMS Interface to use instead of the default SMS Interface.
|
java.lang.String |
toString() |
public void dispose()
public static void initialize(MapView mapView)
public static EmergencyManager getInstance()
public android.content.Context getContext()
public java.util.List<EmergencyBeacon> getEmergencyBeacons()
public void initiateRepeat(EmergencyType repeatType, boolean sendSms)
public void cancelRepeat()
public void cancelRepeat(EmergencyType repeatType, boolean sendSms)
public void sendSMS(EmergencyType repeatType)
public void registerEmergencyStateChangeListener(EmergencyListener listener)
public java.lang.Boolean isEmergencyOn()
public void setEmergencyOn(boolean emergencyOn)
public EmergencyType getEmergencyType()
public void setEmergencyType(EmergencyType emergencyType)
public java.lang.String toString()
toString
in class java.lang.Object
public void clearExpiredBeacons()
public static void setSendSmsInterface(EmergencyManager.SendSmsInterface iface)
iface
- the implementation to use or null if the default is to be used.public static boolean hasSmsSendPlugin()