@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
14 lines • 407 B
JavaScript
export function isEmbedded() {
return org.nativescript?.Bootstrap?.isEmbeddedNativeScript;
}
let embeddedView;
export function setEmbeddedView(view) {
embeddedView = view;
}
export function getEmbeddedView() {
if (!embeddedView) {
throw new Error("{N} Core: Fragment content view not set or set to 'undefined'");
}
return embeddedView;
}
//# sourceMappingURL=index.android.js.map