# 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:** 1\
**Showing post:** 2

<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!

---

_[View the full topic](https://devforum.zoom.us/t/disable-gallery-view-as-well-as-background-run/3539)._
