Instance Method

property(forKey:)

Returns the receiver’s property for a given key.

Declaration

func property(forKey key: Stream.PropertyKey) -> Any?

Parameters

key

The key for one of the receiver's properties. See Constants for a description of the available property-key constants and associated values.

Return Value

The receiver’s property for the key key.

See Also

Configuring Streams

func setProperty(Any?, forKey: Stream.PropertyKey) -> Bool

Attempts to set the value of a given property of the receiver and returns a Boolean value that indicates whether the value is accepted by the receiver.

var delegate: StreamDelegate?

Sets the receiver’s delegate.