[−]Struct jni_android_sys::android::content::pm::PackageInstaller
public class PackageInstaller
Required feature: android-content-pm-PackageInstaller
Methods
impl PackageInstaller
pub fn create_session<'env>(
&'env self,
arg0: impl Into<Option<&'env PackageInstaller_SessionParams>>
) -> Result<i32>[src]
&'env self,
arg0: impl Into<Option<&'env PackageInstaller_SessionParams>>
) -> Result<i32>
Required features: "android-content-pm-PackageInstaller_SessionParams"
pub fn open_session<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, PackageInstaller_Session>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, PackageInstaller_Session>>>
Required features: "android-content-pm-PackageInstaller_Session"
pub fn update_session_app_icon<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Bitmap>>
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Bitmap>>
) -> Result<()>
Required features: "android-graphics-Bitmap"
pub fn update_session_app_label<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env CharSequence>>
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env CharSequence>>
) -> Result<()>
Required features: "java-lang-CharSequence"
pub fn abandon_session<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn get_session_info<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, PackageInstaller_SessionInfo>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, PackageInstaller_SessionInfo>>>
Required features: "android-content-pm-PackageInstaller_SessionInfo"
pub fn get_all_sessions<'env>(&'env self) -> Result<Option<Local<'env, List>>>[src]
Required features: "java-util-List"
pub fn get_my_sessions<'env>(&'env self) -> Result<Option<Local<'env, List>>>[src]
Required features: "java-util-List"
pub fn uninstall_string_intent_sender<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env IntentSender>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env IntentSender>>
) -> Result<()>
Required features: "android-content-IntentSender", "java-lang-String"
pub fn uninstall_versioned_package_intent_sender<'env>(
&'env self,
arg0: impl Into<Option<&'env VersionedPackage>>,
arg1: impl Into<Option<&'env IntentSender>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env VersionedPackage>>,
arg1: impl Into<Option<&'env IntentSender>>
) -> Result<()>
Required features: "android-content-IntentSender", "android-content-pm-VersionedPackage"
pub fn register_session_callback_session_callback<'env>(
&'env self,
arg0: impl Into<Option<&'env PackageInstaller_SessionCallback>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env PackageInstaller_SessionCallback>>
) -> Result<()>
Required features: "android-content-pm-PackageInstaller_SessionCallback"
pub fn register_session_callback_session_callback_handler<'env>(
&'env self,
arg0: impl Into<Option<&'env PackageInstaller_SessionCallback>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env PackageInstaller_SessionCallback>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<()>
Required features: "android-content-pm-PackageInstaller_SessionCallback", "android-os-Handler"
pub fn unregister_session_callback<'env>(
&'env self,
arg0: impl Into<Option<&'env PackageInstaller_SessionCallback>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env PackageInstaller_SessionCallback>>
) -> Result<()>
Required features: "android-content-pm-PackageInstaller_SessionCallback"
pub const ACTION_SESSION_COMMITTED: &'static str[src]
public static final ACTION_SESSION_COMMITTED
pub const ACTION_SESSION_DETAILS: &'static str[src]
public static final ACTION_SESSION_DETAILS
pub const EXTRA_OTHER_PACKAGE_NAME: &'static str[src]
public static final EXTRA_OTHER_PACKAGE_NAME
pub const EXTRA_PACKAGE_NAME: &'static str[src]
public static final EXTRA_PACKAGE_NAME
pub const EXTRA_SESSION: &'static str[src]
public static final EXTRA_SESSION
pub const EXTRA_SESSION_ID: &'static str[src]
public static final EXTRA_SESSION_ID
pub const EXTRA_STATUS: &'static str[src]
public static final EXTRA_STATUS
pub const EXTRA_STATUS_MESSAGE: &'static str[src]
public static final EXTRA_STATUS_MESSAGE
pub const EXTRA_STORAGE_PATH: &'static str[src]
public static final EXTRA_STORAGE_PATH
pub const STATUS_FAILURE: i32[src]
public static final STATUS_FAILURE
pub const STATUS_FAILURE_ABORTED: i32[src]
public static final STATUS_FAILURE_ABORTED
pub const STATUS_FAILURE_BLOCKED: i32[src]
public static final STATUS_FAILURE_BLOCKED
pub const STATUS_FAILURE_CONFLICT: i32[src]
public static final STATUS_FAILURE_CONFLICT
pub const STATUS_FAILURE_INCOMPATIBLE: i32[src]
public static final STATUS_FAILURE_INCOMPATIBLE
pub const STATUS_FAILURE_INVALID: i32[src]
public static final STATUS_FAILURE_INVALID
pub const STATUS_FAILURE_STORAGE: i32[src]
public static final STATUS_FAILURE_STORAGE
pub const STATUS_PENDING_USER_ACTION: i32[src]
public static final STATUS_PENDING_USER_ACTION
pub const STATUS_SUCCESS: i32[src]
public static final STATUS_SUCCESS
Methods from Deref<Target = Object>
pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]
Required features: "java-lang-Class"
pub fn hash_code<'env>(&'env self) -> Result<i32>[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<()>[src]
pub fn notify_all<'env>(&'env self) -> Result<()>[src]
pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]
pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]
pub fn wait<'env>(&'env self) -> Result<()>[src]
Trait Implementations
impl Deref for PackageInstaller
impl AsValidJObjectAndEnv for PackageInstaller
impl AsJValue for PackageInstaller
Auto Trait Implementations
impl !Sync for PackageInstaller
impl Unpin for PackageInstaller
impl !Send for PackageInstaller
impl UnwindSafe for PackageInstaller
impl RefUnwindSafe for PackageInstaller
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,