# Check Sharing screen

**URL:** <https://devforum.zoom.us/t/check-sharing-screen/29653>\
**Category:** Meeting SDK\
**Created:** [September 9, 2020, 3:16pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653 "2020-09-09T15:16:00Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [September 9, 2020, 3:16pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/1 "2020-09-09T15:16:00Z")

</div>

Hi @carson.zoom  
How to identify the whether the user is screen share or not using default UI

Is there have any methods to identify it  
Version of Zoom Sdk  
Here i’m using zoom sdk version : v4.6.21666.0429

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 9, 2020, 3:58pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/2 "2020-09-09T15:58:51Z")

</div>

Hey @aasaikeyan08

Thanks for using the dev forum!

There are a few functions related to this that should help.

In `MobileMeetingService`:

> **@brief** Notify the current user if he is sharing.
> 
> **@return** YES means that the current user is sharing, otherwise not.
> 
> \*/
> 
> - ( **BOOL** )isStartingShare;
> 
> /\*!
> 
> **@brief** Notify the current user if he is viewing the share.
> 
> **@return** YES means that user is viewing the share, otherwise not.
> 
> \*/
> 
> - ( **BOOL** )isViewingShare;

And then `inMobileRTCMeetingDelegate` there is:

> /\*!
> 
> **@brief** Notify users that there is no sharing for the moment.
> 
> \*/
> 
> - ( **void** )onOngoingShareStopped;

Finally in `MobileRTCShareServiceDelegate` there is:

> /\*!
> 
> **@brief** Callback event when the share starts.
> 
> **@param** userID The user ID of presenter.
> 
> **@warning** userID == 0, which means that the user stopped sharing.
> 
> \*/
> 
> - ( **void** )onSinkMeetingActiveShare:(NSUInteger)userID;
> 
> /\*!
> 
> **@brief** Callback event when the sharing content changes.
> 
> **@param** userID The user ID of presenter.
> 
> \*/
> 
> - ( **void** )onSinkMeetingShareReceiving:(NSUInteger)userID;

Let me know if those are not what you are looking for.  
Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [September 9, 2020, 4:12pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/3 "2020-09-09T16:12:49Z")

</div>

Hi @Michael_Condon

Thanks for information and this is for iOS

May i know for the Android

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 9, 2020, 4:41pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/4 "2020-09-09T16:41:48Z")

</div>

Hey @aasaikeyan08

Oh my mistake! I thought I was in the iOS category. 🤦🏻‍♂️

@jon.zoom Will be able to provide those soon.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [September 9, 2020, 5:44pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/5 "2020-09-09T17:44:15Z")

</div>

Hi @jon.zoom

Could you provide for android

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 9, 2020, 5:55pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/6 "2020-09-09T17:55:12Z")

</div>

Hi @aasaikeyan08, I’d be happy to help!

First, you’re going to want to retrieve an instance of the `InMeetingShareController` through `ZoomSDK.getInstance().getInMeetingService().getInMeetingShareController();`.

Once you have that, you may listen for when sharing becomes active by implementing an `InMeetingShareListener` and responding to `onShareActiveUser` callbacks.

To check if a user is sharing their own screen, you can check the return value of `InMeetingShareController#isSharingOut`.

For more details on what you can do with sharing, please see the [InMeetingShareController reference](https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/InMeetingShareController.html).

Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [September 10, 2020, 6:12am UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/7 "2020-09-10T06:12:20Z")

</div>

Hi @jon.zoom

Thanks for the information

It worked when i click the share-screen it returns the true  
But when i click picture ,documents,web url.bookmarks and share whiteboard

How can we check with these  
Here i have used  
InMeetingShareController inMeetingShareController = zoomSDK.getInMeetingService().getInMeetingShareController();  
inMeetingShareController.isSharingScreen();  
Log.i(TAG, "onMeetingEnd: " + inMeetingShareController.isSharingScreen()); // for this sharing screen giving true when i share the screen  
Log.i(TAG, "onMeetingEnd: " + inMeetingShareController.isSharingOut()); // for this when i shared the documents,picture etc it returns false

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 10, 2020, 5:40pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/8 "2020-09-10T17:40:58Z")

</div>

