UNPKG

514 BTypeScriptView Raw
1import { Observable } from '../data/observable';
2
3export class ImageAsset extends Observable {
4 constructor(asset: any);
5 getImageAsync(callback: (image: any, error: any) => void); //UIImage for iOS and android.graphics.Bitmap for Android
6 ios: any; //PHAsset
7 nativeImage: any; //UIImage for iOS and android.graphics.Bitmap for Android
8 android: any;
9 options: ImageAssetOptions;
10}
11
12export interface ImageAssetOptions {
13 width?: number;
14 height?: number;
15 keepAspectRatio?: boolean;
16 autoScaleFactor?: boolean;
17}