NativeTitle
@objcMembers
public class NativeTitle : NSObject, JsonDecodable
Represents the title element in a native ad, including optional text and length.
-
The text associated with the text element.
Declaration
Swift
public var text: String? -
The length of the title being provided. Required if using assetsurl/dcourl representation, optional if using embedded asset representation.
Declaration
Swift
public var length: Int? -
This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification
Declaration
Swift
public var ext: [String : Any]? -
Initializes a
NativeTitleobject from a JSON dictionary.Declaration
Swift
public required init(jsonDictionary: [String : Any])Parameters
jsonDictionaryA dictionary containing the JSON representation of the title.
-
Initializes a
NativeTitleobject with default values.Declaration
Swift
public override init()