Files
NativeScript/tns-core-modules/image-asset/image-asset.d.ts
2016-10-03 17:23:18 +03:00

16 lines
528 B
TypeScript

declare module "image-asset" {
export class ImageAsset {
constructor(asset: any);
getImageAsync(callback: (image: any, error: any) => void); //UIImage for iOS and android.graphics.Bitmap for Android
ios: any; //PHAsset
nativeImage: any; //UIImage for iOS and android.graphics.Bitmap for Android
android: any;
options: ImageAssetOptions;
}
export interface ImageAssetOptions {
width?: number;
height?: number;
keepAspectRatio?: boolean;
}
}