---
updatedAt: 2026-07-27T10:02:31.000Z
agentTools:
  projectIndex: https://developers.dailymotion.com/v0/llms.txt
---

# Programmatic fullscreen control (iOS SDK)

Trigger fullscreen mode programmatically, without user interaction.

<br />

Use [`setFullscreen(fullscreen:orientation:)`](https://developers.dailymotion.com/v0/reference/ios-sdk-player-methods#/setfullscreenfullscreen-boolean-orientation-orientation) method to enable or disable the fullscreen mode programmatically, and control orientation:

```kotlin
playerView.setFullscreen(fullscreen: true)  // Enter fullscreen

playerView.setFullscreen(fullscreen: false) // Exit fullscreen

playerView.setFullscreen(fullscreen: true, orientation: .portrait) // Enter fullscreen in portrait
```

By default, fullscreen orientation is **landscape**, but it can be changed by setting the `orientation` to another possible value.

**Possible values are:** `orientation`: `.landscapeRight` or `portrait`.

<br />