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

Function ensureFragmentClass

packages/core/ui/frame/fragment.android.ts:67–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65export let fragmentClass: any;
66
67export function ensureFragmentClass() {
68 if (fragmentClass) {
69 return;
70 }
71
72 // this require will apply the FragmentClass implementation
73 // TODO: circular dependency issue with fragment require - check back on this when testing
74 // require('./fragment');
75
76 if (!fragmentClass) {
77 throw new Error('Failed to initialize the extended androidx.fragment.app.Fragment class');
78 }
79}
80
81export function setFragmentClass(clazz: any) {
82 if (fragmentClass) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected