Skip to content

Supported Types

Bradley Campbell edited this page Nov 27, 2016 · 14 revisions

Important: all information in this on this page is only relevant to PaperParcel 1.x. For information on the latest version of PaperParcel, visit http://grandstaish.github.io/paperparcel/

Data classes can contain members with any of the following types:

  • All primitives and their wrapped counterparts
  • Any List, Map, or Set of supported types (e.g.: val googleDirections: List<List<HashMap<String, String>>>)
  • CharSequence and String
  • Any class that implements Parcelable
  • Bundle and PersistableBundle
  • Size and SizeF
  • SparseArray of any supported types
  • SparseBooleanArray
  • Array of any supported types (including multi-dimensional arrays)
  • Any Serializable type
  • Any Enum type
  • IBinder types
  • Any class annotated with @PaperParcel
  • Anything else can be supported via the TypeAdapter interface (see Type Adapters)
Clone this wiki locally