Disable Gallery view as well as background run


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


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!

Disable gallery view on iOS sdk?

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 !


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
  2. https://developer.android.com/reference/android/app/Activity.html#onUserLeaveHint()
  3. https://developer.android.com/reference/android/arch/lifecycle/ProcessLifecycleOwner.html
  4. https://proandroiddev.com/react-to-app-foreground-and-background-events-with-processlifecycleowner-96278e5816fa

Hope this help. Thanks!