Documentation
¶
Overview ¶
PersistableBundle API overview.
Demonstrates the Android PersistableBundle NDK API, which provides a type-safe key-value container that can be serialized to a Parcel for IPC. PersistableBundles support boolean, int32, int64, float64, and string values, as well as nested PersistableBundles.
Available since Android API level 35 (Android 15).
Operations demonstrated:
- Create a new PersistableBundle
- Put and get scalar values (bool, int32, int64, float64, string)
- Query the bundle size
- Duplicate a bundle and compare with IsEqual
- Nest one bundle inside another
- Erase a key
- Clean up with Close
Click to show internal directories.
Click to hide internal directories.