[−]Struct jni_android_sys::android::view::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]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, MenuItem>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MenuItem>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, MenuItem>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, MenuItem>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, SubMenu>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, SubMenu>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, SubMenu>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Option<Local<'env, SubMenu>>, Local<'env, Throwable>>
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]
&'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>>
Required features: "android-content-ComponentName", "android-content-Intent", "android-view-MenuItem"
pub fn removeItem<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn removeGroup<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: bool,
arg2: bool
) -> Result<(), Local<'env, Throwable>>
pub fn setGroupVisible<'env>(
&'env self,
arg0: i32,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
pub fn setGroupEnabled<'env>(
&'env self,
arg0: i32,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MenuItem>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MenuItem>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>,
arg2: i32
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-view-KeyEvent"
pub fn performIdentifierAction<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn setQwertyMode<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn setGroupDividerEnabled<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
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]
&'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 Menu
impl AsRef<Menu> for ContextMenu
impl AsRef<Menu> for SubMenu
impl AsValidJObjectAndEnv for Menu
impl Deref for Menu
impl JniType for Menu
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
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]
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>,