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

    mimetypeGroup

    The mimetype_group which 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

    mimetypeGroup

    The mimetype_group which all returned Assets will match.