> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# VIInAppSharingVideoSourceDelegate

Delegate mathods to handle in-app screen sharing video source events.

@objc protocol VIInAppSharingVideoSourceDelegate

## Methods

### inAppSharingVideoSource(\_:didFailWith:)

@objc optional func inAppSharingVideoSource(\
    \_ source: [VIInAppSharingVideoSource](/api-reference/iossdk/calls/viinappsharingvideosource),\
    didFailWith error: [VIVideoSourceError](/api-reference/iossdk/calls/vivideosourceerror)\
)

Triggered when an in-app screen sharing video source has failed to start capturing video.

**Parameters**

**source** [VIInAppSharingVideoSource](/api-reference/iossdk/calls/viinappsharingvideosource)

In-app screen sharing video source

**error** [VIVideoSourceError](/api-reference/iossdk/calls/vivideosourceerror)

Error object with details

### inAppSharingVideoSource(\_:didStop:)

@objc func inAppSharingVideoSource(\
    \_ source: [VIInAppSharingVideoSource](/api-reference/iossdk/calls/viinappsharingvideosource),\
    didStop reason: [VILocalVideoSourceStopReason](/api-reference/iossdk/calls/vilocalvideosourcestopreason)\
)

Triggered when an in-app screen sharing video source stops capturing a video.

**Parameters**

**source** [VIInAppSharingVideoSource](/api-reference/iossdk/calls/viinappsharingvideosource)

In-app screen sharing video source

**reason** [VILocalVideoSourceStopReason](/api-reference/iossdk/calls/vilocalvideosourcestopreason)

Reason the local video source is stopped

### inAppSharingVideoSourceDidPause(\_:)

@objc optional func inAppSharingVideoSourceDidPause(\_ source: [VIInAppSharingVideoSource](/api-reference/iossdk/calls/viinappsharingvideosource))

Triggered when an in-app screen sharing video source pauses capturing, for example, when the app enters the background.

**Parameters**

**source** [VIInAppSharingVideoSource](/api-reference/iossdk/calls/viinappsharingvideosource)

In-app screen sharing video source

### inAppSharingVideoSourceDidStart(\_:)

@objc optional func inAppSharingVideoSourceDidStart(\_ source: [VIInAppSharingVideoSource](/api-reference/iossdk/calls/viinappsharingvideosource))

Triggered when an in-app screen sharing video source starts capturing video.

**Parameters**

**source** [VIInAppSharingVideoSource](/api-reference/iossdk/calls/viinappsharingvideosource)

In-app screen sharing video source