Property
open class Property<TypeSpec> where TypeSpec : PropertyTypeSpec
A property on a window. Property values are watched and cached in the background, so they are always available to read.
Throws
OnlyPropertyError
errors are given for rejected promises.
-
Undocumented
Declaration
Swift
public typealias PropertyType = TypeSpec.PropertyType
-
Undocumented
Declaration
Swift
public typealias NonOptionalType = TypeSpec.NonOptionalType
-
Undocumented
Declaration
Swift
public typealias OptionalType = TypeSpec.NonOptionalType?
-
The value of the property.
Declaration
Swift
public var value: PropertyType { get }
-
Forces the value of the property to refresh. Most properties are watched so you don’t need to call this yourself.
Declaration
Swift
@discardableResult public final func refresh() -> Promise<PropertyType>