UCamera class abstract
One-call helpers to capture media, mirroring UFile.showImagePicker.
Constructors
- UCamera()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
open(
{UCameraOptions options = const UCameraOptions(), dynamic action(List< FileData> )?}) → Future<List< FileData> > -
Opens the full camera page and returns everything captured. Also invokes
actionwith the result (empty list if cancelled). -
recordVideo(
{UCameraOptions options = const UCameraOptions(), dynamic action(FileData?)?}) → Future< FileData?> - Records a single video. Returns null if cancelled.
-
takePhoto(
{UCameraOptions options = const UCameraOptions(), dynamic action(FileData?)?}) → Future< FileData?> - Captures a single photo. Returns null if cancelled.
-
takePhotos(
{int maxCount = 0, UCameraOptions options = const UCameraOptions(), dynamic action(List< FileData> )?}) → Future<List< FileData> > -
Captures multiple photos in one session.
maxCount0 means unlimited.