Type alias LaunchCropperParams
Launch
Cropper
Params
: { page
: IPage; asset
: IFile | IImage; aspectRatio
?: { x
: number; y
: number }; cropShape
?: CropShape; headerBarTitle
?: string; enableFreeStyleCrop
?: boolean; android
?: { rotateText
?: string; scaleText
?: string; cropText
?: string; hideBottomControls
?: boolean; maxResultSize
?: { height
: number; width
: number }; fixOrientation
?: boolean; maxImageSize
?: number }; ios
?: { aspectRatioPickerButtonHidden
: boolean; resetButtonHidden
?: boolean; resetAspectRatioEnabled
?: boolean; aspectRatioLockDimensionSwapEnabled
?: boolean; rotateButtonsHidden
?: boolean; showOnlyIcons
?: boolean; doneButtonTitle
?: string; cancelButtonTitle
?: string; doneButtonColor
?: IColor; cancelButtonColor
?: IColor }; onSuccess
: ((params
: { image
?: IImage }) => void); onCancel
?: (() => void); onFailure
?: ((e
: { message
: string }) => void) }
Type declaration
-
-
-
Optional
aspectRatio?: { x: number; y: number }
-
Optional
cropShape?: CropShape
-
Optional
headerBarTitle?: string
-
Optional
enableFreeStyleCrop?: boolean
-
Optional
android?: { rotateText?: string; scaleText?: string; cropText?: string; hideBottomControls?: boolean; maxResultSize?: { height: number; width: number }; fixOrientation?: boolean; maxImageSize?: number }
-
Optional
rotateText?: string
-
Optional
scaleText?: string
-
Optional
cropText?: string
-
Optional
hideBottomControls?: boolean
-
Optional
maxResultSize?: { height: number; width: number }
-
height: number
-
width: number
-
Optional
fixOrientation?: boolean
-
Optional
maxImageSize?: number
-
Optional
ios?: { aspectRatioPickerButtonHidden: boolean; resetButtonHidden?: boolean; resetAspectRatioEnabled?: boolean; aspectRatioLockDimensionSwapEnabled?: boolean; rotateButtonsHidden?: boolean; showOnlyIcons?: boolean; doneButtonTitle?: string; cancelButtonTitle?: string; doneButtonColor?: IColor; cancelButtonColor?: IColor }
-
aspectRatioPickerButtonHidden: boolean
-
Optional
resetButtonHidden?: boolean
-
Optional
resetAspectRatioEnabled?: boolean
-
Optional
aspectRatioLockDimensionSwapEnabled?: boolean
-
Optional
rotateButtonsHidden?: boolean
-
Optional
showOnlyIcons?: boolean
-
Optional
doneButtonTitle?: string
-
Optional
cancelButtonTitle?: string
-
Optional
doneButtonColor?: IColor
-
Optional
cancelButtonColor?: IColor
-
onSuccess: ((params: { image?: IImage }) => void)
-
- (params: { image?: IImage }): void
-
Returns void
-
Optional
onCancel?: (() => void)
-
Optional
onFailure?: ((e: { message: string }) => void)
-
- (e: { message: string }): void
-
Returns void