Struct xloop_android::android::app::Activity

source ·
pub struct Activity { /* private fields */ }

Implementations§

source§

impl Activity

source

pub const DEFAULT_KEYS_DIALER: i32 = 1i32

source

pub const DEFAULT_KEYS_DISABLE: i32 = 0i32

source

pub const DEFAULT_KEYS_SEARCH_GLOBAL: i32 = 4i32

source

pub const DEFAULT_KEYS_SEARCH_LOCAL: i32 = 3i32

source

pub const DEFAULT_KEYS_SHORTCUT: i32 = 2i32

source

pub const RESULT_CANCELED: i32 = 0i32

source

pub const RESULT_FIRST_USER: i32 = 1i32

source

pub const RESULT_OK: i32 = -1i32

source§

impl Activity

source

pub fn get_intent<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn set_intent<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()>

source

pub fn set_locus_context<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a Bundle, ) -> Option<()>

source

pub fn get_application<'a>(&'a self, env: &'a JEnv) -> Option<&'a Application>

source

pub fn is_child<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn get_parent<'a>(&'a self, env: &'a JEnv) -> Option<&'a Activity>

source

pub fn get_window_manager<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_window<'a>(&'a self, env: &'a JEnv) -> Option<&'a Window>

source

pub fn get_loader_manager<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_current_focus<'a>(&'a self, env: &'a JEnv) -> Option<&'a View>

source

pub fn attach_base_context<'a>( &'a self, env: &'a JEnv, arg0: &'a Context, ) -> Option<()>

source

pub fn register_activity_lifecycle_callbacks<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn unregister_activity_lifecycle_callbacks<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn register_component_callbacks<'a>( &'a self, env: &'a JEnv, arg0: &'a ComponentCallbacksObject, ) -> Option<()>

source

pub fn unregister_component_callbacks<'a>( &'a self, env: &'a JEnv, arg0: &'a ComponentCallbacksObject, ) -> Option<()>

source

pub fn on_create<'a>(&'a self, env: &'a JEnv, arg0: &'a Bundle) -> Option<()>

source

pub fn get_splash_screen<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn on_create_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, arg1: &'a JObject, ) -> Option<()>

source

pub fn on_restore_instance_state<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, ) -> Option<()>

source

pub fn on_restore_instance_state_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, arg1: &'a JObject, ) -> Option<()>

source

pub fn on_post_create<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, ) -> Option<()>

source

pub fn on_post_create_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, arg1: &'a JObject, ) -> Option<()>

source

pub fn on_start<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_restart<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_state_not_saved<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_resume<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_post_resume<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_top_resumed_activity_changed<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn is_voice_interaction<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn is_voice_interaction_root<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn get_voice_interactor<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn is_local_voice_interaction_supported<'a>( &'a self, env: &'a JEnv, ) -> Option<JBool>

source

pub fn start_local_voice_interaction<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, ) -> Option<()>

source

pub fn on_local_voice_interaction_started<'a>( &'a self, env: &'a JEnv, ) -> Option<()>

source

pub fn on_local_voice_interaction_stopped<'a>( &'a self, env: &'a JEnv, ) -> Option<()>

source

pub fn stop_local_voice_interaction<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_new_intent<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn on_save_instance_state<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, ) -> Option<()>

source

pub fn on_save_instance_state_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, arg1: &'a JObject, ) -> Option<()>

source

pub fn on_pause<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_user_leave_hint<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_create_thumbnail<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<JBool>

source

pub fn on_create_description<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn on_provide_assist_data<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, ) -> Option<()>

source

pub fn on_provide_assist_content<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn on_get_direct_actions<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<()>

source

pub fn on_perform_direct_action<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a Bundle, arg2: &'a JObject, arg3: &'a JObject, ) -> Option<()>

source

pub fn request_show_keyboard_shortcuts<'a>( &'a self, env: &'a JEnv, ) -> Option<()>

source

pub fn dismiss_keyboard_shortcuts_helper<'a>( &'a self, env: &'a JEnv, ) -> Option<()>

source

pub fn on_provide_keyboard_shortcuts<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, ) -> Option<()>

source

pub fn show_assist<'a>( &'a self, env: &'a JEnv, arg0: &'a Bundle, ) -> Option<JBool>

source

pub fn on_stop<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_destroy<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn report_fully_drawn<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_multi_window_mode_changed<'a>( &'a self, env: &'a JEnv, arg0: JBool, arg1: &'a Configuration, ) -> Option<()>

source

pub fn on_multi_window_mode_changed_v2<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn is_in_multi_window_mode<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn on_picture_in_picture_mode_changed<'a>( &'a self, env: &'a JEnv, arg0: JBool, arg1: &'a Configuration, ) -> Option<()>

source

pub fn on_picture_in_picture_ui_state_changed<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn on_picture_in_picture_mode_changed_v2<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn is_in_picture_in_picture_mode<'a>( &'a self, env: &'a JEnv, ) -> Option<JBool>

source

pub fn enter_picture_in_picture_mode<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn enter_picture_in_picture_mode_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn set_picture_in_picture_params<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn get_max_num_picture_in_picture_actions<'a>( &'a self, env: &'a JEnv, ) -> Option<JInt>

source

pub fn on_picture_in_picture_requested<'a>( &'a self, env: &'a JEnv, ) -> Option<JBool>

source

pub fn set_should_dock_big_overlays<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn should_dock_big_overlays<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn on_configuration_changed<'a>( &'a self, env: &'a JEnv, arg0: &'a Configuration, ) -> Option<()>

source

pub fn get_changing_configurations<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_last_non_configuration_instance<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn on_retain_non_configuration_instance<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn on_low_memory<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_trim_memory<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn get_fragment_manager<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn on_attach_fragment<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn managed_query<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JArrayObject<JString>, arg2: &'a JString, arg3: &'a JArrayObject<JString>, arg4: &'a JString, ) -> Option<&'a JObject>

source

pub fn start_managing_cursor<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn stop_managing_cursor<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn find_view_by_id<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<&'a View>

source

pub fn require_view_by_id<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<&'a View>

source

pub fn get_action_bar<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn set_action_bar<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn set_content_view<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn set_content_view_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a View, ) -> Option<()>

source

pub fn set_content_view_v3<'a>( &'a self, env: &'a JEnv, arg0: &'a View, arg1: &'a JObject, ) -> Option<()>

