[]Struct jni_android_sys::android::app::NativeActivity

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

public class NativeActivity

Required feature: android-app-NativeActivity

Methods

impl NativeActivity

pub fn new<'env>(__jni_env: &'env Env) -> Result<Local<'env, NativeActivity>>[src]

pub fn on_configuration_changed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Configuration>>
) -> Result<()>
[src]

onConfigurationChanged

Required features: "android-content-res-Configuration"

pub fn on_low_memory<'env>(&'env self) -> Result<()>[src]

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

pub fn surface_created<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SurfaceHolder>>
) -> Result<()>
[src]

surfaceCreated

Required features: "android-view-SurfaceHolder"

pub fn surface_changed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SurfaceHolder>>,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<()>
[src]

surfaceChanged

Required features: "android-view-SurfaceHolder"

pub fn surface_redraw_needed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SurfaceHolder>>
) -> Result<()>
[src]

surfaceRedrawNeeded

Required features: "android-view-SurfaceHolder"

pub fn surface_destroyed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SurfaceHolder>>
) -> Result<()>
[src]

surfaceDestroyed

Required features: "android-view-SurfaceHolder"

pub fn on_input_queue_created<'env>(
    &'env self,
    arg0: impl Into<Option<&'env InputQueue>>
) -> Result<()>
[src]

onInputQueueCreated

Required features: "android-view-InputQueue"

pub fn on_input_queue_destroyed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env InputQueue>>
) -> Result<()>
[src]

onInputQueueDestroyed

Required features: "android-view-InputQueue"

pub fn on_global_layout<'env>(&'env self) -> Result<()>[src]

pub const META_DATA_FUNC_NAME: &'static str[src]

public static final META_DATA_FUNC_NAME

pub const META_DATA_LIB_NAME: &'static str[src]

public static final META_DATA_LIB_NAME

Methods from Deref<Target = Activity>

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

getIntent

Required features: "android-content-Intent"

pub fn set_intent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>
) -> Result<()>
[src]

setIntent

Required features: "android-content-Intent"

pub fn get_application<'env>(
    &'env self
) -> Result<Option<Local<'env, Application>>>
[src]

getApplication

Required features: "android-app-Application"

pub fn is_child<'env>(&'env self) -> Result<bool>[src]

pub fn get_parent<'env>(&'env self) -> Result<Option<Local<'env, Activity>>>[src]

getParent

Required features: "android-app-Activity"

pub fn get_window_manager<'env>(
    &'env self
) -> Result<Option<Local<'env, WindowManager>>>
[src]

getWindowManager

Required features: "android-view-WindowManager"

pub fn get_window<'env>(&'env self) -> Result<Option<Local<'env, Window>>>[src]

getWindow

Required features: "android-view-Window"

pub fn get_loader_manager<'env>(
    &'env self
) -> Result<Option<Local<'env, LoaderManager>>>
[src]

Deprecated

getLoaderManager

Required features: "android-app-LoaderManager"

pub fn get_current_focus<'env>(&'env self) -> Result<Option<Local<'env, View>>>[src]

getCurrentFocus

Required features: "android-view-View"

pub fn on_create<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bundle>>,
    arg1: impl Into<Option<&'env PersistableBundle>>
) -> Result<()>
[src]

onCreate

Required features: "android-os-Bundle", "android-os-PersistableBundle"

pub fn on_restore_instance_state<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bundle>>,
    arg1: impl Into<Option<&'env PersistableBundle>>
) -> Result<()>
[src]

onRestoreInstanceState

Required features: "android-os-Bundle", "android-os-PersistableBundle"

pub fn on_post_create<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bundle>>,
    arg1: impl Into<Option<&'env PersistableBundle>>
) -> Result<()>
[src]

onPostCreate

Required features: "android-os-Bundle", "android-os-PersistableBundle"

pub fn on_state_not_saved<'env>(&'env self) -> Result<()>[src]

pub fn is_voice_interaction<'env>(&'env self) -> Result<bool>[src]

pub fn is_voice_interaction_root<'env>(&'env self) -> Result<bool>[src]

