YRTLogging
|
class YRTLogging : NSObject |
Interface for subscribing to and unsubscribing from log messages.
Summary
Instance methods
|
func subscribe(with logListener: any YRTLogListener) |
|
func unsubscribe(with logListener: any YRTLogListener) |
Properties
|
var isValid: Bool { get } |
Instance methods
subscribe(with:)
|
func subscribe(with logListener: any YRTLogListener) |
Subscribes a listener to receive log messages.
The class does not retain the object in the 'logListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
|
Parameters |
|
|
logListener |
The listener to subscribe. |
unsubscribe(with:)
|
func unsubscribe(with logListener: any YRTLogListener) |
Unsubscribes a listener from receiving log messages.
The class does not retain the object in the 'logListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
|
Parameters |
|
|
logListener |
The listener to unsubscribe. |
Properties
isValid
|
var isValid: Bool { get } |
Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.