diff --git a/tns-core-modules/declarations.android.d.ts b/tns-core-modules/declarations.android.d.ts index d17a07c74..fa1539b0f 100644 --- a/tns-core-modules/declarations.android.d.ts +++ b/tns-core-modules/declarations.android.d.ts @@ -62,7 +62,9 @@ declare module org { onComplete(result: Object, context: Object): void; } - export function DownloadImage(url: string, callback: CompleteCallback, context: any); + export module Image { + export function download(url: string, callback: CompleteCallback, context: any); + } export module Http { export class KeyValuePair { diff --git a/tns-core-modules/ui/image-cache/image-cache.android.ts b/tns-core-modules/ui/image-cache/image-cache.android.ts index 5e46a2cfc..e158e99a5 100644 --- a/tns-core-modules/ui/image-cache/image-cache.android.ts +++ b/tns-core-modules/ui/image-cache/image-cache.android.ts @@ -52,7 +52,7 @@ export class Cache extends common.Cache { } public _downloadCore(request: common.DownloadRequest) { - org.nativescript.widgets.Async.DownloadImage(request.url, this._callback, request.key); + org.nativescript.widgets.Async.Image.download(request.url, this._callback, request.key); } public get(key: string): any {