ContentShareObserver
@objc
public protocol ContentShareObserver
ContentShareObserver
handles all callbacks related to the content share.
By implementing the callback functions and registering with ContentShareController.addContentShareObserver
,
one can get notified with content share status events.
-
Called when the content share has started.
Note: this callback will be called on main thread.
Declaration
Swift
func contentShareDidStart()
-
Called when the content is no longer shared with other attendees with the reason provided in the status. If you no longer need the source producing frames, stop the source after this callback is invoked.
Note: this callback will be called on main thread.
Declaration
Swift
func contentShareDidStop(status: ContentShareStatus)
Parameters
status
the reason why the content share has stopped