TVIAppScreenSourceDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TVIAppScreenSource.h |
Overview
TVIAppScreenSourceDelegate
receives important lifecycle events related to TVIAppScreenSource
.
By implementing these methods you can handle state changes and errors that may occur.
– appScreenSourceDidBecomeAvailable:
Screen capture has become available.
- (void)appScreenSourceDidBecomeAvailable:(nonnull TVIAppScreenSource *)source
Parameters
source |
The source that has become available. |
---|
Discussion
You may wish to enable your TVILocalVideoTrack
if you disabled it when the the source was unavailable.
Declared In
TVIAppScreenSource.h
– appScreenSourceDidBecomeUnavailable:
Screen capture has become unavailable.
- (void)appScreenSourceDidBecomeUnavailable:(nonnull TVIAppScreenSource *)source
Parameters
source |
The source that has become unavailable. |
---|
Discussion
You may wish to disable your TVILocalVideoTrack
, and update your UI when screen capture is unavailable.
Declared In
TVIAppScreenSource.h
– appScreenSource:didReceiveCaptureError:
The source received an error while capturing.
- (void)appScreenSource:(nonnull TVIAppScreenSource *)source didReceiveCaptureError:(nonnull NSError *)error
Parameters
source |
The source which received the error. |
---|---|
error |
The error received. |
Declared In
TVIAppScreenSource.h
– appScreenSource:didStopCapturingWithError:
The source unexpectedly stopped capturing.
- (void)appScreenSource:(nonnull TVIAppScreenSource *)source didStopCapturingWithError:(nullable NSError *)error
Parameters
source |
The source which stopped. |
---|---|
error |
The error which caused the source to stop. |
Declared In
TVIAppScreenSource.h