# Privacy and security

Settings are on **Settings → Security** and stored in `DbSettings.features.privacy`
(device-local: not synced, not overwritten by a restore). Defaults keep the previous behavior.

## Secure screen

Modes: Never (default), In incognito mode, Always. `SecureScreenEffect` applies it from `App.kt`.

| Platform | Behavior |
|---|---|
| Android | `FLAG_SECURE` on the activity window: no screenshots, screen recording or recents thumbnail. |
| iOS | A cover view over the key window while the app is inactive (app-switcher snapshot) and while the screen is recorded or mirrored (`UIScreen.isCaptured`). iOS has no public API to block screenshots. |
| Desktop | Not available: excluding a window from capture needs `NSWindow.sharingType` / `SetWindowDisplayAffinity`, which AWT does not expose and Yokan ships no native bridge for. |
| Web | Not available: browsers give pages no way to block screenshots, recording or tab previews. |

## Hide notification content

Independent of app lock. `ProfileNotificationService` replaces the title with "Yokan" and the
message with a generic per-channel text (download, library update, backup, sync) on every
platform. Channel and tag are kept, so updates and cancels still match. The Android download
foreground notification drops the title and chapter name too.

## App lock idle timeout

Choices: Always (default, the previous lock-on-leave), 1, 2, 5, 10 minutes, Never. With
Always the app locks on `ON_STOP` as before; otherwise the time is recorded on `ON_STOP`
and the app locks on `ON_START` when `appLockDue()` says the timeout passed. Changing the
timeout asks for authentication. App lock itself stays unavailable on desktop and web.

## Per-source incognito

"Incognito sources" lists installed sources. `DbSettings.isIncognitoFor(sourceId)` is true for
global incognito or a listed source. The manga reader, novel reader and anime player use it
for progress, resume position and history, and Discord shows the idle activity for those
titles. Manual "mark as read" in the title screen is unaffected. Yokan has no automatic
tracker progress writes on this branch; any added later must check `isIncognitoFor` too.
