[−]Struct jni_android_sys::android::content::pm::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]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Intent>>,
arg1: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, LauncherActivityInfo>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env LauncherActivityInfo>>
) -> Result<Option<Local<'env, IntentSender>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env UserHandle>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, Bundle>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, ApplicationInfo>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ComponentName>>,
arg1: impl Into<Option<&'env UserHandle>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-content-ComponentName", "android-os-UserHandle"
pub fn hasShortcutHostPermission<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env LauncherApps_ShortcutQuery>>,
arg1: impl Into<Option<&'env UserHandle>>
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env List>>,
arg2: impl Into<Option<&'env UserHandle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ShortcutInfo>>,
arg1: i32
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ShortcutInfo>>,
arg1: i32
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env ShortcutInfo>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env LauncherApps_Callback>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env LauncherApps_Callback>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env LauncherApps_Callback>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<Option<Local<'env, LauncherApps_PinItemRequest>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
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
impl JniType for LauncherApps
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for LauncherApps
impl !Send for LauncherApps
impl !Sync for LauncherApps
impl Unpin for LauncherApps
impl UnwindSafe for LauncherApps
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,