Instance Method


Returns the receiver’s property for a given key.


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



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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software