source

pub fn add_content_view<'a>( &'a self, env: &'a JEnv, arg0: &'a View, arg1: &'a JObject, ) -> Option<()>

source

pub fn get_content_transition_manager<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn set_content_transition_manager<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn get_content_scene<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn set_finish_on_touch_outside<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn set_default_key_mode<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<()>

source

pub fn on_key_down<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a KeyEvent, ) -> Option<JBool>

source

pub fn on_key_long_press<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a KeyEvent, ) -> Option<JBool>

source

pub fn on_key_up<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a KeyEvent, ) -> Option<JBool>

source

pub fn on_key_multiple<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: &'a KeyEvent, ) -> Option<JBool>

source

pub fn on_back_pressed<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_key_shortcut<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a KeyEvent, ) -> Option<JBool>

source

pub fn on_touch_event<'a>( &'a self, env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<JBool>

source

pub fn on_trackball_event<'a>( &'a self, env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<JBool>

source

pub fn on_generic_motion_event<'a>( &'a self, env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<JBool>

source

pub fn on_user_interaction<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_window_attributes_changed<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn on_content_changed<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_window_focus_changed<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn on_attached_to_window<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_detached_from_window<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn has_window_focus<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn dispatch_key_event<'a>( &'a self, env: &'a JEnv, arg0: &'a KeyEvent, ) -> Option<JBool>

source

pub fn dispatch_key_shortcut_event<'a>( &'a self, env: &'a JEnv, arg0: &'a KeyEvent, ) -> Option<JBool>

source

pub fn dispatch_touch_event<'a>( &'a self, env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<JBool>

source

pub fn dispatch_trackball_event<'a>( &'a self, env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<JBool>

source

pub fn dispatch_generic_motion_event<'a>( &'a self, env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<JBool>

source

pub fn dispatch_populate_accessibility_event<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn on_create_panel_view<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<&'a View>

source

pub fn on_create_panel_menu<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<JBool>

source

pub fn on_prepare_panel<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a View, arg2: &'a JObject, ) -> Option<JBool>

source

pub fn on_menu_opened<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<JBool>

source

pub fn on_menu_item_selected<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<JBool>

source

pub fn on_panel_closed<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>

source

pub fn invalidate_options_menu<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_create_options_menu<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn on_prepare_options_menu<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn on_options_item_selected<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn on_navigate_up<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn on_navigate_up_from_child<'a>( &'a self, env: &'a JEnv, arg0: &'a Activity, ) -> Option<JBool>

source

pub fn on_create_navigate_up_task_stack<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn on_prepare_navigate_up_task_stack<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn on_options_menu_closed<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn open_options_menu<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn close_options_menu<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_create_context_menu<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a View, arg2: &'a JObject, ) -> Option<()>

source

pub fn register_for_context_menu<'a>( &'a self, env: &'a JEnv, arg0: &'a View, ) -> Option<()>

source

pub fn unregister_for_context_menu<'a>( &'a self, env: &'a JEnv, arg0: &'a View, ) -> Option<()>

source

pub fn open_context_menu<'a>( &'a self, env: &'a JEnv, arg0: &'a View, ) -> Option<()>

source

pub fn close_context_menu<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_context_item_selected<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn on_context_menu_closed<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn on_create_dialog<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<&'a JObject>

source

pub fn on_create_dialog_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a Bundle, ) -> Option<&'a JObject>

source

pub fn on_prepare_dialog<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>

source

pub fn on_prepare_dialog_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, arg2: &'a Bundle, ) -> Option<()>

source

pub fn show_dialog<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn show_dialog_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a Bundle, ) -> Option<JBool>

source

pub fn dismiss_dialog<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn remove_dialog<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn on_search_requested<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn on_search_requested_v2<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn get_search_event<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn take_key_events<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()>

source

pub fn request_window_feature<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JBool>

source

pub fn set_feature_drawable_resource<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<()>

source

pub fn set_feature_drawable_uri<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>

source

pub fn set_feature_drawable<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>

source

pub fn set_feature_drawable_alpha<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<()>

source

pub fn get_layout_inflater<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_menu_inflater<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn set_theme<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn on_apply_theme_resource<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JBool, ) -> Option<()>

source

pub fn request_permissions<'a>( &'a self, env: &'a JEnv, arg0: &'a JArrayObject<JString>, arg1: JInt, ) -> Option<()>

source

pub fn on_request_permissions_result<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JArrayObject<JString>, arg2: &'a JArrayPrim<JInt>, ) -> Option<()>

source

pub fn should_show_request_permission_rationale<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JBool>

source

pub fn start_activity_for_result<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<()>

source

pub fn start_activity_for_result_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a Bundle, ) -> Option<()>

source

pub fn is_activity_transition_running<'a>( &'a self, env: &'a JEnv, ) -> Option<JBool>

source

pub fn start_intent_sender_for_result<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JObject, arg3: JInt, arg4: JInt, arg5: JInt, ) -> Option<()>

source

pub fn start_intent_sender_for_result_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JObject, arg3: JInt, arg4: JInt, arg5: JInt, arg6: &'a Bundle, ) -> Option<()>

source

pub fn start_activity<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn start_activity_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a Bundle, ) -> Option<()>

source

pub fn start_activities<'a>( &'a self, env: &'a JEnv, arg0: &'a JArrayObject<JObject>, ) -> Option<()>

source

pub fn start_activities_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JArrayObject<JObject>, arg1: &'a Bundle, ) -> Option<()>

source

pub fn start_intent_sender<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, arg3: JInt, arg4: JInt, ) -> Option<()>

source

pub fn start_intent_sender_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, arg3: JInt, arg4: JInt, arg5: &'a Bundle, ) -> Option<()>

source

pub fn start_activity_if_needed<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<JBool>

source

pub fn start_activity_if_needed_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a Bundle, ) -> Option<JBool>

source

pub fn start_next_matching_activity<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn start_next_matching_activity_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a Bundle, ) -> Option<JBool>

source

pub fn start_activity_from_child<'a>( &'a self, env: &'a JEnv, arg0: &'a Activity, arg1: &'a JObject, arg2: JInt, ) -> Option<()>

source

pub fn start_activity_from_child_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a Activity, arg1: &'a JObject, arg2: JInt, arg3: &'a Bundle, ) -> Option<()>

