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

Method fromUrl

packages/core/image-source/index.ios.ts:60–62  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

58 }
59
60 static fromUrl(url: string): Promise<ImageSource> {
61 return httpRequest({ url, method: 'GET' }).then((response) => response.content.toNativeImage().then((value) => new ImageSource(value)));
62 }
63
64 static iosSystemScaleFor(scale: iosSymbolScaleType) {
65 switch (scale) {

Callers 5

fromUrlFunction · 0.45
createUIImageFromURIFunction · 0.45
saveMethod · 0.45
testFromUrlFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected