CustomData
@objc(BMACustomData)
@objcMembers
public class CustomData : NSObject
-
Optional free-form custom data
Declaration
Swift
public let customData1: String?
-
Optional free-form custom data
Declaration
Swift
public let customData2: String?
-
Optional free-form custom data
Declaration
Swift
public let customData3: String?
-
Optional free-form custom data
Declaration
Swift
public let customData4: String?
-
Optional free-form custom data
Declaration
Swift
public let customData5: String?
-
Optional free-form custom data
Declaration
Swift
public let customData6: String?
-
Optional free-form custom data
Declaration
Swift
public let customData7: String?
-
Optional free-form custom data
Declaration
Swift
public let customData8: String?
-
Optional free-form custom data
Declaration
Swift
public let customData9: String?
-
Optional free-form custom data
Declaration
Swift
public let customData10: String?
-
Optional free-form custom data
Declaration
Swift
public let customData11: String?
-
Optional free-form custom data
Declaration
Swift
public let customData12: String?
-
Optional free-form custom data
Declaration
Swift
public let customData13: String?
-
Optional free-form custom data
Declaration
Swift
public let customData14: String?
-
Optional free-form custom data
Declaration
Swift
public let customData15: String?
-
Optional free-form custom data
Declaration
Swift
public let customData16: String?
-
Optional free-form custom data
Declaration
Swift
public let customData17: String?
-
Optional free-form custom data
Declaration
Swift
public let customData18: String?
-
Optional free-form custom data
Declaration
Swift
public let customData19: String?
-
Optional free-form custom data
Declaration
Swift
public let customData20: String?
-
Optional free-form custom data
Declaration
Swift
public let customData21: String?
-
Optional free-form custom data
Declaration
Swift
public let customData22: String?
-
Optional free-form custom data
Declaration
Swift
public let customData23: String?
-
Optional free-form custom data
Declaration
Swift
public let customData24: String?
-
Optional free-form custom data
Declaration
Swift
public let customData25: String?
-
Optional free-form custom data
Declaration
Swift
public let customData26: String?
-
Optional free-form custom data
Declaration
Swift
public let customData27: String?
-
Optional free-form custom data
Declaration
Swift
public let customData28: String?
-
Optional free-form custom data
Declaration
Swift
public let customData29: String?
-
Optional free-form custom data
Declaration
Swift
public let customData30: String?
-
Optional free-form label
Declaration
Swift
public let experimentName: String?
-
init(customData1:
customData2: customData3: customData4: customData5: customData6: customData7: customData8: customData9: customData10: customData11: customData12: customData13: customData14: customData15: customData16: customData17: customData18: customData19: customData20: customData21: customData22: customData23: customData24: customData25: customData26: customData27: customData28: customData29: customData30: experimentName: ) Declaration
Swift
@nonobjc public init( customData1: String? = nil, customData2: String? = nil, customData3: String? = nil, customData4: String? = nil, customData5: String? = nil, customData6: String? = nil, customData7: String? = nil, customData8: String? = nil, customData9: String? = nil, customData10: String? = nil, customData11: String? = nil, customData12: String? = nil, customData13: String? = nil, customData14: String? = nil, customData15: String? = nil, customData16: String? = nil, customData17: String? = nil, customData18: String? = nil, customData19: String? = nil, customData20: String? = nil, customData21: String? = nil, customData22: String? = nil, customData23: String? = nil, customData24: String? = nil, customData25: String? = nil, customData26: String? = nil, customData27: String? = nil, customData28: String? = nil, customData29: String? = nil, customData30: String? = nil, experimentName: String? = nil )
-
Utility builder for
CustomData
objectsCreate new customData
let builder = CustomData.Builder() builder.withCustomData1("my custom data") let customData = builder.build()
Change existing customData
See morelet existingCustomData = analyticsCollector.customData let builder = CustomData.Builder(from: existingCustomData) builder.withCustomData1("new value") analyticsCollector.customData = builder.build()
Declaration
Swift
@objc(BMACustomDataBuilder) @objcMembers class Builder : NSObject
-
copy(customData1:
customData2: customData3: customData4: customData5: customData6: customData7: customData8: customData9: customData10: customData11: customData12: customData13: customData14: customData15: customData16: customData17: customData18: customData19: customData20: customData21: customData22: customData23: customData24: customData25: customData26: customData27: customData28: customData29: customData30: experimentName: ) Copies the object and overwrites the provided values
Use this method to copy
CustomData
you need to change during runtimeBitmovin Player Usage
guard let currentSource = player.source else { return } let newCustomData = analyticsCollector.customData(for: currentSource).copy(customData1: "newValue") analyticsCollector.apply(customData: newCustomData, for: currentSource)
Usage
let newCustomData = analyticsCollector.customData.copy(customData1: "newValue") analyticsCollector.customData = newCustomData
Declaration
Swift
@nonobjc func copy( customData1: String? = nil, customData2: String? = nil, customData3: String? = nil, customData4: String? = nil, customData5: String? = nil, customData6: String? = nil, customData7: String? = nil, customData8: String? = nil, customData9: String? = nil, customData10: String? = nil, customData11: String? = nil, customData12: String? = nil, customData13: String? = nil, customData14: String? = nil, customData15: String? = nil, customData16: String? = nil, customData17: String? = nil, customData18: String? = nil, customData19: String? = nil, customData20: String? = nil, customData21: String? = nil, customData22: String? = nil, customData23: String? = nil, customData24: String? = nil, customData25: String? = nil, customData26: String? = nil, customData27: String? = nil, customData28: String? = nil, customData29: String? = nil, customData30: String? = nil, experimentName: String? = nil ) -> CustomData
-
Declaration
Swift
override func isEqual(_ object: Any?) -> Bool