[]Struct jni_android_sys::android::view::Menu

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

public interface Menu

Required feature: "android-view-Menu"

Methods

impl Menu

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

add

Required features: "android-view-MenuItem", "java-lang-CharSequence"

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

add

Required features: "android-view-MenuItem"

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

add

Required features: "android-view-MenuItem", "java-lang-CharSequence"

pub fn add_int_int_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<Option<Local<'env, MenuItem>>, Local<'env, Throwable>>
[src]

add

Required features: "android-view-MenuItem"

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

addSubMenu

Required features: "android-view-SubMenu", "java-lang-CharSequence"

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

addSubMenu

Required features: "android-view-SubMenu"

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

addSubMenu

Required features: "android-view-SubMenu", "java-lang-CharSequence"

pub fn addSubMenu_int_int_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<Option<Local<'env, SubMenu>>, Local<'env, Throwable>>
[src]

addSubMenu

Required features: "android-view-SubMenu"

pub fn addIntentOptions<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env ComponentName>>,
    arg4: impl Into<Option<&'env ObjectArray<Intent, Throwable>>>,
    arg5: impl Into<Option<&'env Intent>>,
    arg6: i32,
    arg7: impl Into<Option<&'env ObjectArray<MenuItem, Throwable>>>
) -> Result<i32, Local<'env, Throwable>>
[src]

addIntentOptions

Required features: "android-content-ComponentName", "android-content-Intent", "android-view-MenuItem"

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

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

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

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

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

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

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

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

findItem

Required features: "android-view-MenuItem"

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

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

getItem

Required features: "android-view-MenuItem"

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

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

performShortcut

Required features: "android-view-KeyEvent"

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

isShortcutKey

Required features: "android-view-KeyEvent"

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

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

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

pub const CATEGORY_ALTERNATIVE: i32[src]

public static final CATEGORY_ALTERNATIVE

pub const CATEGORY_CONTAINER: i32[src]

public static final CATEGORY_CONTAINER

pub const CATEGORY_SECONDARY: i32[src]

public static final CATEGORY_SECONDARY

pub const CATEGORY_SYSTEM: i32[src]

public static final CATEGORY_SYSTEM

pub const FIRST: i32[src]

public static final FIRST

pub const FLAG_ALWAYS_PERFORM_CLOSE: i32[src]

public static final FLAG_ALWAYS_PERFORM_CLOSE

pub const FLAG_APPEND_TO_GROUP: i32[src]

public static final FLAG_APPEND_TO_GROUP

pub const FLAG_PERFORM_NO_CLOSE: i32[src]

public static final FLAG_PERFORM_NO_CLOSE

pub const NONE: i32[src]

public static final NONE

pub const SUPPORTED_MODIFIERS_MASK: i32[src]

public static final SUPPORTED_MODIFIERS_MASK

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 Menu

impl AsRef<Menu> for ContextMenu

impl AsRef<Menu> for SubMenu

impl AsValidJObjectAndEnv for Menu

impl Deref for Menu

type Target = Object

The resulting type after dereferencing.

impl JniType for Menu

Auto Trait Implementations

impl RefUnwindSafe for Menu

impl !Send for Menu

impl !Sync for Menu

impl Unpin for Menu

impl UnwindSafe for Menu

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.