Type alias MultimediaParams
Multimedia
Params
: { type
?: Type; page
: IPage; action
?: ActionType; allowsEditing
?: boolean; aspectRatio
?: { x
: number; y
: number }; ios
?: { cameraFlashMode
?: CameraFlashMode; cameraDevice
?: CameraDevice }; android
?: { cropShape
?: CropShape; rotateText
?: string; scaleText
?: string; cropText
?: string; headerBarTitle
?: string; hideBottomControls
?: boolean; enableFreeStyleCrop
?: boolean; maxResultSize
?: { height
: number; width
: number }; fixOrientation
?: boolean; maxImageSize
?: number }; onSuccess
: ((params
: { image
?: IImage; video
?: IFile }) => void); onCancel
?: (() => void); onFailure
?: ((e
: { message
: string }) => void) }
Type declaration
-
Optional
type?: Type
-
-
-
Optional
allowsEditing?: boolean
-
Optional
aspectRatio?: { x: number; y: number }
-
-
Optional
android?: { cropShape?: CropShape; rotateText?: string; scaleText?: string; cropText?: string; headerBarTitle?: string; hideBottomControls?: boolean; enableFreeStyleCrop?: boolean; maxResultSize?: { height: number; width: number }; fixOrientation?: boolean; maxImageSize?: number }
-
Optional
cropShape?: CropShape
-
Optional
rotateText?: string
-
Optional
scaleText?: string
-
Optional
cropText?: string
-
Optional
headerBarTitle?: string
-
Optional
hideBottomControls?: boolean
-
Optional
enableFreeStyleCrop?: boolean
-
Optional
maxResultSize?: { height: number; width: number }
-
height: number
-
width: number
-
Optional
fixOrientation?: boolean
-
Optional
maxImageSize?: number
-
onSuccess: ((params: { image?: IImage; video?: IFile }) => void)
-
- (params: { image?: IImage; video?: IFile }): void
-
Returns void
-
Optional
onCancel?: (() => void)
-
Optional
onFailure?: ((e: { message: string }) => void)
-
- (e: { message: string }): void
-
Returns void