source

pub fn start_activity_from_fragment<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, ) -> Option<()>

source

pub fn start_activity_from_fragment_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, arg3: &'a Bundle, ) -> Option<()>

source

pub fn start_intent_sender_from_child<'a>( &'a self, env: &'a JEnv, arg0: &'a Activity, arg1: &'a JObject, arg2: JInt, arg3: &'a JObject, arg4: JInt, arg5: JInt, arg6: JInt, ) -> Option<()>

source

pub fn start_intent_sender_from_child_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a Activity, arg1: &'a JObject, arg2: JInt, arg3: &'a JObject, arg4: JInt, arg5: JInt, arg6: JInt, arg7: &'a Bundle, ) -> Option<()>

source

pub fn override_pending_transition<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<()>

source

pub fn override_pending_transition_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, ) -> Option<()>

source

pub fn set_result<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn set_result_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>

source

pub fn get_referrer<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn on_provide_referrer<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_calling_package<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_calling_activity<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn set_visible<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()>

source

pub fn is_finishing<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn is_destroyed<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn is_changing_configurations<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn recreate<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn finish<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn finish_affinity<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn finish_from_child<'a>( &'a self, env: &'a JEnv, arg0: &'a Activity, ) -> Option<()>

source

pub fn finish_after_transition<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn finish_activity<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn finish_activity_from_child<'a>( &'a self, env: &'a JEnv, arg0: &'a Activity, arg1: JInt, ) -> Option<()>

source

pub fn finish_and_remove_task<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn release_instance<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn on_activity_result<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: &'a JObject, ) -> Option<()>

source

pub fn on_activity_reenter<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>

source

pub fn create_pending_result<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, arg2: JInt, ) -> Option<&'a JObject>

source

pub fn set_requested_orientation<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<()>

source

pub fn get_requested_orientation<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_task_id<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn is_task_root<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn move_task_to_back<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<JBool>

source

pub fn get_local_class_name<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_component_name<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_preferences<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<&'a JObject>

source

pub fn is_launched_from_bubble<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn get_system_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn set_title<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()>

source

pub fn set_title_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn set_title_color<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn get_title<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_title_color<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn on_title_changed<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<()>

source

pub fn on_child_title_changed<'a>( &'a self, env: &'a JEnv, arg0: &'a Activity, arg1: &'a JObject, ) -> Option<()>

source

pub fn set_task_description<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn set_progress_bar_visibility<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn set_progress_bar_indeterminate_visibility<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn set_progress_bar_indeterminate<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn set_progress<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn set_secondary_progress<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<()>

source

pub fn set_volume_control_stream<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<()>

source

pub fn get_volume_control_stream<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn set_media_controller<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn get_media_controller<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn run_on_ui_thread<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn on_create_view<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a Context, arg2: &'a JObject, ) -> Option<&'a View>

source

pub fn on_create_view_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a View, arg1: &'a JString, arg2: &'a Context, arg3: &'a JObject, ) -> Option<&'a View>

source

pub fn dump<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JObject, arg2: &'a JObject, arg3: &'a JArrayObject<JString>, ) -> Option<()>

source

pub fn is_immersive<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn set_translucent<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<JBool>

source

pub fn request_visible_behind<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<JBool>

source

pub fn on_visible_behind_canceled<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn on_enter_animation_complete<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn set_immersive<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()>

source

pub fn set_vr_mode_enabled<'a>( &'a self, env: &'a JEnv, arg0: JBool, arg1: &'a JObject, ) -> Option<()>

source

pub fn start_action_mode<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JObject>

source

pub fn start_action_mode_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<&'a JObject>

source

pub fn on_window_starting_action_mode<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JObject>

source

pub fn on_window_starting_action_mode_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<&'a JObject>

source

pub fn on_action_mode_started<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn on_action_mode_finished<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn should_up_recreate_task<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn navigate_up_to<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn navigate_up_to_from_child<'a>( &'a self, env: &'a JEnv, arg0: &'a Activity, arg1: &'a JObject, ) -> Option<JBool>

source

pub fn get_parent_activity_intent<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn set_enter_shared_element_callback<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn set_exit_shared_element_callback<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn postpone_enter_transition<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn start_postponed_enter_transition<'a>( &'a self, env: &'a JEnv, ) -> Option<()>

source

pub fn request_drag_and_drop_permissions<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JObject>

source

pub fn start_lock_task<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn stop_lock_task<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn show_lock_task_escape_message<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn set_recents_screenshot_enabled<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn set_show_when_locked<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn set_inherit_show_when_locked<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn set_turn_screen_on<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source

pub fn get_on_back_invoked_dispatcher<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

Methods from Deref<Target = ContextWrapper>§

source

pub fn attach_base_context<'a>( &'a self, env: &'a JEnv, arg0: &'a Context, ) -> Option<()>

source

pub fn get_base_context<'a>(&'a self, env: &'a JEnv) -> Option<&'a Context>

source

pub fn get_assets<'a>(&'a self, env: &'a JEnv) -> Option<&'a AssetManager>

source

pub fn get_resources<'a>(&'a self, env: &'a JEnv) -> Option<&'a Resources>

source

pub fn get_package_manager<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_content_resolver<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_main_looper<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_main_executor<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_application_context<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a Context>

source

pub fn set_theme<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn get_theme<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_class_loader<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_package_name<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_op_package_name<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_attribution_tag<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_params<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_application_info<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_package_resource_path<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JString>

source

pub fn get_package_code_path<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_shared_preferences<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, ) -> Option<&'a JObject>

source

pub fn move_shared_preferences_from<'a>( &'a self, env: &'a JEnv, arg0: &'a Context, arg1: &'a JString, ) -> Option<JBool>

source

pub fn delete_shared_preferences<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JBool>

source

pub fn open_file_input<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn open_file_output<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, ) -> Option<&'a JObject>

source

pub fn delete_file<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JBool>

source

pub fn get_file_stream_path<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn file_list<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JString>>

source

pub fn get_data_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_files_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_no_backup_files_dir<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn get_external_files_dir<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn get_external_files_dirs<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JArrayObject<JObject>>

source

pub fn get_obb_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_obb_dirs<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JObject>>

source

pub fn get_cache_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_code_cache_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_external_cache_dir<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn get_external_cache_dirs<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JObject>>

