[−]Struct jni_android_sys::android::app::Dialog
public class Dialog
Required feature: android-app-Dialog
Methods
impl Dialog
pub fn new_context<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, Dialog>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, Dialog>>
Required features: "android-content-Context"
pub fn new_context_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: i32
) -> Result<Local<'env, Dialog>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: i32
) -> Result<Local<'env, Dialog>>
Required features: "android-content-Context"
pub fn get_context<'env>(&'env self) -> Result<Option<Local<'env, Context>>>[src]
Required features: "android-content-Context"
pub fn get_action_bar<'env>(
&'env self
) -> Result<Option<Local<'env, ActionBar>>>[src]
&'env self
) -> Result<Option<Local<'env, ActionBar>>>
Required features: "android-app-ActionBar"
pub fn set_owner_activity<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<()>
Required features: "android-app-Activity"
pub fn get_owner_activity<'env>(
&'env self
) -> Result<Option<Local<'env, Activity>>>[src]
&'env self
) -> Result<Option<Local<'env, Activity>>>
Required features: "android-app-Activity"
pub fn is_showing<'env>(&'env self) -> Result<bool>[src]
pub fn create<'env>(&'env self) -> Result<()>[src]
pub fn show<'env>(&'env self) -> Result<()>[src]
pub fn hide<'env>(&'env self) -> Result<()>[src]
pub fn dismiss<'env>(&'env self) -> Result<()>[src]
pub fn on_save_instance_state<'env>(
&'env self
) -> Result<Option<Local<'env, Bundle>>>[src]
&'env self
) -> Result<Option<Local<'env, Bundle>>>
Required features: "android-os-Bundle"
pub fn on_restore_instance_state<'env>(
&'env self,
arg0: impl Into<Option<&'env Bundle>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Bundle>>
) -> Result<()>
Required features: "android-os-Bundle"
pub fn get_window<'env>(&'env self) -> Result<Option<Local<'env, Window>>>[src]
Required features: "android-view-Window"
pub fn get_current_focus<'env>(&'env self) -> Result<Option<Local<'env, View>>>[src]
Required features: "android-view-View"
pub fn find_view_by_id<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, View>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, View>>>
Required features: "android-view-View"
pub fn require_view_by_id<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, View>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, View>>>
Required features: "android-view-View"
pub fn set_content_view_int<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn set_content_view_view<'env>(
&'env self,
arg0: impl Into<Option<&'env View>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env View>>
) -> Result<()>
Required features: "android-view-View"
pub fn set_content_view_view_layout_params<'env>(
&'env self,
arg0: impl Into<Option<&'env View>>,
arg1: impl Into<Option<&'env ViewGroup_LayoutParams>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env View>>,
arg1: impl Into<Option<&'env ViewGroup_LayoutParams>>
) -> Result<()>
Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"
pub fn add_content_view<'env>(
&'env self,
arg0: impl Into<Option<&'env View>>,
arg1: impl Into<Option<&'env ViewGroup_LayoutParams>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env View>>,
arg1: impl Into<Option<&'env ViewGroup_LayoutParams>>
) -> Result<()>
Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"
pub fn set_title_char_sequence<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<()>
Required features: "java-lang-CharSequence"
pub fn set_title_int<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn on_key_down<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn on_key_long_press<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn on_key_up<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn on_key_multiple<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn on_back_pressed<'env>(&'env self) -> Result<()>[src]
pub fn on_key_shortcut<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn on_touch_event<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
Required features: "android-view-MotionEvent"
pub fn on_trackball_event<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
Required features: "android-view-MotionEvent"
pub fn on_generic_motion_event<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
Required features: "android-view-MotionEvent"
pub fn on_window_attributes_changed<'env>(
&'env self,
arg0: impl Into<Option<&'env WindowManager_LayoutParams>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env WindowManager_LayoutParams>>
) -> Result<()>
Required features: "android-view-WindowManager_LayoutParams"
pub fn on_content_changed<'env>(&'env self) -> Result<()>[src]
pub fn on_window_focus_changed<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub fn on_attached_to_window<'env>(&'env self) -> Result<()>[src]
pub fn on_detached_from_window<'env>(&'env self) -> Result<()>[src]
pub fn dispatch_key_event<'env>(
&'env self,
arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn dispatch_key_shortcut_event<'env>(
&'env self,
arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn dispatch_touch_event<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
Required features: "android-view-MotionEvent"
pub fn dispatch_trackball_event<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
Required features: "android-view-MotionEvent"
pub fn dispatch_generic_motion_event<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
Required features: "android-view-MotionEvent"
pub fn dispatch_populate_accessibility_event<'env>(
&'env self,
arg0: impl Into<Option<&'env AccessibilityEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env AccessibilityEvent>>
) -> Result<bool>
dispatchPopulateAccessibilityEvent
Required features: "android-view-accessibility-AccessibilityEvent"
pub fn on_create_panel_view<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, View>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, View>>>
Required features: "android-view-View"
pub fn on_create_panel_menu<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Menu>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Menu>>
) -> Result<bool>
Required features: "android-view-Menu"
pub fn on_prepare_panel<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env View>>,
arg2: impl Into<Option<&'env Menu>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env View>>,
arg2: impl Into<Option<&'env Menu>>
) -> Result<bool>
Required features: "android-view-Menu", "android-view-View"
pub fn on_menu_opened<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Menu>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Menu>>
) -> Result<bool>
Required features: "android-view-Menu"
pub fn on_menu_item_selected<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env MenuItem>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env MenuItem>>
) -> Result<bool>
Required features: "android-view-MenuItem"
pub fn on_panel_closed<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Menu>>
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Menu>>
) -> Result<()>
Required features: "android-view-Menu"
pub fn on_create_options_menu<'env>(
&'env self,
arg0: impl Into<Option<&'env Menu>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Menu>>
) -> Result<bool>
Required features: "android-view-Menu"
pub fn on_prepare_options_menu<'env>(
&'env self,
arg0: impl Into<Option<&'env Menu>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Menu>>
) -> Result<bool>
Required features: "android-view-Menu"
pub fn on_options_item_selected<'env>(
&'env self,
arg0: impl Into<Option<&'env MenuItem>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env MenuItem>>
) -> Result<bool>
Required features: "android-view-MenuItem"
pub fn on_options_menu_closed<'env>(
&'env self,
arg0: impl Into<Option<&'env Menu>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Menu>>
) -> Result<()>
Required features: "android-view-Menu"
pub fn open_options_menu<'env>(&'env self) -> Result<()>[src]
pub fn close_options_menu<'env>(&'env self) -> Result<()>[src]
pub fn invalidate_options_menu<'env>(&'env self) -> Result<()>[src]
pub fn on_create_context_menu<'env>(
&'env self,
arg0: impl Into<Option<&'env ContextMenu>>,
arg1: impl Into<Option<&'env View>>,
arg2: impl Into<Option<&'env ContextMenu_ContextMenuInfo>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env ContextMenu>>,
arg1: impl Into<Option<&'env View>>,
arg2: impl Into<Option<&'env ContextMenu_ContextMenuInfo>>
) -> Result<()>
Required features: "android-view-ContextMenu", "android-view-ContextMenu_ContextMenuInfo", "android-view-View"
pub fn register_for_context_menu<'env>(
&'env self,
arg0: impl Into<Option<&'env View>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env View>>
) -> Result<()>
Required features: "android-view-View"
pub fn unregister_for_context_menu<'env>(
&'env self,
arg0: impl Into<Option<&'env View>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env View>>
) -> Result<()>
Required features: "android-view-View"
pub fn open_context_menu<'env>(
&'env self,
arg0: impl Into<Option<&'env View>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env View>>
) -> Result<()>
Required features: "android-view-View"
pub fn on_context_item_selected<'env>(
&'env self,
arg0: impl Into<Option<&'env MenuItem>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env MenuItem>>
) -> Result<bool>
Required features: "android-view-MenuItem"
pub fn on_context_menu_closed<'env>(
&'env self,
arg0: impl Into<Option<&'env Menu>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Menu>>
) -> Result<()>
Required features: "android-view-Menu"
pub fn on_search_requested_search_event<'env>(
&'env self,
arg0: impl Into<Option<&'env SearchEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env SearchEvent>>
) -> Result<bool>
Required features: "android-view-SearchEvent"
pub fn on_search_requested<'env>(&'env self) -> Result<bool>[src]
pub fn get_search_event<'env>(
&'env self
) -> Result<Option<Local<'env, SearchEvent>>>[src]
&'env self
) -> Result<Option<Local<'env, SearchEvent>>>
Required features: "android-view-SearchEvent"
pub fn on_window_starting_action_mode_callback<'env>(
&'env self,
arg0: impl Into<Option<&'env ActionMode_Callback>>
) -> Result<Option<Local<'env, ActionMode>>>[src]
&'env self,
arg0: impl Into<Option<&'env ActionMode_Callback>>
) -> Result<Option<Local<'env, ActionMode>>>
Required features: "android-view-ActionMode", "android-view-ActionMode_Callback"
pub fn on_window_starting_action_mode_callback_int<'env>(
&'env self,
arg0: impl Into<Option<&'env ActionMode_Callback>>,
arg1: i32
) -> Result<Option<Local<'env, ActionMode>>>[src]
&'env self,
arg0: impl Into<Option<&'env ActionMode_Callback>>,
arg1: i32
) -> Result<Option<Local<'env, ActionMode>>>
Required features: "android-view-ActionMode", "android-view-ActionMode_Callback"
pub fn on_action_mode_started<'env>(
&'env self,
arg0: impl Into<Option<&'env ActionMode>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env ActionMode>>
) -> Result<()>
Required features: "android-view-ActionMode"
pub fn on_action_mode_finished<'env>(
&'env self,
arg0: impl Into<Option<&'env ActionMode>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env ActionMode>>
) -> Result<()>
Required features: "android-view-ActionMode"
pub fn take_key_events<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub fn request_window_feature<'env>(&'env self, arg0: i32) -> Result<bool>[src]
pub fn set_feature_drawable_resource<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<()>
pub fn set_feature_drawable_uri<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Uri>>
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Uri>>
) -> Result<()>
Required features: "android-net-Uri"
pub fn set_feature_drawable<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Drawable>>
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Drawable>>
) -> Result<()>
Required features: "android-graphics-drawable-Drawable"
pub fn set_feature_drawable_alpha<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<()>
pub fn get_layout_inflater<'env>(
&'env self
) -> Result<Option<Local<'env, LayoutInflater>>>[src]
&'env self
) -> Result<Option<Local<'env, LayoutInflater>>>
Required features: "android-view-LayoutInflater"
pub fn set_cancelable<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub fn set_canceled_on_touch_outside<'env>(&'env self, arg0: bool) -> Result<()>[src]
pub fn cancel<'env>(&'env self) -> Result<()>[src]
pub fn set_on_cancel_listener<'env>(
&'env self,
arg0: impl Into<Option<&'env DialogInterface_OnCancelListener>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env DialogInterface_OnCancelListener>>
) -> Result<()>
Required features: "android-content-DialogInterface_OnCancelListener"
pub fn set_cancel_message<'env>(
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<()>
Required features: "android-os-Message"
pub fn set_on_dismiss_listener<'env>(
&'env self,
arg0: impl Into<Option<&'env DialogInterface_OnDismissListener>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env DialogInterface_OnDismissListener>>
) -> Result<()>
Required features: "android-content-DialogInterface_OnDismissListener"
pub fn set_on_show_listener<'env>(
&'env self,
arg0: impl Into<Option<&'env DialogInterface_OnShowListener>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env DialogInterface_OnShowListener>>
) -> Result<()>
Required features: "android-content-DialogInterface_OnShowListener"
pub fn set_dismiss_message<'env>(
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<()>
Required features: "android-os-Message"
pub fn set_volume_control_stream<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn get_volume_control_stream<'env>(&'env self) -> Result<i32>[src]
pub fn set_on_key_listener<'env>(
&'env self,
arg0: impl Into<Option<&'env DialogInterface_OnKeyListener>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env DialogInterface_OnKeyListener>>
) -> Result<()>
Required features: "android-content-DialogInterface_OnKeyListener"
Methods from Deref<Target = Object>
pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]
Required features: "java-lang-Class"
pub fn hash_code<'env>(&'env self) -> Result<i32>[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<()>[src]
pub fn notify_all<'env>(&'env self) -> Result<()>[src]
pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]
pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]
pub fn wait<'env>(&'env self) -> Result<()>[src]
Trait Implementations
impl AsRef<DialogInterface> for Dialog
fn as_ref(&self) -> &DialogInterface
impl AsRef<Window_Callback> for Dialog
fn as_ref(&self) -> &Window_Callback
impl AsRef<KeyEvent_Callback> for Dialog
fn as_ref(&self) -> &KeyEvent_Callback
impl AsRef<View_OnCreateContextMenuListener> for Dialog
fn as_ref(&self) -> &View_OnCreateContextMenuListener
impl Deref for Dialog
impl AsValidJObjectAndEnv for Dialog
impl AsJValue for Dialog
Auto Trait Implementations
impl !Sync for Dialog
impl Unpin for Dialog
impl !Send for Dialog
impl UnwindSafe for Dialog
impl RefUnwindSafe for Dialog
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,