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

Function startActivity

packages/core/ui/frame/index.android.ts:709–717  ·  view source on GitHub ↗
(activity: androidx.appcompat.app.AppCompatActivity, frameId: number)

Source from the content-addressed store, hash-verified

707}
708
709function startActivity(activity: androidx.appcompat.app.AppCompatActivity, frameId: number) {
710 // TODO: Implicitly, we will open the same activity type as the current one
711 const intent = new android.content.Intent(activity, activity.getClass());
712 intent.setAction(android.content.Intent.ACTION_DEFAULT);
713 intent.putExtra(INTENT_EXTRA, frameId);
714
715 // TODO: Put the navigation context (if any) in the intent
716 activity.startActivity(intent);
717}
718
719let OnBackPressedCallback;
720

Callers 1

_navigateCoreMethod · 0.85

Calls 1

startActivityMethod · 0.80

Tested by

no test coverage detected