pub fn get_voice_interactor<'env>(
    &'env self
) -> Result<Option<Local<'env, VoiceInteractor>>>
[src]

getVoiceInteractor

Required features: "android-app-VoiceInteractor"

pub fn is_local_voice_interaction_supported<'env>(&'env self) -> Result<bool>[src]

pub fn start_local_voice_interaction<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

startLocalVoiceInteraction

Required features: "android-os-Bundle"

pub fn on_local_voice_interaction_started<'env>(&'env self) -> Result<()>[src]

pub fn on_local_voice_interaction_stopped<'env>(&'env self) -> Result<()>[src]

pub fn stop_local_voice_interaction<'env>(&'env self) -> Result<()>[src]

pub fn on_save_instance_state<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bundle>>,
    arg1: impl Into<Option<&'env PersistableBundle>>
) -> Result<()>
[src]

onSaveInstanceState

Required features: "android-os-Bundle", "android-os-PersistableBundle"

pub fn on_create_thumbnail<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bitmap>>,
    arg1: impl Into<Option<&'env Canvas>>
) -> Result<bool>
[src]

Deprecated

onCreateThumbnail

Required features: "android-graphics-Bitmap", "android-graphics-Canvas"

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

onCreateDescription

Required features: "java-lang-CharSequence"

pub fn on_provide_assist_data<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

onProvideAssistData

Required features: "android-os-Bundle"

pub fn on_provide_assist_content<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AssistContent>>
) -> Result<()>
[src]

onProvideAssistContent

Required features: "android-app-assist-AssistContent"

pub fn request_show_keyboard_shortcuts<'env>(&'env self) -> Result<()>[src]

pub fn dismiss_keyboard_shortcuts_helper<'env>(&'env self) -> Result<()>[src]

pub fn on_provide_keyboard_shortcuts<'env>(
    &'env self,
    arg0: impl Into<Option<&'env List>>,
    arg1: impl Into<Option<&'env Menu>>,
    arg2: i32
) -> Result<()>
[src]

onProvideKeyboardShortcuts

Required features: "android-view-Menu", "java-util-List"

pub fn show_assist<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bundle>>
) -> Result<bool>
[src]

showAssist

Required features: "android-os-Bundle"

pub fn report_fully_drawn<'env>(&'env self) -> Result<()>[src]

pub fn on_multi_window_mode_changed_boolean_configuration<'env>(
    &'env self,
    arg0: bool,
    arg1: impl Into<Option<&'env Configuration>>
) -> Result<()>
[src]

onMultiWindowModeChanged

Required features: "android-content-res-Configuration"

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

Deprecated

pub fn is_in_multi_window_mode<'env>(&'env self) -> Result<bool>[src]

pub fn on_picture_in_picture_mode_changed_boolean_configuration<'env>(
    &'env self,
    arg0: bool,
    arg1: impl Into<Option<&'env Configuration>>
) -> Result<()>
[src]

onPictureInPictureModeChanged

Required features: "android-content-res-Configuration"

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

Deprecated

pub fn is_in_picture_in_picture_mode<'env>(&'env self) -> Result<bool>[src]

pub fn enter_picture_in_picture_mode<'env>(&'env self) -> Result<()>[src]

Deprecated

pub fn enter_picture_in_picture_mode_picture_in_picture_params<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PictureInPictureParams>>
) -> Result<bool>
[src]

enterPictureInPictureMode

Required features: "android-app-PictureInPictureParams"

pub fn set_picture_in_picture_params<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PictureInPictureParams>>
) -> Result<()>
[src]

setPictureInPictureParams

Required features: "android-app-PictureInPictureParams"

pub fn get_max_num_picture_in_picture_actions<'env>(&'env self) -> Result<i32>[src]

pub fn on_configuration_changed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Configuration>>
) -> Result<()>
[src]

onConfigurationChanged

Required features: "android-content-res-Configuration"

pub fn get_changing_configurations<'env>(&'env self) -> Result<i32>[src]