source

pub fn get_external_media_dirs<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JObject>>

source

pub fn get_dir<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, ) -> Option<&'a JObject>

source

pub fn open_or_create_database<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, arg2: &'a JObject, ) -> Option<&'a JObject>

source

pub fn open_or_create_database_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, arg2: &'a JObject, arg3: &'a JObject, ) -> Option<&'a JObject>

source

pub fn move_database_from<'a>( &'a self, env: &'a JEnv, arg0: &'a Context, arg1: &'a JString, ) -> Option<JBool>

source

pub fn delete_database<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JBool>

source

pub fn get_database_path<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn database_list<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JString>>

source

pub fn get_wallpaper<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn peek_wallpaper<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_wallpaper_desired_minimum_width<'a>( &'a self, env: &'a JEnv, ) -> Option<JInt>

source

pub fn get_wallpaper_desired_minimum_height<'a>( &'a self, env: &'a JEnv, ) -> Option<JInt>

source

pub fn set_wallpaper<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn set_wallpaper_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn clear_wallpaper<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn start_activity<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn start_activity_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a Bundle, ) -> Option<()>

source

pub fn start_activities<'a>( &'a self, env: &'a JEnv, arg0: &'a JArrayObject<JObject>, ) -> Option<()>

source

pub fn start_activities_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JArrayObject<JObject>, arg1: &'a Bundle, ) -> Option<()>

source

pub fn start_intent_sender<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, arg3: JInt, arg4: JInt, ) -> Option<()>

source

pub fn start_intent_sender_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, arg3: JInt, arg4: JInt, arg5: &'a Bundle, ) -> Option<()>

source

pub fn send_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn send_broadcast_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, ) -> Option<()>

source

pub fn send_ordered_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, ) -> Option<()>

source

pub fn send_ordered_broadcast_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a JObject, arg3: &'a JObject, arg4: JInt, arg5: &'a JString, arg6: &'a Bundle, ) -> Option<()>

source

pub fn send_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<()>

source

pub fn send_broadcast_as_user_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JString, ) -> Option<()>

source

pub fn send_ordered_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JString, arg3: &'a JObject, arg4: &'a JObject, arg5: JInt, arg6: &'a JString, arg7: &'a Bundle, ) -> Option<()>

source

pub fn send_ordered_broadcast_v3<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a JString, arg3: &'a JObject, arg4: &'a JObject, arg5: JInt, arg6: &'a JString, arg7: &'a Bundle, ) -> Option<()>

source

pub fn send_ordered_broadcast_v4<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JString, arg3: &'a JString, arg4: &'a JObject, arg5: &'a JObject, arg6: &'a JString, arg7: &'a Bundle, arg8: &'a Bundle, ) -> Option<()>

source

pub fn send_sticky_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn send_sticky_broadcast_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a Bundle, ) -> Option<()>

source

pub fn send_sticky_ordered_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JObject, arg3: JInt, arg4: &'a JString, arg5: &'a Bundle, ) -> Option<()>

source

pub fn remove_sticky_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn send_sticky_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<()>

source

pub fn send_sticky_ordered_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JObject, arg3: &'a JObject, arg4: JInt, arg5: &'a JString, arg6: &'a Bundle, ) -> Option<()>

source

pub fn remove_sticky_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<()>

source

pub fn register_receiver<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<&'a JObject>

source

pub fn register_receiver_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, ) -> Option<&'a JObject>

source

pub fn register_receiver_v3<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JString, arg3: &'a JObject, ) -> Option<&'a JObject>

source

pub fn register_receiver_v4<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JString, arg3: &'a JObject, arg4: JInt, ) -> Option<&'a JObject>

source

pub fn unregister_receiver<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn start_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JObject>

source

pub fn start_foreground_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JObject>

source

pub fn stop_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn bind_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, ) -> Option<JBool>

source

pub fn bind_service_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JObject, arg3: &'a JObject, ) -> Option<JBool>

source

pub fn bind_isolated_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JString, arg3: &'a JObject, arg4: &'a JObject, ) -> Option<JBool>

source

pub fn bind_service_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, arg3: &'a JObject, ) -> Option<JBool>

source

pub fn update_service_group<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JInt, ) -> Option<()>

source

pub fn unbind_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn start_instrumentation<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a Bundle, ) -> Option<JBool>

source

pub fn get_system_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn get_system_service_name<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JString>

source

pub fn check_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, arg2: JInt, ) -> Option<JInt>

source

pub fn check_calling_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JInt>

source

pub fn check_calling_or_self_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JInt>

source

pub fn check_self_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JInt>

source

pub fn enforce_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, arg2: JInt, arg3: &'a JString, ) -> Option<()>

source

pub fn enforce_calling_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JString, ) -> Option<()>

source

pub fn enforce_calling_or_self_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JString, ) -> Option<()>

source

pub fn grant_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JObject, arg2: JInt, ) -> Option<()>

source

pub fn revoke_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<()>

source

pub fn revoke_uri_permission_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JObject, arg2: JInt, ) -> Option<()>

source

pub fn check_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JInt, arg3: JInt, ) -> Option<JInt>

source

pub fn check_uri_permissions<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JInt, arg3: JInt, ) -> Option<&'a JArrayPrim<JInt>>

source

pub fn check_calling_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<JInt>

source

pub fn check_calling_uri_permissions<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<&'a JArrayPrim<JInt>>

source

pub fn check_calling_or_self_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<JInt>

source

pub fn check_calling_or_self_uri_permissions<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<&'a JArrayPrim<JInt>>

source

pub fn check_uri_permission_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a JString, arg3: JInt, arg4: JInt, arg5: JInt, ) -> Option<JInt>

source

pub fn enforce_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JInt, arg3: JInt, arg4: &'a JString, ) -> Option<()>

source

pub fn enforce_calling_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JString, ) -> Option<()>

source

pub fn enforce_calling_or_self_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JString, ) -> Option<()>

source

pub fn enforce_uri_permission_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a JString, arg3: JInt, arg4: JInt, arg5: JInt, arg6: &'a JString, ) -> Option<()>

source

pub fn revoke_self_permissions_on_kill<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn create_package_context<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, ) -> Option<&'a Context>

source

pub fn create_context_for_split<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a Context>

source

pub fn create_configuration_context<'a>( &'a self, env: &'a JEnv, arg0: &'a Configuration, ) -> Option<&'a Context>

