mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
fix(android): image asset handling regarding requestLegacyExternalStorage (#9373)
This commit is contained in:
@ -1,11 +1,6 @@
|
||||
declare module org {
|
||||
module nativescript {
|
||||
module widgets {
|
||||
|
||||
export class Utils {
|
||||
public static drawBoxShadow(view: android.view.View, value: string): void;
|
||||
}
|
||||
|
||||
export class BoxShadowDrawable {
|
||||
public constructor(drawable: android.graphics.drawable.Drawable, value: string);
|
||||
public getWrappedDrawable(): android.graphics.drawable.Drawable;
|
||||
@ -632,3 +627,34 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
declare module org {
|
||||
export module nativescript {
|
||||
export module widgets {
|
||||
export class Utils {
|
||||
public static class: java.lang.Class<org.nativescript.widgets.Utils>;
|
||||
public static loadImageAsync(param0: globalAndroid.content.Context, param1: string, param2: string, param3: number, param4: number, param5: org.nativescript.widgets.Utils.AsyncImageCallback): void;
|
||||
public static drawBoxShadow(param0: globalAndroid.view.View, param1: string): void;
|
||||
public constructor();
|
||||
}
|
||||
export module Utils {
|
||||
export class AsyncImageCallback {
|
||||
public static class: java.lang.Class<org.nativescript.widgets.Utils.AsyncImageCallback>;
|
||||
/**
|
||||
* Constructs a new instance of the org.nativescript.widgets.Utils$AsyncImageCallback interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
|
||||
*/
|
||||
public constructor(implementation: {
|
||||
onSuccess(param0: globalAndroid.graphics.Bitmap): void;
|
||||
onError(param0: java.lang.Exception): void;
|
||||
});
|
||||
public constructor();
|
||||
public onSuccess(param0: globalAndroid.graphics.Bitmap): void;
|
||||
public onError(param0: java.lang.Exception): void;
|
||||
}
|
||||
export class ImageAssetOptions {
|
||||
public static class: java.lang.Class<org.nativescript.widgets.Utils.ImageAssetOptions>;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user