pub enum InstallLocation {
Auto,
InternalOnly,
PreferExternal,
}
Expand description
The default install location for the app.
Variants§
Auto
The app may be installed on the external storage, but the system will install the app on the internal storage by default. If the internal storage is full, then the system will install it on the external storage. Once installed, the user can move the app to either internal or external storage through the system settings.
InternalOnly
The app must be installed on the internal device storage only. If this is set, the app will never be installed on the external storage. If the internal storage is full, then the system will not install the app. This is also the default behavior if you do not define android:installLocation.
PreferExternal
The app prefers to be installed on the external storage (SD card). There is no guarantee that the system will honor this request. The app might be installed on internal storage if the external media is unavailable or full. Once installed, the user can move the app to either internal or external storage through the system settings.
Trait Implementations§
source§impl Clone for InstallLocation
impl Clone for InstallLocation
source§fn clone(&self) -> InstallLocation
fn clone(&self) -> InstallLocation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstallLocation
impl Debug for InstallLocation
source§impl Default for InstallLocation
impl Default for InstallLocation
source§fn default() -> InstallLocation
fn default() -> InstallLocation
source§impl<'de> Deserialize<'de> for InstallLocation
impl<'de> Deserialize<'de> for InstallLocation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<InstallLocation> for InstallLocation
impl PartialEq<InstallLocation> for InstallLocation
source§fn eq(&self, other: &InstallLocation) -> bool
fn eq(&self, other: &InstallLocation) -> bool
self
and other
values to be equal, and is used
by ==
.