Interface MediaItemSortOptions
-
public interface MediaItemSortOptions
Represents the media item sort options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MediaItemSortOptions.SortBy
Sort options.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MediaItemSortOptions.SortBy
getOption()
Returns the sort option.boolean
isAscending()
Returns true if sort order is ascending or false if it is descending.void
setAscending(boolean ascending)
Sets the sort order.void
setOption(MediaItemSortOptions.SortBy sort)
Sets the sort option.
-
-
-
Method Detail
-
isAscending
boolean isAscending()
Returns true if sort order is ascending or false if it is descending.- Returns:
- true if sort order is ascending, false otherwise
-
setAscending
void setAscending(boolean ascending)
Sets the sort order. If set to true, sort order is set to ascending, otherwise it is descending.- Parameters:
ascending
- the sort order to set, true for ascending or false for descending
-
getOption
MediaItemSortOptions.SortBy getOption()
Returns the sort option.- Returns:
- the sort option
-
setOption
void setOption(MediaItemSortOptions.SortBy sort)
Sets the sort option.- Parameters:
sort
- the sort option to set
-
-