forked from RikkaApps/RikkaX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
# ParcelableList | ||
|
||
Parcelable list with splice support. | ||
 | ||
|
||
Binder has total 1MB buffer size across the process (64KB for each Binder thread). | ||
When transferring a large list of Parcelable objects (e.g., `getInstalledPackages` with flags like `GET_ACTIVITIES`), | ||
it's easy to exceed this limit (`TransactionTooLargeException`). Therefore, the framework has created `android.content.pm.ParceledListSlice` which split the list into multiple transactions. | ||
|
||
This library has `ParcelableListSlice` and `StringListSlice` class which is similar to the framework classes. | ||
|
||
There is also a base class, `BaseParcelableListSlice`, for extension to transfer non-Parcelable objects. | ||
|
||
## Download | ||
|
||
```groovy | ||
dependencies { | ||
implementation "dev.rikka.rikkax.parcelablelist:parcelablelist:1.0.0" | ||
} | ||
``` |