# How to enter full screen programmatically?

**URL:** <https://devforum.zoom.us/t/how-to-enter-full-screen-programmatically/25598>\
**Category:** macOS\
**Created:** [July 29, 2020, 2:31pm UTC](https://devforum.zoom.us/t/how-to-enter-full-screen-programmatically/25598 "2020-07-29T14:31:15Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [July 29, 2020, 2:31pm UTC](https://devforum.zoom.us/t/how-to-enter-full-screen-programmatically/25598/1 "2020-07-29T14:31:15Z")

</div>

It happens that the macOS UI exists full screen for some reason. Why?

Can the full screen be restored programmatically? Is this interface made for this purpose? - (ZoomSDKError)enterFullScreen:(BOOL)fullScreen firstMonitor:(BOOL)firstView DualMonitor:(BOOL)secondView;

---

<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:** [August 1, 2020, 1:34am UTC](https://devforum.zoom.us/t/how-to-enter-full-screen-programmatically/25598/2 "2020-08-01T01:34:47Z")

</div>

Hi @tmiskiew,

Please pass the parameter `MeetingSettingCmd：MeetingSettingCmd_AutoFullScreenWhenJoinMeeting ` to the following interface to enter full screen programmatically:

```auto
- (ZoomSDKError)enableMeetingSetting:(BOOL)enable SettingCmd:(MeetingSettingCmd)cmd;

```

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:** [August 4, 2020, 6:18am UTC](https://devforum.zoom.us/t/how-to-enter-full-screen-programmatically/25598/3 "2020-08-04T06:18:12Z")

</div>

How do I find out in which mode the window is (full screen / not full 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:** [August 7, 2020, 8:19am UTC](https://devforum.zoom.us/t/how-to-enter-full-screen-programmatically/25598/4 "2020-08-07T08:19:14Z")

</div>

Hi @tmiskiew,

You may use the following interface to check:

```auto
/**
 * @brief Get the meeting UI display type.
 * @param type Select the screen where you want to operate on.
 * @param bFullScreen A point to A BOOL, if the function call successfully, the value of 'bFullScreen' means whether the specified screen is in full screen mode.
  * @param meetingUIType A point to A MeetingUIType, if the function call successfully, the value of 'meetingUIType' means the meeting UI display type.
 * @return If the function succeeds, it will return ZoomSDKError_success, otherwise not.
 */
- (ZoomSDKError)getMeetingUIType:(ScreenType)type isFullScreen:(BOOL*)bFullScreen meetingUIType:(MeetingUIType*)meetingUIType;

```

When the interface is called successfully, the value of `bFullScreen` means whether the specified screen is in full screen or not.

Hope this helps. Thanks!
