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.