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

Method constructor

packages/core/ui/image-cache/index.ios.ts:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 private _memoryWarningHandler: MemoryWarningHandler;
51
52 constructor() {
53 super();
54
55 this._cache = new NSCache<any, any>();
56
57 this._memoryWarningHandler = MemoryWarningHandler.new().initWithCache(this._cache);
58 }
59
60 public _downloadCore(request: common.DownloadRequest) {
61 httpRequest({ url: request.url, method: 'GET' }).then(

Callers

nothing calls this directly

Calls 2

initWithCacheMethod · 0.80
newMethod · 0.45

Tested by

no test coverage detected