Code example for DataSetObservable

Methods: registerObserver

0
    public void notifyDataSetChanged() { 
        mObservable.notifyChanged();
    } 
 
    void registerDataSetObserver(DataSetObserver observer) {
        mObservable.registerObserver(observer);
    } 
 
    void unregisterDataSetObserver(DataSetObserver observer) {
        mObservable.unregisterObserver(observer);
    } 
 
    /** 
     * This method may be called by the ViewPager to obtain a title string 
     * to describe the specified page. This method may return null 
     * indicating no title for this page. The default implementation returns 
     * null. 
     * 
     * @param position The position of the title requested 
     * @return A title for the requested page 
     */