Note: You are on the beta version of our docs. This is a work in progress and may contain broken links and pages.
Interfaces
AndroidActivityCallbacks
AndroidActivityCallbacks
interface AndroidActivityCallbacks { getRootView(): View; onActivityResult( activity: any, requestCode: number, resultCode: number, data: any, superFunc: Function ): any; onBackPressed(activity: any, superFunc: Function): void; onCreate( activity: any, savedInstanceState: any, intent: any, superFunc: Function ): void; onDestroy(activity: any, superFunc: Function): void; onNewIntent( activity: any, intent: any, superSetIntentFunc: Function, superFunc: Function ): void; onPostResume(activity: any, superFunc: Function): void; onRequestPermissionsResult( activity: any, requestCode: number, permissions: string[], grantResults: number[], superFunc: Function ): void; onSaveInstanceState(activity: any, outState: any, superFunc: Function): void; onStart(activity: any, superFunc: Function): void; onStop(activity: any, superFunc: Function): void; resetActivityContent(activity: any): void; }
Summary
Methods
getRootView
getRootView(): View
defined in @nativescript/core/ui/frame/index.d.ts:455:1
Returns View
onActivityResult
onActivityResult(
activity: any,
requestCode: number,
resultCode: number,
data: any,
superFunc: Function
): any
defined in @nativescript/core/ui/frame/index.d.ts:466:1
Parameter | Default | Description |
activity |
| any |
requestCode |
| number |
resultCode |
| number |
data |
| any |
superFunc |
| Function |
Returns any
onBackPressed
defined in @nativescript/core/ui/frame/index.d.ts:464:1
Parameter | Default | Description |
activity |
| any |
superFunc |
| Function |
Returns void
onCreate
defined in @nativescript/core/ui/frame/index.d.ts:458:1
Parameter | Default | Description |
activity |
| any |
savedInstanceState |
| any |
intent |
| any |
superFunc |
| Function |
Returns void
onDestroy
defined in @nativescript/core/ui/frame/index.d.ts:463:1
Parameter | Default | Description |
activity |
| any |
superFunc |
| Function |
Returns void
onNewIntent
defined in @nativescript/core/ui/frame/index.d.ts:467:1
Parameter | Default | Description |
activity |
| any |
intent |
| any |
superSetIntentFunc |
| Function |
superFunc |
| Function |
Returns void
onPostResume
defined in @nativescript/core/ui/frame/index.d.ts:462:1
Parameter | Default | Description |
activity |
| any |
superFunc |
| Function |
Returns void
onRequestPermissionsResult
onRequestPermissionsResult(
activity: any,
requestCode: number,
permissions: string[],
grantResults: number[],
superFunc: Function
): void
defined in @nativescript/core/ui/frame/index.d.ts:465:1
Parameter | Default | Description |
activity |
| any |
requestCode |
| number |
permissions |
| string[] |
grantResults |
| number[] |
superFunc |
| Function |
Returns void
onSaveInstanceState
defined in @nativescript/core/ui/frame/index.d.ts:459:1
Parameter | Default | Description |
activity |
| any |
outState |
| any |
superFunc |
| Function |
Returns void
onStart
defined in @nativescript/core/ui/frame/index.d.ts:460:1
Parameter | Default | Description |
activity |
| any |
superFunc |
| Function |
Returns void
onStop
defined in @nativescript/core/ui/frame/index.d.ts:461:1
Parameter | Default | Description |
activity |
| any |
superFunc |
| Function |
Returns void
resetActivityContent
defined in @nativescript/core/ui/frame/index.d.ts:456:1
Parameter | Default | Description |
activity |
| any |
Returns void
- Previous
- AndroidActivityBundleEventData