Skip to content

Instantly share code, notes, and snippets.

@coreform
Created December 4, 2014 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreform/6393262932e8f69dcaec to your computer and use it in GitHub Desktop.
Save coreform/6393262932e8f69dcaec to your computer and use it in GitHub Desktop.
An interface providing lifecycle callbacks useful for Cupboard POJOs that are populated from external JSON data
public interface ExtrinsicData {
public void onParse(Context context, JSONObject jsonObject, Bundle relatingData);
public void onPostPopulated(Context context);
public void onPreSaved(Context context);
public void onPostSaved(Context context);
public void onPreRead(Context context);
public void onPostRead(Context context);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment