AssetQuery
public final class AssetQuery: Query
Queries on Asset types. All methods from Query, and therefore ChainableQuery, are inherited and available.
-
Convenience intializer for creating an AssetQuery with the
mimetype_group
parameter specified. Example usage:let query = AssetQuery(whereMimetypeGroupIs: .image) client.fetchAssets(with: query).observable.then { assetsResponse in let assets = assetsResponse.items // Do stuff with assets. }Declaration
Swift
public convenience init(whereMimetypeGroupIs mimetypeGroup: MimetypeGroup)Parameters
mimetypeGroupThe
mimetype_groupwhich all returned Assets will match. -
Instance method for mutating the query further to specify the mimetype group when querying assets.
Declaration
Swift
public func mimetypeGroup(is mimetypeGroup: MimetypeGroup)Parameters
mimetypeGroupThe
mimetype_groupwhich all returned Assets will match.
View on GitHub
AssetQuery Class Reference