# Disable Gallery view as well as background run

**URL:** <https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539>\
**Category:** Meeting SDK\
**Created:** [March 8, 2019, 3:07pm UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539 "2019-03-08T15:07:42Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![techies23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/techies23/32/406_2.png) [@techies23](https://devforum.zoom.us/u/techies23)\
**Post date:** [March 8, 2019, 3:07pm UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/1 "2019-03-08T15:07:42Z")

</div>

I have Two questions:  
1- in the iOS SDK, how do we disable gallery view?  
2- in the Android SDK, how do we disable running in background? When user clicks on home button on device, we want the user to leave the Zoom Meeting

---

<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:** [March 12, 2019, 2:27am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/2 "2019-03-12T02:27:27Z")

</div>

Hi techies23,

Thanks for using Zoom SDK. Regarding your questions:

1. Unfortunately, Disabling gallery view on iOS SDK is not supported.
2. You can implement the listener that detects whether the app is in foreground or background, such as `onPause/onResume` or `onAppBackgrounded/onAppForegrounded(if you are using Lifecycle)`, there are multiple ways to detect this behavior. Once the event is triggered, call `leaveCurrentMeeting(boolean)` method in Zoom SDK to leave the meeting.

Let me know if you have any other questions.Thanks!

---

<div class="post-metadata">

**Author:** ![techies23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/techies23/32/406_2.png) [@techies23](https://devforum.zoom.us/u/techies23)\
**Post date:** [March 13, 2019, 4:21pm UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/3 "2019-03-13T16:21:32Z")

</div>

Hi Carson,

Thank you for the response. However, few questions again:

1. OK for iOS
2. I might not be properly understanding the situation but my current problem seems to be “Once the meeting is started, zoom SDK opens its own activity in the app. So, is there a way i can handle zoom activity’s back and home buttons. Also, to be pointed is that onPause/onResume methods are not being triggered when zoom activity is started.”

Please suggest. Thank you !

---

<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:** [March 13, 2019, 7:49pm UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/4 "2019-03-13T19:49:44Z")

</div>

Hi techies23,

Thanks for the reply. I see your point. The onPause/onResume methods are not being triggered because they are not in the Zoom meeting activity. Our Android SDK does not natively support this feature. Google does not allow adding a listener on the home buttons(for security concerns), all you can do is to detect whether your app is in the foreground or in the background. When your app is in the background, call the `LeaveCurrentMeeting(true)` method to force the user to leave the meeting.

Here are some links that could possibly helpful:

1. [https://medium.com/@egek92/how-to-actually-detect-foreground-background-changes-in-your-android-application-without-wanting-9719cc822c48](https://medium.com/@egek92/how-to-actually-detect-foreground-background-changes-in-your-android-application-without-wanting-9719cc822c48)
2. [https://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()](https://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint())
3. [https://developer.android.com/reference/android/arch/lifecycle/ProcessLifecycleOwner.html](https://developer.android.com/reference/android/arch/lifecycle/ProcessLifecycleOwner.html)
4. [https://proandroiddev.com/react-to-app-foreground-and-background-events-with-processlifecycleowner-96278e5816fa](https://proandroiddev.com/react-to-app-foreground-and-background-events-with-processlifecycleowner-96278e5816fa)

Hope this help. Thanks!

---

<div class="post-metadata">

**Author:** ![iOS-Dev-Work](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ios-dev-work/32/7910_2.png) [@iOS-Dev-Work](https://devforum.zoom.us/u/iOS-Dev-Work)\
**Post date:** [May 15, 2020, 2:32pm UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/5 "2020-05-15T14:32:01Z")

</div>

Hi @carson.zoom,

any possibility now to disable gallery view in ios?

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [May 19, 2020, 4:41am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/6 "2020-05-19T04:41:46Z")

</div>

@carson.zoom how to switch the view between gallery and active speaker during a meeting?

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [May 19, 2020, 8:23am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/7 "2020-05-19T08:23:01Z")

</div>

@techies23 What do you mean by disabling gallery view?

I want to switch between active speaker and gallery view. Is this possible? We can’t find it. I can’t believe that the SDK would not support this kind of basic functionality.

---

<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 19, 2020, 8:41am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/8 "2020-05-19T08:41:07Z")

</div>

Hi [iOS-Dev-Work](https://devforum.zoom.us/u/iOS-Dev-Work),

Yes, it is possible to disable gallery view in iOS under Zoom default UI now, you may use the interface here: [https://zoom.github.io/zoom-sdk-ios/interface\_mobile\_r\_t\_c\_meeting\_settings.html#a2a0e32998c84bf5b7862cfb1ee7bc0e3](https://zoom.github.io/zoom-sdk-ios/interface_mobile_r_t_c_meeting_settings.html#a2a0e32998c84bf5b7862cfb1ee7bc0e3)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [May 19, 2020, 9:49am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/9 "2020-05-19T09:49:23Z")

</div>

@carson.zoom --\> Can this be done when meeting is in progress? How we can switch between active speaker view and wall / gallery?

---

<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 21, 2020, 9:29am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/10 "2020-05-21T09:29:22Z")

</div>

You can only disable the gallery view before the meeting starts. If you would like to switch between active speaker view and gallery view, you may swipe left or right on the screen. Thanks!

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [May 21, 2020, 9:40am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/11 "2020-05-21T09:40:47Z")

</div>

I don’t want to disable anything. I want the Mobile iOS SDK to support switching between the active speaker and gallery view **during the meeting**.

---

<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 22, 2020, 6:09am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/12 "2020-05-22T06:09:58Z")

</div>

As I mentioned above:

> [@carson.zoom](#):
>
> If you would like to switch between active speaker view and gallery view, you may swipe left or right on the screen.

and as I have replied to you in one of the other posts: Currently we do not have an interface to do this programmatically, I will submit a feature request for this.

Thanks

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [June 5, 2020, 6:40am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/13 "2020-06-05T06:40:58Z")

</div>

@carson.zoom Can you please give us a timeline when we can expect that enhancement. We urgently need the ability to change the view in iOS. And no we don’t want to write and draw from scratch 😆

---

<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 5, 2020, 9:44am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/14 "2020-06-05T09:44:41Z")

</div>

Hi @tmiskiew,

I wish I could tell you but unfortunately I do not have an ETA at the moment. I have forwarded this enhancement request to the engineering team, but due to the limited bandwidth, the exact timeline for this enhancement in Zoom default UI is not available at the moment. I will let you know once I heard any update regarding this. I won’t forget you. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [June 5, 2020, 10:19am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/15 "2020-06-05T10:19:51Z")

</div>

Thanks @carson.zoom

I’m having a hard time to understand why so many essential / basic zoom features have been left out in the SDK. No Gallery view in the iOS SDK, no reaction, just to name a few. Not fun to be honest…

---

<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 17, 2020, 6:44am UTC](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539/16 "2020-06-17T06:44:30Z")

</div>

Closed on June 17, 2020, 6:44am UTC


