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.
| Platform | Masked by default |
|---|---|
| Flutter | All text, text fields and images. |
| Android | All 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. |
| iOS | All labels, text fields, text views and image views, and text and images in SwiftUI. Web views are masked over their whole area. |
| React Native | Text 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:
| Level | What's masked |
|---|---|
| All text and media (default) | All text, text fields and images. |
| All text | All text and text fields. Images are shown. |
| All text except actionable | Text that isn't a control label. Button and link labels are shown. |
| Sensitive inputs only | Only inputs likely to hold private values. |
| Non-asset images only | Images loaded from the network, files or memory, plus sensitive inputs. Text and images bundled with the app are shown. |
| Explicit only | Only content your app marks as sensitive. |
The native Android, iOS and React Native SDKs always use the default level.
Content Flutter doesn't recognizeOn 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.
| Platform | How | Notes |
|---|---|---|
| Flutter | Wrap it in TugboatSensitive. | Covers everything inside. |
| Android | Mark the view as sensitive with the SDK. | For Android views. |
| iOS | Use 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 Native | Wrap 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.
Updated about 22 hours ago