CSEventPropertyProtocol

public protocol CSEventPropertyProtocol : CSProperty

Undocumented

  • onChange(_:) Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    @discardableResult
    func onChange(_ function: @escaping (T) -> Void) -> CSRegistration
  • onChangeOnce(_:) Extension method

    Undocumented

    Declaration

    Swift

    @discardableResult
    public func onChangeOnce(_ function: @escaping (T) -> Void) -> CSRegistration
  • onChangeOnce(_:) Extension method

    Undocumented

    Declaration

    Swift

    @discardableResult
    public func onChangeOnce(_ function: @escaping () -> Void) -> CSRegistration

Available where T: CSAnyProtocol

  • isSet Extension method

    Undocumented

    Declaration

    Swift

    var isSet: Bool { get }

Available where T == Bool

  • toggle() Extension method

    Undocumented

    Declaration

    Swift

    @discardableResult
    func toggle() -> Self
  • setFalse() Extension method

    Undocumented

    Declaration

    Swift

    @discardableResult
    func setFalse() -> Self
  • setTrue() Extension method

    Undocumented

    Declaration

    Swift

    @discardableResult
    func setTrue() -> Self
  • onFalse(function:) Extension method

    Undocumented

    Declaration

    Swift

    @discardableResult
    func onFalse(function: @escaping () -> Void) -> CSRegistration
  • onTrue(function:) Extension method

    Undocumented

    Declaration

    Swift

    @discardableResult
    func onTrue(function: @escaping () -> Void) -> CSRegistration
  • isTrue Extension method

    Undocumented

    Declaration

    Swift

    var isTrue: Bool { get set }
  • isFalse Extension method

    Undocumented

    Declaration

    Swift

    var isFalse: Bool { get set }

Available where T == String?

  • string Extension method

    Undocumented

    Declaration

    Swift

    var string: T { get set }
  • text(_:) Extension method

    Undocumented

    Declaration

    Swift

    func text(_ string: T)
  • string(_:) Extension method

    Undocumented

    Declaration

    Swift

    func string(_ string: T)
  • clear() Extension method

    Undocumented

    Declaration

    Swift

    func clear()