Code example for DataSetObservable

Methods: registerObserver

0
    public final boolean isEmpty() { 
        throw new UnsupportedOperationException("isEmpty() is not supported in the context of a SwipeAdapter");
    } 
 
    public void registerDataSetObserver(DataSetObserver observer) {
        mDataSetObservable.registerObserver(observer);
    } 
 
    public void unregisterDataSetObserver(DataSetObserver observer) {
        mDataSetObservable.unregisterObserver(observer);
    } 
 
    public void notifyDataSetChanged() { 
        mDataSetObservable.notifyChanged();
    } 
 
}