wechat_camera_picker library

Classes

AdvancedCustomFilter
The advanced custom filter.
AndroidMediaColumns
A class that contains the names of the columns used in the custom filter.
AndroidPermission
The permission for android.
AssetEntity
The abstraction of assets (images/videos/audios). It represents a series of fields MediaStore on Android and the PHAsset 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 the PHAssetCollection 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.
CameraValue
The state of a CameraController.
ColumnUtils
Utility functions for working with the CustomColumns class.
ColumnWhereCondition
The where condition item.
CustomColumns
A class that contains the names of the columns used in the custom filter.
CustomFilter
Full custom filter.
DarwinColumns
A class that contains the names of the columns of the iOS/macOS platform.
DateColumnWhereCondition
The where condition item for date type.
DateTimeCond
A class that specifies the date and time constraints for queried assets.
DurationConstraint
A class that specifies the duration constraints for queried assets.
EnglishCameraPickerTextDelegate
Text delegate implements with English.
FilterOption
A series of filter options for AssetType when querying assets.
FilterOptionGroup
A collection of filtering and sorting options for querying assets.
ImageFormat
Describes how pixels are represented in an image.
LatLng
Represents a geographical location as a latitude-longitude pair.
NotifyManager
The manager for receiving notifications when assets change.
Optional<T>
A value that might be absent.
OrderByItem
The order by item.
OrderOption
A class that specifies the ordering criteria for queried assets.
PermissionRequestOption
See PermissionState.
PhotoCachingManager
The cache manager that helps to create/remove caches with specified assets.
PhotoManager
The core manager of this package, providing methods for accessing and managing assets.
PhotoManagerPlugin
The plugin class is the core class that call channel's methods.
Plane
A single color plane of image data.
PMDarwinPathFilter
For filter the AssetPathEntity on macOS and iOS.
PMFilter
The base class of all the filters.
PMPathFilter
For filter the AssetPathEntity.
PMProgressHandler
Manages the progress of asset downloads from cloud storage services, such as iCloud.
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
A class that specifies the size constraints for queried images.
SqlCustomFilter
The sql custom filter.
TextWhereCondition
The where condition item for text.
ThumbnailOption
The options used when requesting thumbnails.
ThumbnailSize
The dimensions of the thumbnail data for an AssetEntity.
VietnameseCameraPickerTextDelegate
Text delegate implemented with Vietnamese. Dịch tiếng Việt
WhereConditionGroup
The group of WhereConditionItem and WhereConditionGroup.
WhereConditionItem
The where condition item.
WhereItem
Where item class
XFile
A CrossFile is a cross-platform, simplified File abstraction.

Enums

AssetType
The type of the asset.
BaseFilterType
The type of the filter.
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.
LogicalType
The logical operator used in the CustomFilter.
OrderOptionType
An enumeration of possible options for sorting asset lists.
PermissionState
Information about app’s authorization to access the user’s photo library.
PMDarwinAssetCollectionSubtype
See document: https://developer.apple.com/documentation/photokit/phassetcollectionsubtype
PMDarwinAssetCollectionType
The type of PHAssetCollection.
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
An enumeration of special image types.
ThumbnailFormat
Which format the thumbnail should be, generally support JPG and PNG.

Functions

availableCameras() Future<List<CameraDescription>>
Completes with a list of available cameras.
cameraPickerTextDelegateFromLocale(Locale? locale) CameraPickerTextDelegate
Obtain the text delegate from the given locale.

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 = void Function(CameraImage image)
Signature for a callback receiving the a camera image.
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.