You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// A collection of filtering and sorting options for querying assets.
12
+
///
13
+
/// Use this class to specify how to filter and sort a set of assets returned by [PhotoManager].
14
+
///
15
+
/// The [FilterOptionGroup] object contains several [FilterOption] objects, one for each type of asset (image, video, audio).
16
+
/// You can set specific filtering and sorting options for each type of asset using the corresponding [FilterOption] object.
17
+
///
18
+
/// Additionally, you can specify whether to include modified path results, whether to include live photos,
19
+
/// or whether to only include live photos, using the appropriate properties of this object.
20
+
///
21
+
/// Finally, you can use the [orders] property to specify sorting options for the results.
12
22
classFilterOptionGroupextendsPMFilter {
13
23
/// Construct a default options group.
24
+
///
25
+
/// Parameters:
26
+
///
27
+
/// * `imageOption`: The option for filtering image assets. Defaults to [FilterOption].
28
+
/// * `videoOption`: The option for filtering video assets. Defaults to [FilterOption].
29
+
/// * `audioOption`: The option for filtering audio assets. Defaults to [FilterOption].
30
+
/// * `containsPathModified`: Whether the result should contain assets whose file path has been modified. Defaults to `false`.
31
+
/// * `containsLivePhotos`: Whether the result should contain live photos. This option only takes effects on iOS. Defaults to `true`.
32
+
/// * `onlyLivePhotos`: Whether the result should only contain live photos. This option only takes effects on iOS and when the request type is image. Defaults to `false`.
33
+
/// * `createTimeCond`: The condition for filtering asset creation time. See [DateTimeCond] for more information. Defaults to `DateTimeCond.def()`.
34
+
/// * `updateTimeCond`: The condition for filtering asset update time. See [DateTimeCond] for more information. By default, this option is ignored.
35
+
/// * `orders`: A list of options for sorting the results. Defaults to an empty list.
14
36
FilterOptionGroup({
15
37
FilterOption imageOption =constFilterOption(),
16
38
FilterOption videoOption =constFilterOption(),
@@ -32,37 +54,78 @@ class FilterOptionGroup extends PMFilter {
32
54
}
33
55
34
56
/// Construct an empty options group.
57
+
///
58
+
/// Returns a new [FilterOptionGroup] instance with default options for all asset types and no other filters applied.
35
59
FilterOptionGroup.empty();
36
60
37
61
/// Whether to obtain only live photos.
38
62
///
39
63
/// This option only takes effects on iOS and when the request type is image.
40
64
bool onlyLivePhotos =false;
41
65
42
-
/// Whether to obtain live photos.
66
+
/// Whether the result should contain live photos.
0 commit comments