AI-generated Key Takeaways
-
TransferPreferences defines preferences and methods for retrieving transfer information.
-
It includes nested classes for BatteryUsage and NetworkType preferences.
-
Constants define specific values for battery usage and network type preferences, such as charging only, unknown, unrestricted, any network, unknown network, and WiFi only.
-
Public methods allow retrieval of battery usage, network preference, and whether roaming is allowed.
Transfer preferences interface. Defines preference types and methods to retrieve preferences information.
Nested Class Summary
Constant Summary
| int | BATTERY_USAGE_CHARGING_ONLY | Transfer allowed only in charging state. |
| int | BATTERY_USAGE_UNKNOWN | Battery usage preference is unknown. |
| int | BATTERY_USAGE_UNRESTRICTED | Battery usage is unrestricted. |
| int | NETWORK_TYPE_ANY | Any network type is allowed. |
| int | NETWORK_TYPE_UNKNOWN | Network type preference is unknown. |
| int | NETWORK_TYPE_WIFI_ONLY | Only WiFi networks are allowed. |
Public Method Summary
| abstract int | |
| abstract int | |
| abstract boolean |
Constants
public static final int BATTERY_USAGE_CHARGING_ONLY
Transfer allowed only in charging state.
public static final int BATTERY_USAGE_UNKNOWN
Battery usage preference is unknown.
public static final int BATTERY_USAGE_UNRESTRICTED
Battery usage is unrestricted.
public static final int NETWORK_TYPE_ANY
Any network type is allowed.
public static final int NETWORK_TYPE_UNKNOWN
Network type preference is unknown.
public static final int NETWORK_TYPE_WIFI_ONLY
Only WiFi networks are allowed.
Public Methods
public abstract int getBatteryUsagePreference ()
Returns the battery usage preference.
public abstract int getNetworkPreference ()
Returns the network type preference.
public abstract boolean isRoamingAllowed ()
Returns whether roaming is allowed.

