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

Method loadFromFile

packages/core/image-source/index.ios.ts:274–281  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

272 }
273
274 public loadFromFile(path: string): boolean {
275 console.log('loadFromFile() is deprecated. Use ImageSource.fromFileSync() instead.');
276
277 const imgSource = ImageSource.fromFileSync(path);
278 this.ios = imgSource ? imgSource.ios : null;
279
280 return !!this.ios;
281 }
282
283 public fromFile(path: string): Promise<boolean> {
284 console.log('fromFile() is deprecated. Use ImageSource.fromFile() instead.');

Callers

nothing calls this directly

Calls 2

logMethod · 0.45
fromFileSyncMethod · 0.45

Tested by

no test coverage detected