Hi @aasaikeyan08, thanks for the response.

When testing this on my end, here’s what I’m seeing in various share scenarios:

- Sharing my screen: `isSharingOut`: true, `isSharingScreen`: true, `isOtherSharing`: false
- Sharing whiteboard: `isSharingOut`: true, `isSharingScreen`: false, `isOtherSharing`: false
- Sharing photo: Same as whiteboard
- Other user sharing screen: `isSharingOut`: false, `isSharingScreen`: false, `isOtherSharing`: true

If you are not seeing the same values in these scenarios, please provide some more information so that I may attempt to reproduce on my end.

Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [September 11, 2020, 4:34am UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/9 "2020-09-11T04:34:22Z")

</div>

Hi @jon.zoom

I have checked my end but i’m getting the isSharingOut giving false

 ![Screenshot_20200911-095751_INVU Family App](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8ba6b1d967c5a130ecbed674e937f9656b2d69c6.jpeg)

InMeetingShareController inMeetingShareController = zoomSDK.getInMeetingService().getInMeetingShareController();  
inMeetingShareController.isSharingScreen();  
Log.i(TAG, "onMeetingEnd: " + inMeetingShareController.isSharingScreen()); // for this sharing screen giving true when i share the screen  
Log.i(TAG, "onMeetingEnd: " + inMeetingShareController.isSharingOut()); // for this when i shared the documents,picture etc it returns false

Im using this controller for getting the isSharingScreen and isSharingOut  
But isSharingScreen getting true but not in isSharingOut  
Please check it

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 11, 2020, 4:46pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/10 "2020-09-11T16:46:57Z")

</div>

Hi @aasaikeyan08,

That’s strange. Can you please provide a sequence of events in chronological order to verify we’re taking the same steps? I would need to know all of your interactions with the app and exactly where your log statements are called from.

Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [September 11, 2020, 5:43pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/11 "2020-09-11T17:43:24Z")

</div>

Hi @jon.zoom

Steps to reproduce

1. First i initiate the call so i’m a host
2. Then i click the share button-\> picture-\>files-\>it get to the phone gallery
3. Now the isShareout get false

It is very urgent to fix the issue

Could you give your code ?

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 11, 2020, 8:33pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/12 "2020-09-11T20:33:11Z")

</div>

Hi @aasaikeyan08,

I don’t think the code I was using to test this would prove any more useful that the snippets I posted earlier in this conversation. In order to help figure out why you are not seeing the same results as me, it would be helpful to know where in your code you are checking state here. Without that context, I am limited in what I can do.

Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [September 14, 2020, 3:17am UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/13 "2020-09-14T03:17:06Z")

</div>

Hi thanks for supporting  
Could you give the sample code for that above scenario that you have worked ?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 14, 2020, 6:15pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/14 "2020-09-14T18:15:09Z")

</div>

Hi @aasaikeyan08,

As I mentioned in my previous post, the code snippets I posted earlier in this conversation contain exactly what I used to test on my end. Are you able to provide context around where you are checking the state of these booleans?

Thanks!

---

<div class="post-metadata">

**Author:** ![aasaikeyan08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aasaikeyan08/32/2224_2.png) [@aasaikeyan08](https://devforum.zoom.us/u/aasaikeyan08)\
**Post date:** [September 23, 2020, 2:39am UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/15 "2020-09-23T02:39:22Z")

</div>

Hi jon leblich  
I have checked the boolean condition on when the application goes background

Isscreensharing  
IssharingOut

But isSharingscreen gets true  
My problem is issharingout is getting false when i shared the picture when zoom is on progress within the zoom im sharing the picture

Thanks

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 23, 2020, 4:33pm UTC](https://devforum.zoom.us/t/check-sharing-screen/29653/16 "2020-09-23T16:33:58Z")

</div>

Hi @aasaikeyan08, thanks for the info.

Checking those values when backgrounding the app doesn’t necessarily align with anything that the SDK is doing related to screen sharing. For that reason, you may see some unexpected values returned depending on when the app is backgrounded relative to the screen share workflow. For the most accurate representation of the state of the `InMeetingShareController`, your best bet is to implement the `InMeetingShareListener` I suggested earlier in this thread.

Thanks!
