# UTSActivityCallback ## UniActivityCallback ### 实例方法 #### onAttachFragment(params, fragment) #### onUserInteraction(params) #### onUserLeaveHint(params) #### onActivityResult(params, requestCode, resultCode, data) #### onRequestPermissionsResult(params, requestCode, permissions, grantResults) #### onApplyThemeResource(params, theme, resid, first) #### onCreateView(params, parent, name, context, attrs) #### onTitleChanged(params, title, color) #### onChildTitleChanged(params, childActivity, title) #### onBackPressed(params) #### onContextMenuClosed(params, menu) #### onCreateContextMenu(params, menu, v, menuInfo) #### onOptionsMenuClosed(params, menu) #### onPrepareNavigateUpTaskStack(params, builder) #### onProvideAssistData(params, data) #### onProvideAssistContent(params, outContent) #### onPreAttachFragment(params, fragment) #### onPreUserInteraction(params) #### onPreUserLeaveHint(params) #### onPreActivityResult(params, requestCode, resultCode, data) #### onPreRequestPermissionsResult(params, requestCode, permissions, grantResults) #### onPreApplyThemeResource(params, theme, resid, first) #### onPreCreateView(params, parent, name, context, attrs) #### onPreTitleChanged(params, title, color) #### onPreChildTitleChanged(params, childActivity, title) #### onPreBackPressed(params) #### onPreContextMenuClosed(params, menu) #### onPreCreateContextMenu(params, menu, v, menuInfo) #### onPreOptionsMenuClosed(params, menu) #### onPrePrepareNavigateUpTaskStack(params, builder) #### onPreProvideAssistData(params, data) #### onPreProvideAssistContent(params, outContent) ## UniActivityComponentCallback ### 实例方法 #### onConfigurationChanged(params, newConfig) #### onLowMemory(params) #### onTrimMemory(params, level) #### onPreConfigurationChanged(params, newConfig) #### onPreLowMemory(params) #### onPreTrimMemory(params, level) ## UniActivityKeyEventCallback ### 实例方法 #### onKeyDown(params, keyCode, event) #### onKeyLongPress(params, keyCode, event) #### onKeyUp(params, keyCode, event) #### onKeyMultiple(params, keyCode, repeatCount, event) #### onPreKeyDown(params, keyCode, event) #### onPreKeyLongPress(params, keyCode, event) #### onPreKeyUp(params, keyCode, event) #### onPreKeyMultiple(params, keyCode, repeatCount, event) ## UniActivityLifeCycleCallback ### 实例方法 #### onCreate(params, savedInstanceState) #### onPreCreate(params, savedInstanceState) #### onStart(params) #### onPreStart(params) #### onRestart(params) #### onPreRestart(params) #### onResume(params) #### onPreResume(params) #### onPause(params) #### onPrePause(params) #### onStop(params) #### onPreStop(params) #### onDestroy(params) #### onPreDestroy(params) ## UniActivityWindowCallback ### 实例方法 #### onDetachedFromWindow(params) #### onContentChanged(params) #### onWindowAttributesChanged(params, attrs) #### onWindowFocusChanged(params, hasFocus) #### onAttachedToWindow(params) #### onPanelClosed(params, featureId, menu) #### onSearchRequested(params) #### onWindowStartingActionMode(params, callback) #### onWindowStartingActionMode(params, callback, type)_1 #### onActionModeFinished(params, mode) #### onActionModeStarted(params, mode) #### onProvideKeyboardShortcuts(params, data, menu, deviceId) #### onPointerCaptureChanged(params, hasCapture) #### onPreDetachedFromWindow(params) #### onPreContentChanged(params) #### onPreWindowAttributesChanged(params, attrs) #### onPreWindowFocusChanged(params, hasFocus) #### onPreAttachedToWindow(params) #### onPrePanelClosed(params, featureId, menu) #### onPreSearchRequested(params) #### onPreWindowStartingActionMode(params, callback) #### onPreWindowStartingActionMode(params, callback, type)_1 #### onPreActionModeFinished(params, mode) #### onPreActionModeStarted(params, mode) #### onPreProvideKeyboardShortcuts(params, data, menu, deviceId) #### onPrePointerCaptureChanged(params, hasCapture) #### dispatchKeyEvent(params, event) #### dispatchPreKeyEvent(params, event)