pub fn get_last_non_configuration_instance<'env>(
    &'env self
) -> Result<Option<Local<'env, Object>>>
[src]

getLastNonConfigurationInstance

Required features: "java-lang-Object"

pub fn on_retain_non_configuration_instance<'env>(
    &'env self
) -> Result<Option<Local<'env, Object>>>
[src]

onRetainNonConfigurationInstance

Required features: "java-lang-Object"

pub fn on_low_memory<'env>(&'env self) -> Result<()>[src]

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

pub fn get_fragment_manager<'env>(
    &'env self
) -> Result<Option<Local<'env, FragmentManager>>>
[src]

Deprecated

getFragmentManager

Required features: "android-app-FragmentManager"

pub fn on_attach_fragment<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Fragment>>
) -> Result<()>
[src]

Deprecated

onAttachFragment

Required features: "android-app-Fragment"

pub fn start_managing_cursor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Cursor>>
) -> Result<()>
[src]

Deprecated

startManagingCursor

Required features: "android-database-Cursor"

pub fn stop_managing_cursor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Cursor>>
) -> Result<()>
[src]

Deprecated

stopManagingCursor

Required features: "android-database-Cursor"

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

findViewById

Required features: "android-view-View"

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

requireViewById

Required features: "android-view-View"

pub fn get_action_bar<'env>(
    &'env self
) -> Result<Option<Local<'env, ActionBar>>>
[src]

getActionBar

Required features: "android-app-ActionBar"

pub fn set_action_bar<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Toolbar>>
) -> Result<()>
[src]

setActionBar

Required features: "android-widget-Toolbar"

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]

setContentView

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]

setContentView

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]

addContentView

Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"

pub fn get_content_transition_manager<'env>(
    &'env self
) -> Result<Option<Local<'env, TransitionManager>>>
[src]

getContentTransitionManager

Required features: "android-transition-TransitionManager"

pub fn set_content_transition_manager<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TransitionManager>>
) -> Result<()>
[src]

setContentTransitionManager

Required features: "android-transition-TransitionManager"

pub fn get_content_scene<'env>(&'env self) -> Result<Option<Local<'env, Scene>>>[src]

getContentScene

Required features: "android-transition-Scene"

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

pub fn set_default_key_mode<'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]

onKeyDown

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]

onKeyLongPress

Required features: "android-view-KeyEvent"

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

onKeyUp

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]

onKeyMultiple

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]

onKeyShortcut

Required features: "android-view-KeyEvent"

pub fn on_touch_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
[src]

onTouchEvent

Required features: "android-view-MotionEvent"

pub fn on_trackball_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
[src]

onTrackballEvent

Required features: "android-view-MotionEvent"

pub fn on_generic_motion_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
[src]

onGenericMotionEvent

Required features: "android-view-MotionEvent"

pub fn on_user_interaction<'env>(&'env self) -> Result<()>[src]

pub fn on_window_attributes_changed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WindowManager_LayoutParams>>
) -> Result<()>
[src]

onWindowAttributesChanged

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 has_window_focus<'env>(&'env self) -> Result<bool>[src]

pub fn dispatch_key_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
[src]

dispatchKeyEvent

Required features: "android-view-KeyEvent"

pub fn dispatch_key_shortcut_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
[src]

dispatchKeyShortcutEvent

Required features: "android-view-KeyEvent"

pub fn dispatch_touch_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
[src]

dispatchTouchEvent

Required features: "android-view-MotionEvent"

pub fn dispatch_trackball_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
[src]

dispatchTrackballEvent

Required features: "android-view-MotionEvent"

pub fn dispatch_generic_motion_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool>
[src]

dispatchGenericMotionEvent

Required features: "android-view-MotionEvent"

pub fn dispatch_populate_accessibility_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AccessibilityEvent>>
) -> Result<bool>
[src]

dispatchPopulateAccessibilityEvent

Required features: "android-view-accessibility-AccessibilityEvent"

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

onCreatePanelView

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]

onCreatePanelMenu

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]

onPreparePanel

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]

onMenuOpened

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]

onMenuItemSelected

