MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / onCreate

Function onCreate

packages/core/ui/frame/activity.android.ts:18–30  ·  view source on GitHub ↗
(savedInstanceState: android.os.Bundle)

Source from the content-addressed store, hash-verified

16 // init must at least be defined
17 },
18 onCreate(savedInstanceState: android.os.Bundle): void {
19 Application.android.init(this.getApplication());
20
21 // Set isNativeScriptActivity in onCreate.
22 // The JS constructor might not be called because the activity is created from Android.
23 this.isNativeScriptActivity = true;
24
25 if (!this._callbacks) {
26 setActivityCallbacks(this);
27 }
28
29 this._callbacks.onCreate(this, savedInstanceState, this.getIntent(), superProto.onCreate);
30 },
31
32 onNewIntent(intent: android.content.Intent): void {
33 this._callbacks.onNewIntent(this, intent, superProto.setIntent, superProto.onNewIntent);

Callers

nothing calls this directly

Calls 3

setActivityCallbacksFunction · 0.70
onCreateMethod · 0.65
initMethod · 0.45

Tested by

no test coverage detected