CustomDemensionMappingHelper
class CustomDemensionMappingHelper
Undocumented
-
File Name of the Custom Dimension plist
Declaration
Swift
static let mappingFileName: String
-
Undocumented
Declaration
Swift
static let fileExension: String
-
Array of Mapping items for Custom Dimension mapping
Declaration
Swift
static var mappingArray: [String]
-
Load Custom Dimension mapping data from the plist
Declaration
Swift
private class func retrieveMappingArray() -> [String]
Return Value
Array of Custom Dimension items
-
Transfer Mapping index to Custom Dimension. We need math index of the item for mapping.
Declaration
Swift
private class func customDemensionIndex(mappingIndex: Int) -> Int?
Parameters
mappingIndex
Current Index of the mapping array.
Return Value
Math Index of the Custom Dimension
mappingIndex + 1
-
Cast dictionary to [String:String].
Declaration
Swift
private class func castDictionary(customParamenters: [String : Any]?) -> [String : String]
Parameters
customParamenters
custom parameters to cast
Return Value
If can not cust or wrong format return empty object
-
Add Custom Dimension parameters to custom parameters, comparing with mapping items
Declaration
Swift
class func paramsForCustomDemensions(customParamenters: [String : Any]?) -> [String : String]
Parameters
customParamenters
original custom parameters
Return Value
original custom parameters in case no custom dimension founded otherwise updated dictionary