Required features: "android-view-MenuItem"

pub fn on_panel_closed<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Menu>>
) -> Result<()>
[src]

onPanelClosed

Required features: "android-view-Menu"

pub fn invalidate_options_menu<'env>(&'env self) -> Result<()>[src]

pub fn on_create_options_menu<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Menu>>
) -> Result<bool>
[src]

onCreateOptionsMenu

Required features: "android-view-Menu"

pub fn on_prepare_options_menu<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Menu>>
) -> Result<bool>
[src]

onPrepareOptionsMenu

Required features: "android-view-Menu"

pub fn on_options_item_selected<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MenuItem>>
) -> Result<bool>
[src]

onOptionsItemSelected

Required features: "android-view-MenuItem"

pub fn on_navigate_up<'env>(&'env self) -> Result<bool>[src]

pub fn on_navigate_up_from_child<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>
) -> Result<bool>
[src]

onNavigateUpFromChild

Required features: "android-app-Activity"

pub fn on_create_navigate_up_task_stack<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TaskStackBuilder>>
) -> Result<()>
[src]

onCreateNavigateUpTaskStack

Required features: "android-app-TaskStackBuilder"

pub fn on_prepare_navigate_up_task_stack<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TaskStackBuilder>>
) -> Result<()>
[src]

onPrepareNavigateUpTaskStack

Required features: "android-app-TaskStackBuilder"

pub fn on_options_menu_closed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Menu>>
) -> Result<()>
[src]

onOptionsMenuClosed

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 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]

onCreateContextMenu

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]

registerForContextMenu

Required features: "android-view-View"

pub fn unregister_for_context_menu<'env>(
    &'env self,
    arg0: impl Into<Option<&'env View>>
) -> Result<()>
[src]

unregisterForContextMenu

Required features: "android-view-View"

pub fn open_context_menu<'env>(
    &'env self,
    arg0: impl Into<Option<&'env View>>
) -> Result<()>
[src]

openContextMenu

Required features: "android-view-View"

pub fn close_context_menu<'env>(&'env self) -> Result<()>[src]

pub fn on_context_item_selected<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MenuItem>>
) -> Result<bool>
[src]

onContextItemSelected

Required features: "android-view-MenuItem"

pub fn on_context_menu_closed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Menu>>
) -> Result<()>
[src]

onContextMenuClosed

Required features: "android-view-Menu"

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

Deprecated

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

Deprecated

showDialog

Required features: "android-os-Bundle"

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

Deprecated

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

Deprecated

pub fn on_search_requested_search_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SearchEvent>>
) -> Result<bool>
[src]

onSearchRequested

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]

getSearchEvent

Required features: "android-view-SearchEvent"

startSearch

Required features: "android-os-Bundle", "java-lang-String"

triggerSearch

Required features: "android-os-Bundle", "java-lang-String"

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]

pub fn set_feature_drawable_uri<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Uri>>
) -> Result<()>
[src]

setFeatureDrawableUri

Required features: "android-net-Uri"

pub fn set_feature_drawable<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Drawable>>
) -> Result<()>
[src]

setFeatureDrawable

Required features: "android-graphics-drawable-Drawable"

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

pub fn get_layout_inflater<'env>(
    &'env self
) -> Result<Option<Local<'env, LayoutInflater>>>
[src]

getLayoutInflater

Required features: "android-view-LayoutInflater"

pub fn get_menu_inflater<'env>(
    &'env self
) -> Result<Option<Local<'env, MenuInflater>>>
[src]

getMenuInflater

Required features: "android-view-MenuInflater"

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

pub fn should_show_request_permission_rationale<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<bool>
[src]

shouldShowRequestPermissionRationale

Required features: "java-lang-String"

pub fn start_activity_for_result_intent_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>,
    arg1: i32
) -> Result<()>
[src]

startActivityForResult

Required features: "android-content-Intent"

pub fn start_activity_for_result_intent_int_bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>,
    arg1: i32,
    arg2: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

startActivityForResult

Required features: "android-content-Intent", "android-os-Bundle"

