[]Struct jni_android_sys::android::content::pm::PackageInstaller

#[repr(transparent)]
pub struct 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]

createSession

Required features: "android-content-pm-PackageInstaller_SessionParams"

pub fn open_session<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, PackageInstaller_Session>>>
[src]

openSession

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]

updateSessionAppIcon

Required features: "android-graphics-Bitmap"

pub fn update_session_app_label<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env CharSequence>>
) -> Result<()>
[src]

updateSessionAppLabel

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]

getSessionInfo

Required features: "android-content-pm-PackageInstaller_SessionInfo"

pub fn get_all_sessions<'env>(&'env self) -> Result<Option<Local<'env, List>>>[src]

getAllSessions

Required features: "java-util-List"

pub fn get_my_sessions<'env>(&'env self) -> Result<Option<Local<'env, List>>>[src]

getMySessions

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]

uninstall

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]

uninstall

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]

registerSessionCallback

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]

registerSessionCallback

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]

unregisterSessionCallback

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]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

toString

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

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for PackageInstaller

impl AsJValue for PackageInstaller

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]