public class DataEnabledSettings extends Object
Modifier and Type | Field and Description |
---|---|
static int |
REASON_DATA_ENABLED_BY_CARRIER |
static int |
REASON_INTERNAL_DATA_ENABLED |
static int |
REASON_POLICY_DATA_ENABLED |
static int |
REASON_REGISTERED |
static int |
REASON_USER_DATA_ENABLED |
Constructor and Description |
---|
DataEnabledSettings() |
Modifier and Type | Method and Description |
---|---|
boolean |
isCarrierDataEnabled() |
boolean |
isDataEnabled(boolean checkUserDataEnabled) |
boolean |
isInternalDataEnabled() |
boolean |
isPolicyDataEnabled() |
boolean |
isUserDataEnabled() |
void |
registerForDataEnabledChanged(Handler h,
int what,
Object obj) |
void |
setCarrierDataEnabled(boolean enabled) |
void |
setInternalDataEnabled(boolean enabled) |
void |
setPolicyDataEnabled(boolean enabled) |
void |
setUserDataEnabled(boolean enabled) |
void |
unregisterForDataEnabledChanged(Handler h) |
public static final int REASON_REGISTERED
public static final int REASON_INTERNAL_DATA_ENABLED
public static final int REASON_USER_DATA_ENABLED
public static final int REASON_POLICY_DATA_ENABLED
public static final int REASON_DATA_ENABLED_BY_CARRIER
public void setInternalDataEnabled(boolean enabled)
public boolean isInternalDataEnabled()
public void setUserDataEnabled(boolean enabled)
public boolean isUserDataEnabled()
public void setPolicyDataEnabled(boolean enabled)
public boolean isPolicyDataEnabled()
public void setCarrierDataEnabled(boolean enabled)
public boolean isCarrierDataEnabled()
public boolean isDataEnabled(boolean checkUserDataEnabled)
public void registerForDataEnabledChanged(Handler h, int what, Object obj)
public void unregisterForDataEnabledChanged(Handler h)