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?
  • 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 objects

    Create new customData

    let builder = CustomData.Builder()
    builder.withCustomData1("my custom data")
    let customData = builder.build()
    

    Change existing customData

    let existingCustomData = analyticsCollector.customData
    let builder = CustomData.Builder(from: existingCustomData)
    builder.withCustomData1("new value")
    analyticsCollector.customData = builder.build()
    
    See more

    Declaration

    Swift

    @objc(BMACustomDataBuilder)
    @objcMembers
    class Builder : NSObject
  • Copies the object and overwrites the provided values

    Use this method to copy CustomData you need to change during runtime

    Bitmovin 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