pub fn is_activity_transition_running<'env>(&'env self) -> Result<bool>[src]

pub fn start_intent_sender_for_result_intent_sender_int_intent_int_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntentSender>>,
    arg1: i32,
    arg2: impl Into<Option<&'env Intent>>,
    arg3: i32,
    arg4: i32,
    arg5: i32
) -> Result<()>
[src]

startIntentSenderForResult

Required features: "android-content-Intent", "android-content-IntentSender"

pub fn start_intent_sender_for_result_intent_sender_int_intent_int_int_int_bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntentSender>>,
    arg1: i32,
    arg2: impl Into<Option<&'env Intent>>,
    arg3: i32,
    arg4: i32,
    arg5: i32,
    arg6: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

startIntentSenderForResult

Required features: "android-content-Intent", "android-content-IntentSender", "android-os-Bundle"

pub fn start_activity_intent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>
) -> Result<()>
[src]

startActivity

Required features: "android-content-Intent"

pub fn start_activity_intent_bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

startActivity

Required features: "android-content-Intent", "android-os-Bundle"

pub fn start_intent_sender_intent_sender_intent_int_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntentSender>>,
    arg1: impl Into<Option<&'env Intent>>,
    arg2: i32,
    arg3: i32,
    arg4: i32
) -> Result<()>
[src]

startIntentSender

Required features: "android-content-Intent", "android-content-IntentSender"

pub fn start_intent_sender_intent_sender_intent_int_int_int_bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntentSender>>,
    arg1: impl Into<Option<&'env Intent>>,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

startIntentSender

Required features: "android-content-Intent", "android-content-IntentSender", "android-os-Bundle"

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

startActivityIfNeeded

Required features: "android-content-Intent"

pub fn start_activity_if_needed_intent_int_bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>,
    arg1: i32,
    arg2: impl Into<Option<&'env Bundle>>
) -> Result<bool>
[src]

startActivityIfNeeded

Required features: "android-content-Intent", "android-os-Bundle"

pub fn start_next_matching_activity_intent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>
) -> Result<bool>
[src]

startNextMatchingActivity

Required features: "android-content-Intent"

pub fn start_next_matching_activity_intent_bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<bool>
[src]

startNextMatchingActivity

Required features: "android-content-Intent", "android-os-Bundle"

pub fn start_activity_from_child_activity_intent_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Intent>>,
    arg2: i32
) -> Result<()>
[src]

startActivityFromChild

Required features: "android-app-Activity", "android-content-Intent"

pub fn start_activity_from_child_activity_intent_int_bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Intent>>,
    arg2: i32,
    arg3: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

startActivityFromChild

Required features: "android-app-Activity", "android-content-Intent", "android-os-Bundle"

pub fn start_activity_from_fragment_fragment_intent_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Fragment>>,
    arg1: impl Into<Option<&'env Intent>>,
    arg2: i32
) -> Result<()>
[src]

Deprecated

startActivityFromFragment

Required features: "android-app-Fragment", "android-content-Intent"

pub fn start_activity_from_fragment_fragment_intent_int_bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Fragment>>,
    arg1: impl Into<Option<&'env Intent>>,
    arg2: i32,
    arg3: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

Deprecated

startActivityFromFragment

Required features: "android-app-Fragment", "android-content-Intent", "android-os-Bundle"

pub fn start_intent_sender_from_child_activity_intent_sender_int_intent_int_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env IntentSender>>,
    arg2: i32,
    arg3: impl Into<Option<&'env Intent>>,
    arg4: i32,
    arg5: i32,
    arg6: i32
) -> Result<()>
[src]

startIntentSenderFromChild

Required features: "android-app-Activity", "android-content-Intent", "android-content-IntentSender"

pub fn start_intent_sender_from_child_activity_intent_sender_int_intent_int_int_int_bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env IntentSender>>,
    arg2: i32,
    arg3: impl Into<Option<&'env Intent>>,
    arg4: i32,
    arg5: i32,
    arg6: i32,
    arg7: impl Into<Option<&'env Bundle>>
) -> Result<()>
[src]