source

pub fn create_display_context<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a Context>

source

pub fn create_window_context<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a Bundle, ) -> Option<&'a Context>

source

pub fn create_window_context_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a Bundle, ) -> Option<&'a Context>

source

pub fn create_context<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a Context>

source

pub fn create_attribution_context<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a Context>

source

pub fn get_attribution_source<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn is_restricted<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn get_display<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn create_device_protected_storage_context<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a Context>

source

pub fn is_device_protected_storage<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn is_ui_context<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn register_component_callbacks<'a>( &'a self, env: &'a JEnv, arg0: &'a ComponentCallbacksObject, ) -> Option<()>

source

pub fn unregister_component_callbacks<'a>( &'a self, env: &'a JEnv, arg0: &'a ComponentCallbacksObject, ) -> Option<()>

Methods from Deref<Target = Context>§

source

pub const ACCESSIBILITY_SERVICE: &'static str = "accessibility"

source

pub const ACCOUNT_SERVICE: &'static str = "account"

source

pub const ACTIVITY_SERVICE: &'static str = "activity"

source

pub const ALARM_SERVICE: &'static str = "alarm"

source

pub const APPWIDGET_SERVICE: &'static str = "appwidget"

source

pub const APP_OPS_SERVICE: &'static str = "appops"

source

pub const APP_SEARCH_SERVICE: &'static str = "app_search"

source

pub const AUDIO_SERVICE: &'static str = "audio"

source

pub const BATTERY_SERVICE: &'static str = "batterymanager"

source

pub const BIND_ABOVE_CLIENT: i32 = 8i32

source

pub const BIND_ADJUST_WITH_ACTIVITY: i32 = 128i32

source

pub const BIND_ALLOW_OOM_MANAGEMENT: i32 = 16i32

source

pub const BIND_AUTO_CREATE: i32 = 1i32

source

pub const BIND_DEBUG_UNBIND: i32 = 2i32

source

pub const BIND_EXTERNAL_SERVICE: i32 = -2_147_483_648i32

source

pub const BIND_IMPORTANT: i32 = 64i32

source

pub const BIND_INCLUDE_CAPABILITIES: i32 = 4_096i32

source

pub const BIND_NOT_FOREGROUND: i32 = 4i32

source

pub const BIND_NOT_PERCEPTIBLE: i32 = 256i32

source

pub const BIND_WAIVE_PRIORITY: i32 = 32i32

source

pub const BIOMETRIC_SERVICE: &'static str = "biometric"

source

pub const BLOB_STORE_SERVICE: &'static str = "blob_store"

source

pub const BLUETOOTH_SERVICE: &'static str = "bluetooth"

source

pub const BUGREPORT_SERVICE: &'static str = "bugreport"

source

pub const CAMERA_SERVICE: &'static str = "camera"

source

pub const CAPTIONING_SERVICE: &'static str = "captioning"

source

pub const CARRIER_CONFIG_SERVICE: &'static str = "carrier_config"

source

pub const CLIPBOARD_SERVICE: &'static str = "clipboard"

source

pub const COMPANION_DEVICE_SERVICE: &'static str = "companiondevice"

source

pub const CONNECTIVITY_DIAGNOSTICS_SERVICE: &'static str = "connectivity_diagnostics"

source

pub const CONNECTIVITY_SERVICE: &'static str = "connectivity"

source

pub const CONSUMER_IR_SERVICE: &'static str = "consumer_ir"

source

pub const CONTEXT_IGNORE_SECURITY: i32 = 2i32

source

pub const CONTEXT_INCLUDE_CODE: i32 = 1i32

source

pub const CONTEXT_RESTRICTED: i32 = 4i32

source

pub const CROSS_PROFILE_APPS_SERVICE: &'static str = "crossprofileapps"

source

pub const DEVICE_POLICY_SERVICE: &'static str = "device_policy"

source

pub const DISPLAY_HASH_SERVICE: &'static str = "display_hash"

source

pub const DISPLAY_SERVICE: &'static str = "display"

source

pub const DOMAIN_VERIFICATION_SERVICE: &'static str = "domain_verification"

source

pub const DOWNLOAD_SERVICE: &'static str = "download"

source

pub const DROPBOX_SERVICE: &'static str = "dropbox"

source

pub const EUICC_SERVICE: &'static str = "euicc"

source

pub const FILE_INTEGRITY_SERVICE: &'static str = "file_integrity"

source

pub const FINGERPRINT_SERVICE: &'static str = "fingerprint"

source

pub const GAME_SERVICE: &'static str = "game"

source

pub const HARDWARE_PROPERTIES_SERVICE: &'static str = "hardware_properties"

source

pub const INPUT_METHOD_SERVICE: &'static str = "input_method"

source

pub const INPUT_SERVICE: &'static str = "input"

source

pub const IPSEC_SERVICE: &'static str = "ipsec"

source

pub const JOB_SCHEDULER_SERVICE: &'static str = "jobscheduler"

source

pub const KEYGUARD_SERVICE: &'static str = "keyguard"

source

pub const LAUNCHER_APPS_SERVICE: &'static str = "launcherapps"

source

pub const LAYOUT_INFLATER_SERVICE: &'static str = "layout_inflater"

source

pub const LOCALE_SERVICE: &'static str = "locale"

source

pub const LOCATION_SERVICE: &'static str = "location"

source

pub const MEDIA_COMMUNICATION_SERVICE: &'static str = "media_communication"

source

pub const MEDIA_METRICS_SERVICE: &'static str = "media_metrics"

source

pub const MEDIA_PROJECTION_SERVICE: &'static str = "media_projection"

source

pub const MEDIA_ROUTER_SERVICE: &'static str = "media_router"

source

pub const MEDIA_SESSION_SERVICE: &'static str = "media_session"

source

pub const MIDI_SERVICE: &'static str = "midi"

source

pub const MODE_APPEND: i32 = 32_768i32

source

pub const MODE_ENABLE_WRITE_AHEAD_LOGGING: i32 = 8i32

source

pub const MODE_MULTI_PROCESS: i32 = 4i32

source

pub const MODE_NO_LOCALIZED_COLLATORS: i32 = 16i32

source

pub const MODE_PRIVATE: i32 = 0i32

source

