mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Reflects some refactoring in the widgest for Android.
This commit is contained in:
4
tns-core-modules/declarations.android.d.ts
vendored
4
tns-core-modules/declarations.android.d.ts
vendored
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user