The Picture-in-Picture (PiP) component enables OutSystems mobile apps to use the Cordova PiP Plugin, allowing apps to display content in a floating window while users multitask.
It provides four main client actions:
Description:Enters Picture-in-Picture mode with the specified window size. This will minimize your app screen into a floating PiP window.
Inputs:
width (Integer) → Desired PiP window width in pixels.
width
height (Integer) → Desired PiP window height in pixels.
height
Notes:
OS may override custom sizes (especially iOS).
Works best on Android 8.0+ devices.
Description:Similar to enterPipMode, but optimized for apps showing video playback. On supported devices, the OS will treat the PiP window as a video player, enabling system-level PiP controls (play/pause, close).
enterPipMode
width (Integer) → Desired PiP window width.
height (Integer) → Desired PiP window height.
Especially useful for streaming/video apps.
Some platforms (iOS) only allow PiP for video elements.
Description:Checks whether the app is currently running in PiP mode.
None
Outputs:
IsPip (Boolean) → Returns True if app is in PiP, else False.
IsPip
True
False
Description:Checks if Picture-in-Picture mode is supported on the current device.
isPipModeSupported (Boolean) → True if device supports PiP, False otherwise.
isPipModeSupported
Use this check before calling enterPipMode or enterPipMode_withVideo.
enterPipMode_withVideo
Prevents errors on devices/OS versions that do not support PiP.
MABS 12+
Android 8.0 (API 26+) for full support.
iOS → PiP primarily works for video playback; custom sizing may be ignored.