public class GpsNetInitiatedHandler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GpsNetInitiatedHandler.GpsNiNotification |
static class |
GpsNetInitiatedHandler.GpsNiResponse |
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_NI_VERIFY |
static int |
GPS_ENC_NONE |
static int |
GPS_ENC_SUPL_GSM_DEFAULT |
static int |
GPS_ENC_SUPL_UCS2 |
static int |
GPS_ENC_SUPL_UTF8 |
static int |
GPS_ENC_UNKNOWN |
static int |
GPS_NI_NEED_NOTIFY |
static int |
GPS_NI_NEED_VERIFY |
static int |
GPS_NI_PRIVACY_OVERRIDE |
static int |
GPS_NI_RESPONSE_ACCEPT |
static int |
GPS_NI_RESPONSE_DENY |
static int |
GPS_NI_RESPONSE_IGNORE |
static int |
GPS_NI_RESPONSE_NORESP |
static int |
GPS_NI_TYPE_EMERGENCY_SUPL |
static int |
GPS_NI_TYPE_UMTS_CTRL_PLANE |
static int |
GPS_NI_TYPE_UMTS_SUPL |
static int |
GPS_NI_TYPE_VOICE |
static String |
NI_EXTRA_CMD_NOTIF_ID |
static String |
NI_EXTRA_CMD_RESPONSE |
static String |
NI_INTENT_KEY_DEFAULT_RESPONSE |
static String |
NI_INTENT_KEY_MESSAGE |
static String |
NI_INTENT_KEY_NOTIF_ID |
static String |
NI_INTENT_KEY_TIMEOUT |
static String |
NI_INTENT_KEY_TITLE |
static String |
NI_RESPONSE_EXTRA_CMD |
Constructor and Description |
---|
GpsNetInitiatedHandler(Context context,
INetInitiatedListener netInitiatedListener,
boolean isSuplEsEnabled) |
Modifier and Type | Method and Description |
---|---|
static String |
getDialogTitle(GpsNetInitiatedHandler.GpsNiNotification notif,
Context context) |
boolean |
getInEmergency() |
boolean |
getLocationEnabled()
Checks if user agreed to use location.
|
boolean |
getSuplEsEnabled() |
void |
handleNiNotification(GpsNetInitiatedHandler.GpsNiNotification notif) |
void |
setInEmergency(boolean isInEmergency) |
void |
setSuplEsEnabled(boolean isEnabled) |
void |
updateLocationMode()
Updates Location enabler based on location setting.
|
public static final String ACTION_NI_VERIFY
public static final String NI_INTENT_KEY_NOTIF_ID
public static final String NI_INTENT_KEY_TITLE
public static final String NI_INTENT_KEY_MESSAGE
public static final String NI_INTENT_KEY_TIMEOUT
public static final String NI_INTENT_KEY_DEFAULT_RESPONSE
public static final String NI_RESPONSE_EXTRA_CMD
public static final String NI_EXTRA_CMD_NOTIF_ID
public static final String NI_EXTRA_CMD_RESPONSE
public static final int GPS_NI_TYPE_VOICE
public static final int GPS_NI_TYPE_UMTS_SUPL
public static final int GPS_NI_TYPE_UMTS_CTRL_PLANE
public static final int GPS_NI_TYPE_EMERGENCY_SUPL
public static final int GPS_NI_RESPONSE_ACCEPT
public static final int GPS_NI_RESPONSE_DENY
public static final int GPS_NI_RESPONSE_NORESP
public static final int GPS_NI_RESPONSE_IGNORE
public static final int GPS_NI_NEED_NOTIFY
public static final int GPS_NI_NEED_VERIFY
public static final int GPS_NI_PRIVACY_OVERRIDE
public static final int GPS_ENC_NONE
public static final int GPS_ENC_SUPL_GSM_DEFAULT
public static final int GPS_ENC_SUPL_UTF8
public static final int GPS_ENC_SUPL_UCS2
public static final int GPS_ENC_UNKNOWN
public GpsNetInitiatedHandler(Context context, INetInitiatedListener netInitiatedListener, boolean isSuplEsEnabled)
public void setSuplEsEnabled(boolean isEnabled)
public boolean getSuplEsEnabled()
public void updateLocationMode()
public boolean getLocationEnabled()
public void setInEmergency(boolean isInEmergency)
public boolean getInEmergency()
public void handleNiNotification(GpsNetInitiatedHandler.GpsNiNotification notif)
public static String getDialogTitle(GpsNetInitiatedHandler.GpsNiNotification notif, Context context)