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

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

public class ShortcutManager

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

Methods

impl ShortcutManager

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

setDynamicShortcuts

Required features: "java-util-List"

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

getDynamicShortcuts

Required features: "java-util-List"

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

getManifestShortcuts

Required features: "java-util-List"

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

addDynamicShortcuts

Required features: "java-util-List"

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

removeDynamicShortcuts

Required features: "java-util-List"

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

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

getPinnedShortcuts

Required features: "java-util-List"

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

updateShortcuts

Required features: "java-util-List"

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

disableShortcuts

Required features: "java-util-List"

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

disableShortcuts

Required features: "java-lang-CharSequence", "java-util-List"

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

enableShortcuts

Required features: "java-util-List"

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

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

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

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

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

reportShortcutUsed

Required features: "java-lang-String"

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

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

requestPinShortcut

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

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

createShortcutResultIntent

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

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 ShortcutManager

impl AsValidJObjectAndEnv for ShortcutManager

impl Deref for ShortcutManager

type Target = Object

The resulting type after dereferencing.

impl JniType for ShortcutManager

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.