CodableCardItem
public struct CodableCardItem : CardItemModel, Codable
A concrete type of CardItemModel which conforms to Codable. Used for card authoring scena
-
Identifier
Declaration
Swift
public var id: String -
Titile
Declaration
Swift
public var title_: String -
Subtitle
Declaration
Swift
public var subtitle_: String? -
Detail / Cover image (read-only)
Declaration
Swift
public var detailImage_: Data? { get } -
Detail / Cover image (writable) Note: prefer this property over
detailImage_Declaration
Swift
public var image_: CardImage? -
Action text to be displayed for a card
Declaration
Swift
public var actionText_: String? -
URL to be invoked when action gets triggered
Declaration
Swift
public var actionContentURL_: URL? -
Icon used for the marker/card
Declaration
Swift
public var icon_: String? -
Position of the annotation anchor on the x, y and z axis
Declaration
Swift
public var position_: SIMD3<Float>? -
Initializer
Declaration
Swift
public init(id: String, title_: String, subtitle_: String? = nil, detailImage_: Data? = nil, image: CardImage? = nil, actionText_: String? = nil, actionContentURL_: URL? = nil, icon_: String? = nil, position_: SIMD3<Float>? = nil)Parameters
idCard’s title
title_Card’s title
subtitle_Card’s subtitle
detailImage_Card’s image (read-only) Legacy. Use
imageinsteadimageCards’s image
actionText_Card’s action
actionContentURL_URL to be invoked card’s when action gets triggered
icon_Cards’s icon
position_Position of the marker on the x, y and z axis