Skip to content

Commit 65071b8

Browse files
committed
docs: update README structure
1 parent 9a25867 commit 65071b8

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ To understand how the library blocks screen capture, inspect the compiled Mach-O
1010

1111
By looking at related iOS system APIs, we can identify three defense layers used by the library:
1212

13-
1. **The Visual Layer (`UITextField`):** The library uses the common `setSecureTextEntry:` trick to hide the app UI during screenshots or screen recording.
13+
### 1. Visual Layer (`UITextField`)
14+
The library uses the common `setSecureTextEntry:` trick to hide the app UI during screenshots or screen recording.
1415

1516
![image1](img/img1.png)
1617

17-
2. **The Active Check Layer (`UIScreen`):** The `screenIsRecording()` function checks `[UIScreen mainScreen].isCaptured` directly to detect whether the screen is being recorded.
18+
### 2. Active Check Layer (`UIScreen`)
19+
The `screenIsRecording()` function checks `[UIScreen mainScreen].isCaptured` directly to detect whether the screen is being recorded.
1820

1921
![image2](img/img2.png)
2022

21-
3. **The Event Detection Layer (`NSNotificationCenter`):** The `screenshotObserver(using:)` and `screenRecordObserver(using:)` functions show that the library listens for screenshot and screen recording notifications through `NSNotificationCenter` and forwards them to the Flutter layer.
23+
### 3. Event Detection Layer (`NSNotificationCenter`)
24+
The `screenshotObserver(using:)` and `screenRecordObserver(using:)` functions show that the library listens for screenshot and screen recording notifications through `NSNotificationCenter` and forwards them to the Flutter layer.
2225

2326
![image3](img/img3.png)
2427

0 commit comments

Comments
 (0)