@Retention(value=CLASS) @Target(value=FIELD) public @interface InstanceState
Use on activity fields to save and restore their values when the system calls
onSaveInstanceState(Bundle) and onCreate(Bundle).
Use on any native, Parcelable or
Serializable field in an EActivity
annotated class to bind it with Android's arguments.
If Parceler is on the classpath, extras
annotated with @Parcel, or collections supported by Parceler will be
automatically marshaled using a Parcelable
through the Parcels utility class.
Example :
@EActivity
public class MyActivity extends Activity {
@InstanceState
int someId;
@InstanceState
MySerializableBean bean;
}
Copyright © 2010–2016 simpligility technologies inc.. All rights reserved.