SOSUIAgentStreamReceivable

@protocol SOSUIAgentStreamReceivable

The SOSUIAgentStreamReceivable protocol allows your view controller implementation to handle an agent video stream.

  • Asks your delegate whether it can handle an agent video stream.

    Declaration

    Objective-C

    - (BOOL)willHandleAgentStream;

    Swift

    func willHandleAgentStream() -> Bool

    Return Value

    YES if the class can handle agent streams.

  • Asks your delegate whether it can handle remote movement of the video stream.

    Declaration

    Objective-C

    - (BOOL)willHandleRemoteMovement;

    Swift

    func willHandleRemoteMovement() -> Bool

    Return Value

    YES if the class can handle remote movement.

  • Asks your delegate whether it can handle audio level adjustments.

    Declaration

    Objective-C

    - (BOOL)willHandleAudioLevel;

    Swift

    func willHandleAudioLevel() -> Bool

    Return Value

    YES if the class can handle audio levels.

  • Tells your delegate when there is an agent video stream.

    Declaration

    Objective-C

    - (void)didReceiveAgentStreamView:(UIView *_Nonnull)agentStreamView;

    Swift

    optional func didReceiveAgentStreamView(_ agentStreamView: UIView)

    Parameters

    agentStreamView

    The view containing the agent stream.

  • Tells your delegate the new location coordinates of an agent stream.

    Declaration

    Objective-C

    - (void)didReceiveAgentStreamScreenCoordinate:(CGPoint)coordinate;

    Swift

    optional func didReceiveAgentStreamScreenCoordinate(_ coordinate: CGPoint)

    Parameters

    coordinate

    The new location coordinates.

  • Tells your delegate when the audio level has changed.

    Declaration

    Objective-C

    - (void)didReceiveAudioLevelUpdate:(CGFloat)audioLevel;

    Swift

    optional func didReceiveAudioLevelUpdate(_ audioLevel: CGFloat)

    Parameters

    audioLevel

    The new audio level.

  • Tells your delegate when the recording of the session has changed.

    Declaration

    Objective-C

    - (void)didReceiveRecordingUpdate:(BOOL)recording;

    Swift

    optional func didReceiveRecordingUpdate(_ recording: Bool)

    Parameters

    recording

    The recording value.