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

#[repr(transparent)]
pub struct LauncherApps(_);

public class LauncherApps

Required feature: "android-content-pm-LauncherApps"

Methods

impl LauncherApps

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

getProfiles

Required features: "java-util-List"

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

getActivityList

Required features: "android-os-UserHandle", "java-lang-String", "java-util-List"

pub fn resolveActivity<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>,
    arg1: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, LauncherActivityInfo>>, Local<'env, Throwable>>
[src]

resolveActivity

Required features: "android-content-Intent", "android-content-pm-LauncherActivityInfo", "android-os-UserHandle"

pub fn startMainActivity<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ComponentName>>,
    arg1: impl Into<Option<&'env UserHandle>>,
    arg2: impl Into<Option<&'env Rect>>,
    arg3: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

startMainActivity

Required features: "android-content-ComponentName", "android-graphics-Rect", "android-os-Bundle", "android-os-UserHandle"

pub fn startAppDetailsActivity<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ComponentName>>,
    arg1: impl Into<Option<&'env UserHandle>>,
    arg2: impl Into<Option<&'env Rect>>,
    arg3: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

startAppDetailsActivity

Required features: "android-content-ComponentName", "android-graphics-Rect", "android-os-Bundle", "android-os-UserHandle"

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

getShortcutConfigActivityList

Required features: "android-os-UserHandle", "java-lang-String", "java-util-List"

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

getShortcutConfigActivityIntent

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

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

isPackageEnabled

Required features: "android-os-UserHandle", "java-lang-String"

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

getSuspendedPackageLauncherExtras

Required features: "android-os-Bundle", "android-os-UserHandle", "java-lang-String"

pub fn getApplicationInfo<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32,
    arg2: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, ApplicationInfo>>, Local<'env, Throwable>>
[src]

getApplicationInfo

Required features: "android-content-pm-ApplicationInfo", "android-os-UserHandle", "java-lang-String"

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

isActivityEnabled

Required features: "android-content-ComponentName", "android-os-UserHandle"

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

pub fn getShortcuts<'env>(
    &'env self,
    arg0: impl Into<Option<&'env LauncherApps_ShortcutQuery>>,
    arg1: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getShortcuts

Required features: "android-content-pm-LauncherApps_ShortcutQuery", "android-os-UserHandle", "java-util-List"

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

pinShortcuts

Required features: "android-os-UserHandle", "java-lang-String", "java-util-List"

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

getShortcutIconDrawable

Required features: "android-content-pm-ShortcutInfo", "android-graphics-drawable-Drawable"

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

getShortcutBadgedIconDrawable

Required features: "android-content-pm-ShortcutInfo", "android-graphics-drawable-Drawable"

pub fn startShortcut_String_String_Rect_Bundle_UserHandle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env Rect>>,
    arg3: impl Into<Option<&'env Bundle>>,
    arg4: impl Into<Option<&'env UserHandle>>
) -> Result<(), Local<'env, Throwable>>
[src]

startShortcut

Required features: "android-graphics-Rect", "android-os-Bundle", "android-os-UserHandle", "java-lang-String"

pub fn startShortcut_ShortcutInfo_Rect_Bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ShortcutInfo>>,
    arg1: impl Into<Option<&'env Rect>>,
    arg2: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

startShortcut

Required features: "android-content-pm-ShortcutInfo", "android-graphics-Rect", "android-os-Bundle"

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

registerCallback

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

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

registerCallback

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

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

unregisterCallback

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

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

getPinItemRequest

Required features: "android-content-Intent", "android-content-pm-LauncherApps_PinItemRequest"

pub const ACTION_CONFIRM_PIN_APPWIDGET: &'static str[src]

public static final ACTION_CONFIRM_PIN_APPWIDGET

pub const ACTION_CONFIRM_PIN_SHORTCUT: &'static str[src]

public static final ACTION_CONFIRM_PIN_SHORTCUT

pub const EXTRA_PIN_ITEM_REQUEST: &'static str[src]

public static final EXTRA_PIN_ITEM_REQUEST

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 LauncherApps

impl AsValidJObjectAndEnv for LauncherApps

impl Deref for LauncherApps

type Target = Object

The resulting type after dereferencing.

impl JniType for LauncherApps

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.