Reflects some refactoring in the widgest for Android.

This commit is contained in:
atanasovg
2016-07-07 15:05:39 +03:00
parent 81dc102031
commit 422b6a4285
2 changed files with 4 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {