CustomAttributes

@objc(THEOplayerCustomAttributes)
public class CustomAttributes : NSObject, Codable

An array of CustomAttribute objects for the dateRangeCue.

  • The Double value from the CustomAttribute list.

    Declaration

    Swift

    public func getDouble(for key: String) throws -> Double?
  • The String value from the CustomAttribute list.

    Declaration

    Swift

    public func getString(for key: String) throws -> String?
  • The byte buffer from the CustomAttribute list.

    Declaration

    Swift

    public func getBytes(for key: String) throws -> Data?
  • The CustomAttribute list as a dictionary.

    Declaration

    Swift

    @objc
    public func getAttributesAsDictionary() -> [String : CustomAttribute]