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

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

public final class ShortcutInfo

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

Methods

impl ShortcutInfo

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

getId

Required features: "java-lang-String"

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

getPackage

Required features: "java-lang-String"

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

getActivity

Required features: "android-content-ComponentName"

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

getShortLabel

Required features: "java-lang-CharSequence"

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

getLongLabel

Required features: "java-lang-CharSequence"

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

getDisabledMessage

Required features: "java-lang-CharSequence"

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

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

getCategories

Required features: "java-util-Set"

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

getIntent

Required features: "android-content-Intent"

pub fn getIntents<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<Intent, Throwable>>>, Local<'env, Throwable>>
[src]

getIntents

Required features: "android-content-Intent"

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

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

getExtras

Required features: "android-os-PersistableBundle"

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

getUserHandle

Required features: "android-os-UserHandle"

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

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

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

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

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

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

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

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

writeToParcel

Required features: "android-os-Parcel"

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

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

toString

Required features: "java-lang-String"

pub fn CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const DISABLED_REASON_APP_CHANGED: i32[src]

public static final DISABLED_REASON_APP_CHANGED

pub const DISABLED_REASON_BACKUP_NOT_SUPPORTED: i32[src]

pub const DISABLED_REASON_BY_APP: i32[src]

public static final DISABLED_REASON_BY_APP

pub const DISABLED_REASON_NOT_DISABLED: i32[src]

public static final DISABLED_REASON_NOT_DISABLED

pub const DISABLED_REASON_OTHER_RESTORE_ISSUE: i32[src]

pub const DISABLED_REASON_SIGNATURE_MISMATCH: i32[src]

pub const DISABLED_REASON_UNKNOWN: i32[src]

public static final DISABLED_REASON_UNKNOWN

pub const DISABLED_REASON_VERSION_LOWER: i32[src]

public static final DISABLED_REASON_VERSION_LOWER

pub const SHORTCUT_CATEGORY_CONVERSATION: &'static str[src]

public static final SHORTCUT_CATEGORY_CONVERSATION

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 ShortcutInfo

impl AsRef<Parcelable> for ShortcutInfo

impl AsValidJObjectAndEnv for ShortcutInfo

impl Deref for ShortcutInfo

type Target = Object

The resulting type after dereferencing.

impl JniType for ShortcutInfo

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.