[]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 createSession<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PackageInstaller_SessionParams>>
) -> Result<i32, Local<'env, Throwable>>
[src]

createSession

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

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

openSession

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

pub fn updateSessionAppIcon<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Bitmap>>
) -> Result<(), Local<'env, Throwable>>
[src]

updateSessionAppIcon

Required features: "android-graphics-Bitmap"

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

updateSessionAppLabel

Required features: "java-lang-CharSequence"

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

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

getSessionInfo

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

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

getAllSessions

Required features: "java-util-List"

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

getMySessions

Required features: "java-util-List"

pub fn uninstall_String_IntentSender<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env IntentSender>>
) -> Result<(), Local<'env, Throwable>>
[src]

uninstall

Required features: "android-content-IntentSender", "java-lang-String"

pub fn uninstall_VersionedPackage_IntentSender<'env>(
    &'env self,
    arg0: impl Into<Option<&'env VersionedPackage>>,
    arg1: impl Into<Option<&'env IntentSender>>
) -> Result<(), Local<'env, Throwable>>
[src]

uninstall

Required features: "android-content-IntentSender", "android-content-pm-VersionedPackage"

pub fn registerSessionCallback_SessionCallback<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PackageInstaller_SessionCallback>>
) -> Result<(), Local<'env, Throwable>>
[src]

registerSessionCallback

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

pub fn registerSessionCallback_SessionCallback_Handler<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PackageInstaller_SessionCallback>>,
    arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]

registerSessionCallback

Required features: "android-content-pm-PackageInstaller_SessionCallback", "android-os-Handler"

pub fn unregisterSessionCallback<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PackageInstaller_SessionCallback>>
) -> Result<(), Local<'env, Throwable>>
[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 getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for PackageInstaller

impl AsValidJObjectAndEnv for PackageInstaller

impl Deref for PackageInstaller

type Target = Object

The resulting type after dereferencing.

impl JniType for PackageInstaller

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.