Instance Method


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.


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



The value for key.


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

Return Value

true if the value is accepted by the receiver, otherwise false.

See Also

Configuring Streams

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

Returns the receiver’s property for a given key.

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