startIntentSenderFromChild

Required features: "android-app-Activity", "android-content-Intent", "android-content-IntentSender", "android-os-Bundle"

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

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

pub fn set_result_int_intent<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Intent>>
) -> Result<()>
[src]

setResult

Required features: "android-content-Intent"

pub fn get_referrer<'env>(&'env self) -> Result<Option<Local<'env, Uri>>>[src]

getReferrer

Required features: "android-net-Uri"

pub fn on_provide_referrer<'env>(&'env self) -> Result<Option<Local<'env, Uri>>>[src]

onProvideReferrer

Required features: "android-net-Uri"

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

getCallingPackage

Required features: "java-lang-String"

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

getCallingActivity

Required features: "android-content-ComponentName"

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

pub fn is_finishing<'env>(&'env self) -> Result<bool>[src]

pub fn is_destroyed<'env>(&'env self) -> Result<bool>[src]

pub fn is_changing_configurations<'env>(&'env self) -> Result<bool>[src]

pub fn recreate<'env>(&'env self) -> Result<()>[src]

pub fn finish<'env>(&'env self) -> Result<()>[src]

pub fn finish_affinity<'env>(&'env self) -> Result<()>[src]

pub fn finish_from_child<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>
) -> Result<()>
[src]

finishFromChild

Required features: "android-app-Activity"

pub fn finish_after_transition<'env>(&'env self) -> Result<()>[src]

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

pub fn finish_activity_from_child<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: i32
) -> Result<()>
[src]

finishActivityFromChild

Required features: "android-app-Activity"

pub fn finish_and_remove_task<'env>(&'env self) -> Result<()>[src]

pub fn release_instance<'env>(&'env self) -> Result<bool>[src]

pub fn on_activity_reenter<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Intent>>
) -> Result<()>
[src]

onActivityReenter

Required features: "android-content-Intent"

pub fn create_pending_result<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Intent>>,
    arg2: i32
) -> Result<Option<Local<'env, PendingIntent>>>
[src]

createPendingResult

Required features: "android-app-PendingIntent", "android-content-Intent"

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

pub fn get_requested_orientation<'env>(&'env self) -> Result<i32>[src]

pub fn get_task_id<'env>(&'env self) -> Result<i32>[src]

pub fn is_task_root<'env>(&'env self) -> Result<bool>[src]

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

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

getLocalClassName

Required features: "java-lang-String"

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

getComponentName

Required features: "android-content-ComponentName"

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

getPreferences

Required features: "android-content-SharedPreferences"

pub fn get_system_service<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Object>>>
[src]

getSystemService

Required features: "java-lang-Object", "java-lang-String"

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

setTitle

Required features: "java-lang-CharSequence"

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

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

Deprecated

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

getTitle

Required features: "java-lang-CharSequence"

pub fn get_title_color<'env>(&'env self) -> Result<i32>[src]

pub fn set_task_description<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ActivityManager_TaskDescription>>
) -> Result<()>
[src]

setTaskDescription

Required features: "android-app-ActivityManager_TaskDescription"

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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_media_controller<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MediaController>>
) -> Result<()>
[src]

setMediaController

Required features: "android-media-session-MediaController"

pub fn get_media_controller<'env>(
    &'env self
) -> Result<Option<Local<'env, MediaController>>>
[src]

getMediaController

Required features: "android-media-session-MediaController"

pub fn run_on_ui_thread<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Runnable>>
) -> Result<()>
[src]

runOnUiThread

Required features: "java-lang-Runnable"

pub fn on_create_view_string_context_attribute_set<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Context>>,
    arg2: impl Into<Option<&'env AttributeSet>>
) -> Result<Option<Local<'env, View>>>
[src]

onCreateView

Required features: "android-content-Context", "android-util-AttributeSet", "android-view-View", "java-lang-String"

pub fn on_create_view_view_string_context_attribute_set<'env>(
    &'env self,
    arg0: impl Into<Option<&'env View>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env Context>>,
    arg3: impl Into<Option<&'env AttributeSet>>
) -> Result<Option<Local<'env, View>>>
[src]

