[Android] Parcelable이란?


[Android] Parcelable이란?

글 구성1. 정의 (Parcelable이란)2. 사용하는 이유3. 사용 예시 3-1. 인스턴스 하나 전달 3-2. ArrayList로 여러 인스턴스 전달4. 심화 정보2020-06-28 기준으로 작성한 글입니다.정의Interface for classes whose instances can be written to and restored from a Parcel. Classes implementing the Parcelable interface must also have a non-null static field called CREATOR of a type that implements the Parcelable.Creator interface.Parcelable이란, 인스턴스가 Parcel에 의해 쓰여지고 복구될 수 있는 클래스를 위한 인터페이스를 말한다. Parcelable 인터페이스를 구현하기 위해서 반드시 CREATOR라는 필드를 구현해야 한다..........



원문링크 : [Android] Parcelable이란?