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

Method fromUrl

packages/core/image-source/index.android.ts:65–67  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

63 }
64
65 static fromUrl(url: string): Promise<ImageSource> {
66 return httpRequest({ url, method: 'GET' }).then((response) => response.content.toNativeImage().then((value) => new ImageSource(value)));
67 }
68
69 static fromResourceSync(name: string): ImageSource {
70 const res = getApplication().getResources();

Callers 1

fromUrlFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected