wechat_camera_picker library Null safety
Classes
- AssetEntity
-
The abstraction of assets (images/videos/audios).
It represents a series of fields
MediaStore
on Android and thePHAsset
object on iOS/macOS. - AssetEntityImage
- A widget that displays an AssetEntity image.
- AssetEntityImageProvider
- The ImageProvider that handles AssetEntity.
- AssetPathEntity
-
The abstraction of albums and folders.
It represent a bucket in the
MediaStore
on Android, and thePHAssetCollection
object on iOS/macOS. - CameraController
- Controls a device camera.
- CameraDescription
- Properties of a camera device.
- CameraFocusPoint
- CameraFocusPointPainter
- A CustomPaint that draws the exposure point with four arcs and one circle. 包含了四条弧及一个圆的曝光点绘制。
- CameraImage
- A single complete image buffer from the platform camera.
- CameraPicker
- The camera picker widget. 拍照选择器。
- CameraPickerConfig
- Configurations for the CameraPicker. CameraPicker 的配置项
-
CameraPickerPageRoute<
T> - Built a slide page transition for the picker. 为选择器构造一个上下进出的页面过渡动画
- CameraPickerState
- CameraPickerTextDelegate
- Text delegate implemented with Chinese. 中文文字实现
- CameraPickerViewer
- CameraPickerViewerState
- CameraPreview
- A widget showing a live camera preview.
- CameraProgressButton
- CameraProgressButtonPainter
- CameraValue
- The state of a CameraController.
- DateTimeCond
- DurationConstraint
- Constraints of duration.
- EnglishCameraPickerTextDelegate
- Text delegate implements with English.
- FilterOption
- A series of filter options for AssetType when querying assets.
- FilterOptionGroup
- The group class to obtain FilterOptions.
- ImageFormat
- Describes how pixels are represented in an image.
- LatLng
- Longitude and latitude.
- NotifyManager
- The notify manager when assets changed.
-
Optional<
T> - A value that might be absent.
- OrderOption
- PermissionRequestOption
- See PermissionState.
- PhotoCachingManager
- The cache manager that helps to create/remove caches with specified assets.
- PhotoManager
- The core manager of this plugin. Use various methods in this class to access & manage assets.
- PhotoManagerPlugin
- The plugin class is the core class that call channel's methods.
- Plane
- A single color plane of image data.
- PMProgressHandler
- Handling assets loading progress when they need to download from cloud. Typically for iCloud assets downloading.
- PMProgressState
- A state class that contains progress of the current downloading and state to indicate the request state of the asset.
- RequestType
- The request type when requesting paths.
- SizeConstraint
- Constraints of asset pixel width and height.
- ThumbnailOption
- The thumbnail option when requesting assets.
- ThumbnailSize
- The width and height dimensions for the thumbnail data of an AssetEntity.
- XFile
- A CrossFile is a cross-platform, simplified File abstraction.
Extensions
Constants
-
cameraPickerTextDelegates
→ const List<
CameraPickerTextDelegate> -
All text delegates.
<CameraPickerTextDelegate>[CameraPickerTextDelegate(), EnglishCameraPickerTextDelegate()]
Functions
-
availableCameras(
) → Future< List< CameraDescription> > - Completes with a list of available cameras.
-
cameraPickerTextDelegateFromLocale(
Locale? locale) → CameraPickerTextDelegate - Obtain the text delegate from the given locale.
Enums
- AssetType
- The type of the asset.
- CameraLensDirection
- The direction the camera is facing.
- CameraPickerViewType
- Two types for the viewer: image and video. 两种预览类型:图片和视频
- DeliveryMode
-
Enumeration for
PHImageRequestOptionsDeliveryMode
on iOS/macOS. - ExposureMode
- The possible exposure modes that can be set for a camera.
- FlashMode
- The possible flash modes that can be set for a camera
- FocusMode
- The possible focus modes that can be set for a camera.
- ImageFileType
- Common file types for images.
- ImageFormatGroup
- Group of image formats that are comparable across Android and iOS platforms.
- IosAccessLevel
- The app’s level of access to the user’s photo library.
- OrderOptionType
- PermissionState
- Information about app’s authorization to access the user’s photo library.
- PMRequestState
- Indicate the current state when an asset is loading with PMProgressHandler.
- ResizeContentMode
- Fitting an image’s aspect ratio to a requested size on iOS/macOS.
- ResizeMode
- Specifies how to resize the requested image on iOS/macOS.
- ResolutionPreset
- Affect the quality of video recording and image capture:
- SpecialImageType
- Some special image types.
- ThumbnailFormat
- Which format the thumbnail should be, generally support JPG and PNG.
Typedefs
- CameraErrorHandler = void Function(Object error, StackTrace? stackTrace)
- The error handler when any error occurred during the picking process. 拍摄照片过程中的自定义错误处理
- EntitySaveCallback = FutureOr Function(BuildContext context, CameraPickerViewType viewType, File file)
- The callback type define for saving entity in the viewer. 在查看器中保存图片时的回调
- ForegroundBuilder = Widget Function(BuildContext context, CameraController? controller)
- Build the foreground/overlay widget with the given CameraValue. 根据给定的 CameraValue 构建自定义的前景 widget
- onLatestImageAvailable = dynamic Function(CameraImage image)
- Signature for a callback receiving the a camera image.
- PermisstionRequestOption = PermissionRequestOption
- PreviewTransformBuilder = Widget? Function(BuildContext context, CameraController controller, Widget child)
- Build the transformed widget with the given CameraController. 根据给定的 CameraController 构建自定义的变换 widget
- XFileCapturedCallback = bool Function(XFile, CameraPickerViewType)
- The callback type definition when the XFile is captured by the camera. 拍摄文件生成后的回调
Exceptions / Errors
- CameraException
- This is thrown when the plugin reports an error.