Skip to content

Commit

Permalink
docs: update the docs for stopping the ongoing screen share
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarSudhir7891 committed Jun 18, 2024
1 parent f4b851d commit 85d3088
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/ios-core/local-user/screen-share-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ This guide is being updated, and might not work as expected in its current form
## Overview

1. Add a new Broadcast Upload Extension to your project.
2. Setup app groups
2. Setup app groups.
3. Download `DyteSampleHandler` class from [Github repo](https://github.com/dyte-io/iOS-ScreenShare) .
4. Have your SampleHandler class inherited from this downloaded class `DyteSampleHandler` .
5. Update Info.plist
5. Update Info.plist.

### Add a new Broadcast Upload Extension to your project.

Expand Down Expand Up @@ -74,5 +74,14 @@ To Launch the broadcast extension and call the method `enableScreenshare()`
dyteClient.localUser.enableScreenshare()
```

### Stop the Screenshare

To stop the ongoing screenshare and call the method `disableScreenshare()`. This will show the system
alert with a stop button for stopping screen share.

```swift
dyteClient.localUser.disbaleScreenshare()
```

![screenshot](/static/mobile/0.x.x/ios-setup-app.png)
![screenshot](/static/mobile/0.x.x/ios-setup-demo.png)

0 comments on commit 85d3088

Please sign in to comment.