Privacy and masking

How the SDK hides private content in screenshots before they leave the device.

Screenshots are masked on the device, before they're encoded, saved or sent. Masked areas are painted over with a solid dark block, so the original pixels never leave the phone. If masking fails, the SDK either doesn't send the frame at all or masks the whole frame.

What's masked by default

By default, the SDK hides all text and images on every platform. Session replays show the layout of each screen and what people did, without showing what the screen said.

PlatformMasked by default
FlutterAll text, text fields and images.
AndroidAll text views (including text fields, buttons and password fields), image views and video views. Web views, surface views, texture views and Jetpack Compose content are masked over their whole area.
iOSAll labels, text fields, text views and image views, and text and images in SwiftUI. Web views are masked over their whole area.
React NativeText and images, using the native Android or iOS masking above.

On Android and iOS, the SDK masks the whole screen when it can't be sure of what's on it, for example while content is animating. On iOS, while SwiftUI content is on screen, the SDK masks the whole screen on iOS versions Tugboat hasn't verified yet (currently anything other than iOS 26 and 27).

Other mask levels on Flutter

Flutter apps can choose a different level of masking:

LevelWhat's masked
All text and media (default)All text, text fields and images.
All textAll text and text fields. Images are shown.
All text except actionableText that isn't a control label. Button and link labels are shown.
Sensitive inputs onlyOnly inputs likely to hold private values.
Non-asset images onlyImages loaded from the network, files or memory, plus sensitive inputs. Text and images bundled with the app are shown.
Explicit onlyOnly content your app marks as sensitive.

The native Android, iOS and React Native SDKs always use the default level.

Content Flutter doesn't recognize

On Flutter, "images" means Flutter image widgets. Video, platform views (such as embedded maps or web views), and custom-drawn content aren't recognized automatically. Mark them as sensitive if they can show private content.

Marking content as sensitive

Your app can mark any part of a screen as sensitive. Sensitive content is always masked, whatever the mask level.

PlatformHowNotes
FlutterWrap it in TugboatSensitive.Covers everything inside.
AndroidMark the view as sensitive with the SDK.For Android views.
iOSUse the .tugboatSensitive() modifier in SwiftUI.Covers the view's frame; shadows or content drawn outside the frame aren't covered. There's no marker for UIKit views yet.
React NativeWrap it in Tugboat.Sensitive.A modal or portal opened from inside it isn't covered. On iOS, content drawn outside the wrapped view's bounds may not be covered.

Secure screens on Android

Android lets apps mark a window as secure to block screenshots. The native Android and React Native SDKs never capture secure windows.

Flutter apps

The Flutter SDK captures your app's own content directly, so marking a window as secure doesn't stop it. In Flutter apps, mark private content with TugboatSensitive or use a stricter mask level.


Did this page help you?