onCreateView

Required features: "android-content-Context", "android-util-AttributeSet", "android-view-View", "java-lang-String"

pub fn is_immersive<'env>(&'env self) -> Result<bool>[src]

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

Deprecated

pub fn on_visible_behind_canceled<'env>(&'env self) -> Result<()>[src]

Deprecated

pub fn on_enter_animation_complete<'env>(&'env self) -> Result<()>[src]

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

pub fn set_vr_mode_enabled<'env>(
    &'env self,
    arg0: bool,
    arg1: impl Into<Option<&'env ComponentName>>
) -> Result<()>
[src]

setVrModeEnabled

Required features: "android-content-ComponentName"

pub fn start_action_mode_callback<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ActionMode_Callback>>
) -> Result<Option<Local<'env, ActionMode>>>
[src]

startActionMode

Required features: "android-view-ActionMode", "android-view-ActionMode_Callback"

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

startActionMode

Required features: "android-view-ActionMode", "android-view-ActionMode_Callback"

pub fn on_window_starting_action_mode_callback<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ActionMode_Callback>>
) -> Result<Option<Local<'env, ActionMode>>>
[src]

onWindowStartingActionMode

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]

onWindowStartingActionMode

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]

onActionModeStarted

Required features: "android-view-ActionMode"

pub fn on_action_mode_finished<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ActionMode>>
) -> Result<()>
[src]

onActionModeFinished

Required features: "android-view-ActionMode"

pub fn should_up_recreate_task<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>
) -> Result<bool>
[src]

shouldUpRecreateTask

Required features: "android-content-Intent"

pub fn navigate_up_to<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>
) -> Result<bool>
[src]

navigateUpTo

Required features: "android-content-Intent"

pub fn navigate_up_to_from_child<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Intent>>
) -> Result<bool>
[src]

navigateUpToFromChild

Required features: "android-app-Activity", "android-content-Intent"

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

getParentActivityIntent

Required features: "android-content-Intent"

pub fn set_enter_shared_element_callback<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SharedElementCallback>>
) -> Result<()>
[src]

setEnterSharedElementCallback

Required features: "android-app-SharedElementCallback"

pub fn set_exit_shared_element_callback<'env>(
    &'env self,
    arg0: impl Into<Option<&'env SharedElementCallback>>
) -> Result<()>
[src]

setExitSharedElementCallback

Required features: "android-app-SharedElementCallback"

pub fn postpone_enter_transition<'env>(&'env self) -> Result<()>[src]

pub fn start_postponed_enter_transition<'env>(&'env self) -> Result<()>[src]

pub fn request_drag_and_drop_permissions<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DragEvent>>
) -> Result<Option<Local<'env, DragAndDropPermissions>>>
[src]

requestDragAndDropPermissions

Required features: "android-view-DragAndDropPermissions", "android-view-DragEvent"

pub fn start_lock_task<'env>(&'env self) -> Result<()>[src]

pub fn stop_lock_task<'env>(&'env self) -> Result<()>[src]

pub fn show_lock_task_escape_message<'env>(&'env self) -> Result<()>[src]

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

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

pub const DEFAULT_KEYS_DIALER: i32[src]

pub const DEFAULT_KEYS_DISABLE: i32[src]

pub const DEFAULT_KEYS_SEARCH_GLOBAL: i32[src]

pub const DEFAULT_KEYS_SEARCH_LOCAL: i32[src]

pub const DEFAULT_KEYS_SHORTCUT: i32[src]

pub const RESULT_CANCELED: i32[src]

pub const RESULT_FIRST_USER: i32[src]

pub const RESULT_OK: i32[src]

Trait Implementations

impl AsRef<SurfaceHolder_Callback2> for NativeActivity

impl AsRef<InputQueue_Callback> for NativeActivity

impl AsRef<ViewTreeObserver_OnGlobalLayoutListener> for NativeActivity

impl Deref for NativeActivity

type Target = Activity

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for NativeActivity

impl AsJValue for NativeActivity

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]