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

Method _loadData

packages/core/ui/web-view/index.android.ts:157–165  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

155 }
156
157 public _loadData(src: string) {
158 const nativeView = this.nativeViewProtected;
159 if (!nativeView) {
160 return;
161 }
162
163 const baseUrl = `file:///${knownFolders.currentApp().path}/`;
164 nativeView.loadDataWithBaseURL(baseUrl, src, 'text/html', 'utf-8', null);
165 }
166
167 get canGoBack(): boolean {
168 return this.nativeViewProtected.canGoBack();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected