ActivityMetadataBuilder
public class ActivityMetadataBuilder
This is a builder for creating Metadata instances without requiring a mutable type or ugly initializer permutation.
See
ActivityMetadata.build
for the function that creates this builder.
-
Set to a title representing this item, such as a document file name or title.
Declaration
Swift
public var title: String? { get set }
-
Set to a subtitle representing this item, such as a document summary.
Declaration
Swift
public var subtitle: String? { get set }
-
Set to a thumbnail to show when displaying this activity
Declaration
Swift
public var thumbnail: FlintImage? { get set }
-
Set to thumbnail data to show when displaying this activity
Declaration
Swift
public var thumbnailData: Data? { get set }
-
Set to URL pointing at local thumbnail data to show when displaying this activity
Declaration
Swift
public var thumbnailURL: URL? { get set }
-
Set any keywords that apply to this input’s activity
Declaration
Swift
public var keywords: Set<String>? { get set }
-
Set to any specific searchAttributes you wish to define.
Note
subtitle
is used to setcontentDescription
, so you only need to use this to define other Spotlight attributes such ascontentCreationDate
orkind
.Declaration
Swift
public var searchAttributes: CSSearchableItemAttributeSet? { get set }