Include
public struct Include : OptionSet
The AssetQuery.Include
is parameter for including count
, relative URLs
,
and dimensions
in result.
-
Creates a new option set from the given raw value.
Declaration
Swift
public init(rawValue: Int)
Parameters
rawValue
The raw value of the option set to create. Each bit of
rawValue
potentially represents an element of theAssetQuery.Include
, though raw values may include bits that are not defined as distinct values of theAssetQuery.Include
type. -
Each bit of
rawValue
potentially represents an element of the option setDeclaration
Swift
public let rawValue: Int
-
To include count in the response.
Declaration
Swift
public static let count: Include
-
To include the relative URLs of the assets in the response.
Declaration
Swift
public static let relativeURL: Include
-
To include the dimensions (height and width) of the image in the response. Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, and PSD.
Declaration
Swift
public static let dimension: Include
-
Retrieve the published content of the fallback locale if an entry is not localized in specified locale.
Declaration
Swift
public static let fallback: Include
-
To inclide all
AssetQuery.Include
values.Declaration
Swift
public static let all: Include