GenericCharacteristic
public class GenericCharacteristic<T> : Characteristic, JSONSerializable, Hashable, Equatable where T : CharacteristicValueType
Undocumented
-
Undocumented
Declaration
Swift
public let type: CharacteristicType
-
Undocumented
Declaration
Swift
public var value: T? { get set }
-
Undocumented
Declaration
Swift
public let permissions: [CharacteristicPermission]
-
Undocumented
Declaration
Swift
public var description: String?
-
Undocumented
Declaration
Swift
public let format: CharacteristicFormat?
-
Undocumented
Declaration
Swift
public let unit: CharacteristicUnit?
-
Undocumented
Declaration
Swift
public let maxLength: Int?
-
Undocumented
Declaration
Swift
public var maxValue: Double?
-
Undocumented
Declaration
Swift
public var minValue: Double?
-
Undocumented
Declaration
Swift
public var minStep: Double?
-
Undocumented
Declaration
Swift
public var validValues: [Double]
-
Undocumented
Declaration
Swift
public var validValuesRange: Range<Double>?
-
init(type:
value: permissions: description: format: unit: maxLength: maxValue: minValue: minStep: validValues: validValuesRange: ) Undocumented
Declaration
Swift
public init(type: CharacteristicType, value: T? = nil, permissions: [CharacteristicPermission] = [.read, .write, .events], description: String? = nil, format: CharacteristicFormat? = nil, unit: CharacteristicUnit? = nil, maxLength: Int? = nil, maxValue: Double? = nil, minValue: Double? = nil, minStep: Double? = nil, validValues: [Double] = [], validValuesRange: Range<Double>? = nil)
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public static func == (lhs: GenericCharacteristic, rhs: GenericCharacteristic) -> Bool