TrackingParameters
public struct TrackingParameters
A struct to hold all the values to be sent to the trackers.
-
The event name
Declaration
Swift
public let eventName: String -
Item Id
Declaration
Swift
public var itemId: String? -
Name
Declaration
Swift
public var name: String? -
Description
Declaration
Swift
public var description: String? -
Category
Declaration
Swift
public var category: String? -
Content Type
Declaration
Swift
public var contentType: String? -
Define custom parameters here
Declaration
Swift
public var customParameters: [String : Any] -
Init with event name only. The remaining parameters are all set to nil.
Declaration
Swift
public init(eventName: String)Parameters
eventNameevent name
-
Init with all the parameters. Event name is required, the remaining parameters are optionals.
Declaration
Swift
public init(eventName: String, itemId: String?, name: String?, description: String?, category: String?, contentType: String?)Parameters
eventNameevent name
itemIditem id
namename
descriptiondescription
categorycategory
contentTypecontent type
-
Init with event name and content type only. The remaining parameters are all set to nil.
Declaration
Swift
public init(eventName: String, contentType: String?)Parameters
eventNameevent name
contentTypecontent type
-
Init with event name and name only. The remaining parameters are all set to nil.
Declaration
Swift
public init(eventName: String, name: String?)Parameters
eventNameevent name
namename
-
The info displayed for the local notification when debugging tracking.
Declaration
Swift
public func debugInfo() -> StringReturn Value
A string with each non-nil parameter
View on GitHub
TrackingParameters Structure Reference