8.6 Released with 🥽 visionOS support and more!
Check it out
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

onActivityResult ​

onActivityResult(
  activity: any,
  requestCode: number,
  resultCode: number,
  data: any,
  superFunc: Function
): any
Parameter Default Description
activity
any

requestCode
number

resultCode
number

data
any

superFunc
Function

Returns any

onBackPressed ​

onBackPressed(activity: any, superFunc: Function): void
Parameter Default Description
activity
any

superFunc
Function

Returns void

onCreate ​

onCreate(
  activity: any,
  savedInstanceState: any,
  intent: any,
  superFunc: Function
): void
Parameter Default Description
activity
any

savedInstanceState
any

intent
any

superFunc
Function

Returns void

onDestroy ​

onDestroy(activity: any, superFunc: Function): void
Parameter Default Description
activity
any

superFunc
Function

Returns void

onNewIntent ​

onNewIntent(
  activity: any,
  intent: any,
  superSetIntentFunc: Function,
  superFunc: Function
): void
Parameter Default Description
activity
any

intent
any

superSetIntentFunc
Function

superFunc
Function

Returns void

onPostResume ​

onPostResume(activity: any, superFunc: Function): void
Parameter Default Description
activity
any

superFunc
Function

Returns void

onRequestPermissionsResult ​

onRequestPermissionsResult(
  activity: any,
  requestCode: number,
  permissions: string[],
  grantResults: number[],
  superFunc: Function
): void
Parameter Default Description
activity
any

requestCode
number

permissions
string[]

grantResults
number[]

superFunc
Function

Returns void

onSaveInstanceState ​

onSaveInstanceState(activity: any, outState: any, superFunc: Function): void
Parameter Default Description
activity
any

outState
any

superFunc
Function

Returns void

onStart ​

onStart(activity: any, superFunc: Function): void
Parameter Default Description
activity
any

superFunc
Function

Returns void

onStop ​

onStop(activity: any, superFunc: Function): void
Parameter Default Description
activity
any

superFunc
Function

Returns void

resetActivityContent ​

resetActivityContent(activity: any): void
Parameter Default Description
activity
any

Returns void