Skip to content

Fix db documentation #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* </pre>
*
* @param <T> The class type to use as a model for the data
* contained in the children of the given Firebase location
* contained in the children of the given Firebase location
*/
public abstract class FirebaseListAdapter<T> extends BaseAdapter {
private static final String TAG = FirebaseListAdapter.class.getSimpleName();
Expand Down Expand Up @@ -85,18 +85,6 @@ public void onDataChanged() {
});
}


/* This method will be triggered each time updates from the database have been completely processed.
* So the first time this method is called, the initial data has been loaded - including the case
* when no data at all is available. Each next time the method is called, a complete update (potentially
* consisting of updates to multiple child items) has been completed.
* <p>
* You would typically override this method to hide a loading indicator (after the initial load) or
* to complete a batch update to a UI element.
*/
protected void onDataChanged() {
}

/**
* @param activity The activity containing the ListView
* @param modelClass Firebase will marshall the data at a location into
Expand Down Expand Up @@ -162,6 +150,18 @@ public View getView(int position, View view, ViewGroup viewGroup) {
return view;
}

/**
* This method will be triggered each time updates from the database have been completely processed.
* So the first time this method is called, the initial data has been loaded - including the case
* when no data at all is available. Each next time the method is called, a complete update (potentially
* consisting of updates to multiple child items) has been completed.
* <p>
* You would typically override this method to hide a loading indicator (after the initial load) or
* to complete a batch update to a UI element.
*/
protected void onDataChanged() {
}

/**
* This method will be triggered in the event that this listener either failed at the server,
* or is removed as a result of the security and Firebase Database rules.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,6 @@ public void onDataChanged() {
});
}

/* This method will be triggered each time updates from the database have been completely processed.
* So the first time this method is called, the initial data has been loaded - including the case
* when no data at all is available. Each next time the method is called, a complete update (potentially
* consisting of updates to multiple child items) has been completed.
* <p>
* You would typically override this method to hide a loading indicator (after the initial load) or
* to complete a batch update to a UI element.
*/
protected void onDataChanged() {
}

/**
* @param modelClass Firebase will marshall the data at a location into
* an instance of a class that you provide
Expand Down Expand Up @@ -212,6 +201,18 @@ public int getItemViewType(int position) {
return mModelLayout;
}

/**
* This method will be triggered each time updates from the database have been completely processed.
* So the first time this method is called, the initial data has been loaded - including the case
* when no data at all is available. Each next time the method is called, a complete update (potentially
* consisting of updates to multiple child items) has been completed.
* <p>
* You would typically override this method to hide a loading indicator (after the initial load) or
* to complete a batch update to a UI element.
*/
protected void onDataChanged() {
}

/**
* This method will be triggered in the event that this listener either failed at the server,
* or is removed as a result of the security and Firebase Database rules.
Expand Down