You are here

isFavorite

public boolean isFavorite() returns a boolean indicating whether the current user has added the site to favourites or not.

Parameters

None

Returns

Returns a boolean, true if the current user has added the site to their favourites.

Example


    SiteService ss = session.getServiceRegistry()
    		.getSiteService();		
    
    Site site = ss.getSite("testsite");
    
    Log.d(TAG, "isFavorite: " + site.isFavorite());
 
    

Would result in output such as the following:


    isFavorite: True
         
      
Note: This method was added in version 1.1.