pub const MODE_WORLD_READABLE: i32 = 1i32

source

pub const MODE_WORLD_WRITEABLE: i32 = 2i32

source

pub const NETWORK_STATS_SERVICE: &'static str = "netstats"

source

pub const NFC_SERVICE: &'static str = "nfc"

source

pub const NOTIFICATION_SERVICE: &'static str = "notification"

source

pub const NSD_SERVICE: &'static str = "servicediscovery"

source

pub const PEOPLE_SERVICE: &'static str = "people"

source

pub const PERFORMANCE_HINT_SERVICE: &'static str = "performance_hint"

source

pub const POWER_SERVICE: &'static str = "power"

source

pub const PRINT_SERVICE: &'static str = "print"

source

pub const RECEIVER_EXPORTED: i32 = 2i32

source

pub const RECEIVER_NOT_EXPORTED: i32 = 4i32

source

pub const RECEIVER_VISIBLE_TO_INSTANT_APPS: i32 = 1i32

source

pub const RESTRICTIONS_SERVICE: &'static str = "restrictions"

source

pub const ROLE_SERVICE: &'static str = "role"

source

pub const SEARCH_SERVICE: &'static str = "search"

source

pub const SENSOR_SERVICE: &'static str = "sensor"

source

pub const SHORTCUT_SERVICE: &'static str = "shortcut"

source

pub const STATUS_BAR_SERVICE: &'static str = "statusbar"

source

pub const STORAGE_SERVICE: &'static str = "storage"

source

pub const STORAGE_STATS_SERVICE: &'static str = "storagestats"

source

pub const SYSTEM_HEALTH_SERVICE: &'static str = "systemhealth"

source

pub const TELECOM_SERVICE: &'static str = "telecom"

source

pub const TELEPHONY_IMS_SERVICE: &'static str = "telephony_ims"

source

pub const TELEPHONY_SERVICE: &'static str = "phone"

source

pub const TELEPHONY_SUBSCRIPTION_SERVICE: &'static str = "telephony_subscription_service"

source

pub const TEXT_CLASSIFICATION_SERVICE: &'static str = "textclassification"

source

pub const TEXT_SERVICES_MANAGER_SERVICE: &'static str = "textservices"

source

pub const TV_INPUT_SERVICE: &'static str = "tv_input"

source

pub const TV_INTERACTIVE_APP_SERVICE: &'static str = "tv_interactive_app"

source

pub const UI_MODE_SERVICE: &'static str = "uimode"

source

pub const USAGE_STATS_SERVICE: &'static str = "usagestats"

source

pub const USB_SERVICE: &'static str = "usb"

source

pub const USER_SERVICE: &'static str = "user"

source

pub const VIBRATOR_MANAGER_SERVICE: &'static str = "vibrator_manager"

source

pub const VIBRATOR_SERVICE: &'static str = "vibrator"

source

pub const VPN_MANAGEMENT_SERVICE: &'static str = "vpn_management"

source

pub const WALLPAPER_SERVICE: &'static str = "wallpaper"

source

pub const WIFI_AWARE_SERVICE: &'static str = "wifiaware"

source

pub const WIFI_P2_P_SERVICE: &'static str = "wifip2p"

source

pub const WIFI_RTT_RANGING_SERVICE: &'static str = "wifirtt"

source

pub const WIFI_SERVICE: &'static str = "wifi"

source

pub const WINDOW_SERVICE: &'static str = "window"

source

pub fn get_assets<'a>(&'a self, env: &'a JEnv) -> Option<&'a AssetManager>

source

pub fn get_resources<'a>(&'a self, env: &'a JEnv) -> Option<&'a Resources>

source

pub fn get_package_manager<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_content_resolver<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_main_looper<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_main_executor<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_application_context<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a Context>

source

pub fn register_component_callbacks<'a>( &'a self, env: &'a JEnv, arg0: &'a ComponentCallbacksObject, ) -> Option<()>

source

pub fn unregister_component_callbacks<'a>( &'a self, env: &'a JEnv, arg0: &'a ComponentCallbacksObject, ) -> Option<()>

source

pub fn get_text<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<&'a JObject>

source

pub fn get_string<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<&'a JString>

source

pub fn get_string_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JArrayObject<JObject>, ) -> Option<&'a JString>

source

pub fn get_color<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JInt>

source

pub fn get_drawable<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<&'a JObject>

source

pub fn get_color_state_list<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<&'a JObject>

source

pub fn set_theme<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn get_theme<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn obtain_styled_attributes<'a>( &'a self, env: &'a JEnv, arg0: &'a JArrayPrim<JInt>, ) -> Option<&'a JObject>

source

pub fn obtain_styled_attributes_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JArrayPrim<JInt>, ) -> Option<&'a JObject>

source

pub fn obtain_styled_attributes_v3<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JArrayPrim<JInt>, ) -> Option<&'a JObject>

source

pub fn obtain_styled_attributes_v4<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JArrayPrim<JInt>, arg2: JInt, arg3: JInt, ) -> Option<&'a JObject>

source

pub fn get_class_loader<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_package_name<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_op_package_name<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_attribution_tag<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_attribution_source<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn get_params<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_application_info<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_package_resource_path<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JString>

source

pub fn get_package_code_path<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn get_shared_preferences<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, ) -> Option<&'a JObject>

source

pub fn move_shared_preferences_from<'a>( &'a self, env: &'a JEnv, arg0: &'a Context, arg1: &'a JString, ) -> Option<JBool>

source

pub fn delete_shared_preferences<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JBool>

source

pub fn open_file_input<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn open_file_output<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, ) -> Option<&'a JObject>

source

pub fn delete_file<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JBool>

source

pub fn get_file_stream_path<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn get_data_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_files_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_no_backup_files_dir<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn get_external_files_dir<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn get_external_files_dirs<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JArrayObject<JObject>>

source

pub fn get_obb_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_obb_dirs<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JObject>>

source

pub fn get_cache_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_code_cache_dir<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_external_cache_dir<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JObject>

source

pub fn get_external_cache_dirs<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JObject>>

source

pub fn get_external_media_dirs<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JObject>>

source

pub fn file_list<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JString>>

source

pub fn get_dir<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, ) -> Option<&'a JObject>

source

pub fn open_or_create_database<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, arg2: &'a JObject, ) -> Option<&'a JObject>

source

