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

Method constructor

packages/core/image-source/index.ios.ts:42–46  ·  view source on GitHub ↗
(nativeSource?: UIImage)

Source from the content-addressed store, hash-verified

40 }
41
42 constructor(nativeSource?: UIImage) {
43 if (nativeSource) {
44 this.setNativeSource(nativeSource);
45 }
46 }
47
48 static fromAsset(asset: ImageAsset): Promise<ImageSource> {
49 return new Promise<ImageSource>((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

setNativeSourceMethod · 0.95

Tested by

no test coverage detected