# ZoomSDKDirecttShareHandler

**URL:** <https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041>\
**Category:** macOS\
**Created:** [July 16, 2019, 12:07pm UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041 "2019-07-16T12:07:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangh](https://avatars.discourse-cdn.com/v4/letter/w/e495f1/32.png) [@wangh](https://devforum.zoom.us/u/wangh)\
**Post date:** [July 16, 2019, 12:07pm UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/1 "2019-07-16T12:07:12Z")

</div>

I used ZoomSDKDirecttShareHandler. alloc init.  
but return null

---

<div class="post-metadata">

**Author:** ![Derain\_Yuan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/derain_yuan/32/558_2.png) [@Derain\_Yuan](https://devforum.zoom.us/u/Derain_Yuan)\
**Post date:** [July 17, 2019, 1:32am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/3 "2019-07-17T01:32:38Z")

</div>

User cannot alloc ZoomSDKDirectShareHandler by self, we will alloc and send to user through callback delegate ‘-(void)onDirectShareStatusReceived:(DirectShareStatus)status DirectShareReceived:(ZoomSDKDirectShareHandler\*)handler’.

---

<div class="post-metadata">

**Author:** ![wangh](https://avatars.discourse-cdn.com/v4/letter/w/e495f1/32.png) [@wangh](https://devforum.zoom.us/u/wangh)\
**Post date:** [July 17, 2019, 7:08am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/4 "2019-07-17T07:08:31Z")

</div>

I want to input meeting number to share the screen directly Isn’t it call -(ZoomSDKError)inputMeetingNumber:(NSString\*)meetingNumber I don’t know how to can to call Can you help me

---

<div class="post-metadata">

**Author:** ![Derain\_Yuan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/derain_yuan/32/558_2.png) [@Derain\_Yuan](https://devforum.zoom.us/u/Derain_Yuan)\
**Post date:** [July 17, 2019, 10:36am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/5 "2019-07-17T10:36:37Z")

</div>

You can set the property ‘isDirectShareDesktop’ to YES and ‘monitorID’ to what you want to share before start meeting.

---

<div class="post-metadata">

**Author:** ![597035146](https://avatars.discourse-cdn.com/v4/letter/5/b2d939/32.png) [@597035146](https://devforum.zoom.us/u/597035146)\
**Post date:** [May 27, 2020, 11:11am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/6 "2020-05-27T11:11:27Z")

</div>

> [@Derain\_Yuan](#):
>
> isDirectShareDesktop

I did not find “ isDirectShareDesktop” and “monitorID”,  
Can you tell me which class

---

<div class="post-metadata">

**Author:** ![597035146](https://avatars.discourse-cdn.com/v4/letter/5/b2d939/32.png) [@597035146](https://devforum.zoom.us/u/597035146)\
**Post date:** [May 27, 2020, 11:13am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/7 "2020-05-27T11:13:26Z")

</div>

> [@Derain\_Yuan](#):
>
> monitorID

and how to set “monitorID”

---

<div class="post-metadata">

**Author:** ![597035146](https://avatars.discourse-cdn.com/v4/letter/5/b2d939/32.png) [@597035146](https://devforum.zoom.us/u/597035146)\
**Post date:** [May 27, 2020, 11:20am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/8 "2020-05-27T11:20:05Z")

</div>

> [@Derain\_Yuan](#):
>
> DirectShareDesktop

i call inputMeetingNumber method and I’m in a meeting, but I can’t share the screen

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 29, 2020, 4:39am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/9 "2020-05-29T04:39:41Z")

</div>

Hi @597035146,

Thanks for using Zoom SDK. What is the SDK version you are using? Are you getting any errors or do you have any screenshots that could show the issue you are facing? Please double-check whether you have disabled the sandbox in Xcode (Target -\> Capabilities -\> App Sandbox) , if you enabled the sandbox, it is possible to experience the issue you are facing.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![597035146](https://avatars.discourse-cdn.com/v4/letter/5/b2d939/32.png) [@597035146](https://devforum.zoom.us/u/597035146)\
**Post date:** [May 29, 2020, 6:46am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/10 "2020-05-29T06:46:03Z")

</div>

version:v4.6.21666.0427  
i created a new project and drag the SDK in it, when i disabled the App Sandbox,there will output much information like this. otherwise if i enabled the sanbox,the screen share was always failed.  
I don’t know if there is a problem with the steps of configuring the SDK

 ![屏幕快照 2020-05-29 下午2.45.07](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/45d77dae320e9b2dc827b876d70353340f5627ab.jpeg)

---

<div class="post-metadata">

**Author:** ![597035146](https://avatars.discourse-cdn.com/v4/letter/5/b2d939/32.png) [@597035146](https://devforum.zoom.us/u/597035146)\
**Post date:** [May 29, 2020, 9:54am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/11 "2020-05-29T09:54:55Z")

</div>

when i close the sandbox, auth action always failed

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 30, 2020, 12:44am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/12 "2020-05-30T00:44:18Z")

</div>

Hi @597035146,

Thanks for the reply. Are you getting any error message or error codes from those interfaces? Is the following callback being triggered? `callback:-(void)onDirectShareStatusReceived:(DirectShareStatus)status DirectShareReceived:(ZoomSDKDirectShareHandler*)handler;`

Thanks!

---

<div class="post-metadata">

**Author:** ![597035146](https://avatars.discourse-cdn.com/v4/letter/5/b2d939/32.png) [@597035146](https://devforum.zoom.us/u/597035146)\
**Post date:** [June 1, 2020, 7:06am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/13 "2020-06-01T07:06:00Z")

</div>

![Screen Shot 2020-06-01 at 3.01.37 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/26f41c0fea65bd8b411f54ef01fb2d3ee6a09af3.jpeg)  
i want use “ZoomSDKDirectShareHelper” to begin direct share, but it always failed。(code by swift ) ,can you help me.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 4, 2020, 7:06am UTC](https://devforum.zoom.us/t/zoomsdkdirecttsharehandler/5041/14 "2020-06-04T07:06:37Z")

</div>

Hi @597035146,

Thanks for the reply and the screenshot. We are able to identify an issue and we will fix this in the next release.

Thanks!