pub fn open_or_create_database_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, arg2: &'a JObject, arg3: &'a JObject, ) -> Option<&'a JObject>

source

pub fn move_database_from<'a>( &'a self, env: &'a JEnv, arg0: &'a Context, arg1: &'a JString, ) -> Option<JBool>

source

pub fn delete_database<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JBool>

source

pub fn get_database_path<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn database_list<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a JArrayObject<JString>>

source

pub fn get_wallpaper<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn peek_wallpaper<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_wallpaper_desired_minimum_width<'a>( &'a self, env: &'a JEnv, ) -> Option<JInt>

source

pub fn get_wallpaper_desired_minimum_height<'a>( &'a self, env: &'a JEnv, ) -> Option<JInt>

source

pub fn set_wallpaper<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn set_wallpaper_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn clear_wallpaper<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn start_activity<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn start_activity_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a Bundle, ) -> Option<()>

source

pub fn start_activities<'a>( &'a self, env: &'a JEnv, arg0: &'a JArrayObject<JObject>, ) -> Option<()>

source

pub fn start_activities_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JArrayObject<JObject>, arg1: &'a Bundle, ) -> Option<()>

source

pub fn start_intent_sender<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, arg3: JInt, arg4: JInt, ) -> Option<()>

source

pub fn start_intent_sender_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, arg3: JInt, arg4: JInt, arg5: &'a Bundle, ) -> Option<()>

source

pub fn send_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn send_broadcast_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, ) -> Option<()>

source

pub fn send_broadcast_with_multiple_permissions<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JArrayObject<JString>, ) -> Option<()>

source

pub fn send_ordered_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, ) -> Option<()>

source

pub fn send_ordered_broadcast_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a JObject, arg3: &'a JObject, arg4: JInt, arg5: &'a JString, arg6: &'a Bundle, ) -> Option<()>

source

pub fn send_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<()>

source

pub fn send_broadcast_as_user_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JString, ) -> Option<()>

source

pub fn send_ordered_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JString, arg3: &'a JObject, arg4: &'a JObject, arg5: JInt, arg6: &'a JString, arg7: &'a Bundle, ) -> Option<()>

source

pub fn send_ordered_broadcast_v3<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a JString, arg3: &'a JObject, arg4: &'a JObject, arg5: JInt, arg6: &'a JString, arg7: &'a Bundle, ) -> Option<()>

source

pub fn send_sticky_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn send_sticky_broadcast_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a Bundle, ) -> Option<()>

source

pub fn send_sticky_ordered_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JObject, arg3: JInt, arg4: &'a JString, arg5: &'a Bundle, ) -> Option<()>

source

pub fn remove_sticky_broadcast<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn send_sticky_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<()>

source

pub fn send_sticky_ordered_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JObject, arg3: &'a JObject, arg4: JInt, arg5: &'a JString, arg6: &'a Bundle, ) -> Option<()>

source

pub fn remove_sticky_broadcast_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<()>

source

pub fn register_receiver<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<&'a JObject>

source

pub fn register_receiver_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, ) -> Option<&'a JObject>

source

pub fn register_receiver_v3<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JString, arg3: &'a JObject, ) -> Option<&'a JObject>

source

pub fn register_receiver_v4<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JString, arg3: &'a JObject, arg4: JInt, ) -> Option<&'a JObject>

source

pub fn unregister_receiver<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn start_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JObject>

source

pub fn start_foreground_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JObject>

source

pub fn stop_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source

pub fn bind_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, ) -> Option<JBool>

source

pub fn bind_service_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JObject, arg3: &'a JObject, ) -> Option<JBool>

source

pub fn bind_isolated_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JString, arg3: &'a JObject, arg4: &'a JObject, ) -> Option<JBool>

source

pub fn bind_service_as_user<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, arg3: &'a JObject, ) -> Option<JBool>

source

pub fn update_service_group<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JInt, ) -> Option<()>

source

pub fn unbind_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn start_instrumentation<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a Bundle, ) -> Option<JBool>

source

pub fn get_system_service<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a JObject>

source

pub fn get_system_service_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JObject>

source

pub fn get_system_service_name<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JString>

source

pub fn check_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, arg2: JInt, ) -> Option<JInt>

source

pub fn check_calling_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JInt>

source

pub fn check_calling_or_self_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JInt>

source

pub fn check_self_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<JInt>

source

pub fn enforce_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, arg2: JInt, arg3: &'a JString, ) -> Option<()>

source

pub fn enforce_calling_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JString, ) -> Option<()>

source

pub fn enforce_calling_or_self_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JString, ) -> Option<()>

source

pub fn grant_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JObject, arg2: JInt, ) -> Option<()>

source

pub fn revoke_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<()>

source

pub fn revoke_uri_permission_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JObject, arg2: JInt, ) -> Option<()>

source

pub fn check_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JInt, arg3: JInt, ) -> Option<JInt>

source

pub fn check_uri_permissions<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JInt, arg3: JInt, ) -> Option<&'a JArrayPrim<JInt>>

source

pub fn check_calling_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<JInt>

source

pub fn check_calling_uri_permissions<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<&'a JArrayPrim<JInt>>

source

pub fn check_calling_or_self_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<JInt>

source

pub fn check_calling_or_self_uri_permissions<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<&'a JArrayPrim<JInt>>

source

pub fn check_uri_permission_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a JString, arg3: JInt, arg4: JInt, arg5: JInt, ) -> Option<JInt>

source

pub fn enforce_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JInt, arg3: JInt, arg4: &'a JString, ) -> Option<()>

source

pub fn enforce_calling_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JString, ) -> Option<()>

source

pub fn enforce_calling_or_self_uri_permission<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a JString, ) -> Option<()>

source

pub fn enforce_uri_permission_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a JString, arg3: JInt, arg4: JInt, arg5: JInt, arg6: &'a JString, ) -> Option<()>

source

pub fn revoke_self_permission_on_kill<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<()>

source

pub fn revoke_self_permissions_on_kill<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source

pub fn create_package_context<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: JInt, ) -> Option<&'a Context>

source

pub fn create_context_for_split<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a Context>

source

pub fn create_configuration_context<'a>( &'a self, env: &'a JEnv, arg0: &'a Configuration, ) -> Option<&'a Context>

source

pub fn create_display_context<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a Context>

source

