1
mirror of https://github.com/revanced/revanced-patcher synced 2024-11-24 05:16:22 +01:00

Update 4_apis.md

This commit is contained in:
oSumAtrIX 2024-10-27 05:32:10 +01:00 committed by GitHub
parent 242e244b18
commit c2e0f57579
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ A handful of APIs are available to make patch development easier and more effici
2. 🔍 Find and create mutable replaces with `classBy(Predicate)`
3. 🏃‍ Navigate method calls recursively by index with `navigate(Method)`
4. 💾 Read and write resource files with `get(String, Boolean)` and `delete(String)`
5. 📃 Read and write DOM files using `document(String)` or `document(InputStream)`
5. 📃 Read and write DOM files using `document(String)` and `document(InputStream)`
### 🧰 APIs
@ -60,7 +60,7 @@ execute {
}
```
#### 💾 `get(String, Boolean)`
#### 💾 `get(String, Boolean)` and `delete(String)`
The `get(String, Boolean)` function returns a `File` object that can be used to read and write resource files.
@ -80,7 +80,7 @@ execute {
}
```
#### 📃 `document`
#### 📃 `document(String)` and `document(InputStream)`
The `document` function is used to read and write DOM files.