com.google.android.gms.drive.TransferPreferences |
Transfer preferences interface. Defines preference types and methods to retrieve preferences information.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TransferPreferences.BatteryUsage | Battery usage preference values. | ||||||||||
TransferPreferences.NetworkType | Network type preference values. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the battery usage preference.
| |||||||||||
Returns the network type preference.
| |||||||||||
Returns whether roaming is allowed.
|
Transfer allowed only in charging state.
Battery usage preference is unknown.
Battery usage is unrestricted.
Any network type is allowed.
Network type preference is unknown.
Only WiFi networks are allowed.
Returns the battery usage preference.
Returns | |
---|---|
int |
Returns the network type preference.
Returns | |
---|---|
int |
Returns whether roaming is allowed.
Returns | |
---|---|
boolean |