pub fn create_window_context<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a Bundle, ) -> Option<&'a Context>

source

pub fn create_window_context_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: &'a Bundle, ) -> Option<&'a Context>

source

pub fn create_context<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a Context>

source

pub fn create_attribution_context<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, ) -> Option<&'a Context>

source

pub fn create_device_protected_storage_context<'a>( &'a self, env: &'a JEnv, ) -> Option<&'a Context>

source

pub fn get_display<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn is_restricted<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn is_device_protected_storage<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source

pub fn is_ui_context<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

Methods from Deref<Target = JObject>§

source

pub fn as_sys(&self) -> *mut _jobject

source

pub fn cast<T>(&self, env: &JEnv) -> Option<&T>
where T: JPlainMarker,

source

pub unsafe fn cast_unchecked<T>(&self) -> Option<&T>
where T: JPlainMarker,

source

pub fn class(&self, env: &JEnv) -> Option<JClassID>

Trait Implementations§

source§

impl AsRef<Activity> for NativeActivity

source§

fn as_ref(&self) -> &Activity

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ComponentCallbacks2Object> for Activity

source§

fn as_ref(&self) -> &ComponentCallbacks2Object

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ComponentCallbacksObject> for Activity

source§

fn as_ref(&self) -> &ComponentCallbacksObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ContextThemeWrapper> for Activity

source§

fn as_ref(&self) -> &ContextThemeWrapper

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JObject> for Activity

source§

fn as_ref(&self) -> &JObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<KeyEventCallbackObject> for Activity

source§

fn as_ref(&self) -> &KeyEventCallbackObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<LayoutInflaterFactory2Object> for Activity

source§

fn as_ref(&self) -> &LayoutInflaterFactory2Object

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<LayoutInflaterFactoryObject> for Activity

source§

fn as_ref(&self) -> &LayoutInflaterFactoryObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ViewOnCreateContextMenuListenerObject> for Activity

source§

fn as_ref(&self) -> &ViewOnCreateContextMenuListenerObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<WindowCallbackObject> for Activity

source§

fn as_ref(&self) -> &WindowCallbackObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl ComponentCallbacks for Activity

source§

fn component_callbacks_class(env: Option<&JEnv>) -> Option<JClassID>

source§

fn on_configuration_changed<'a>( &'a self, env: &'a JEnv, arg0: &'a Configuration, ) -> Option<()>

source§

fn on_low_memory<'a>(&'a self, env: &'a JEnv) -> Option<()>

source§

impl ComponentCallbacks2 for Activity

source§

impl Deref for Activity

§

type Target = ContextThemeWrapper

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl JNameMaker for Activity

source§

const JAVA_PATH: &'static [u8] = b"android/app/Activity\0"

source§

fn java_path() -> Option<&'static str>

source§

impl JPlainMarker for Activity

source§

fn class(env: Option<&JEnv>) -> Option<JClassID>

source§

fn new_with<const N: usize>( env: &JEnv, method: JMethodID, args: impl AsJValueArray<N>, ) -> Option<&Self>

source§

fn instance_of(&self, class: JClassID, env: &JEnv) -> bool

source§

fn is_eq(&self, other: &Self, env: &JEnv) -> bool

source§

fn ref_type(&self, env: &JEnv) -> jobjectRefType

source§

fn local<'a, 'b>(&'a self, env: &'b JEnv) -> Option<JLocal<'a, Self>>
where 'b: 'a,

source§

fn weak(&self, env: &JEnv) -> Option<JWeak<Self>>

source§

fn global(&self, env: &JEnv) -> Option<JRc<Self>>

source§

impl KeyEventCallback for Activity

source§

fn key_event_callback_class(env: Option<&JEnv>) -> Option<JClassID>

source§

fn on_key_down<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a KeyEvent, ) -> Option<JBool>

source§

fn on_key_long_press<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a KeyEvent, ) -> Option<JBool>

source§

fn on_key_up<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a KeyEvent, ) -> Option<JBool>

source§

fn on_key_multiple<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: &'a KeyEvent, ) -> Option<JBool>

source§

impl LayoutInflaterFactory for Activity

source§

impl LayoutInflaterFactory2 for Activity

source§

impl ViewOnCreateContextMenuListener for Activity

source§

impl WindowCallback for Activity

source§

fn window_callback_class(env: Option<&JEnv>) -> Option<JClassID>

source§

fn dispatch_key_event<'a>( &'a self, env: &'a JEnv, arg0: &'a KeyEvent, ) -> Option<JBool>

source§

fn dispatch_key_shortcut_event<'a>( &'a self, env: &'a JEnv, arg0: &'a KeyEvent, ) -> Option<JBool>

source§

fn dispatch_touch_event<'a>( &'a self, env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<JBool>

source§

fn dispatch_trackball_event<'a>( &'a self, env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<JBool>

source§

fn dispatch_generic_motion_event<'a>( &'a self, env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<JBool>

source§

fn dispatch_populate_accessibility_event<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source§

fn on_create_panel_view<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<&'a View>

source§

fn on_create_panel_menu<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<JBool>

source§

fn on_prepare_panel<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a View, arg2: &'a JObject, ) -> Option<JBool>

source§

fn on_menu_opened<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<JBool>

source§

fn on_menu_item_selected<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<JBool>

source§

fn on_window_attributes_changed<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source§

fn on_content_changed<'a>(&'a self, env: &'a JEnv) -> Option<()>

source§

fn on_window_focus_changed<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

source§

fn on_attached_to_window<'a>(&'a self, env: &'a JEnv) -> Option<()>

source§

fn on_detached_from_window<'a>(&'a self, env: &'a JEnv) -> Option<()>

source§

fn on_panel_closed<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>

source§

fn on_search_requested<'a>(&'a self, env: &'a JEnv) -> Option<JBool>

source§

fn on_search_requested_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<JBool>

source§

fn on_window_starting_action_mode<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<&'a JObject>

source§

fn on_window_starting_action_mode_v2<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<&'a JObject>

source§

fn on_action_mode_started<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source§

fn on_action_mode_finished<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, ) -> Option<()>

source§

fn on_provide_keyboard_shortcuts<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt, ) -> Option<()>

source§

fn on_pointer_capture_changed<'a>( &'a self, env: &'a JEnv, arg0: JBool, ) -> Option<()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.