public boolean isFavorite returns true if the specified node
has been marked as a favorite by the current user.
Attention: This
method was added in SDK version 1.2.
Parameters
- Node node
- A Node object. The node to determine if a favorite or not.
Returns
Returns a boolean which is true if the node is a favorite, false otherwise.
Exception
Throws an SkyVaultServiceException if the operation cannot be completed.
Example
// Add and/or remove a favorite final String testFolderName = "Sample Folder"; Folder testFolder = (Folder) documentFolderService.getChildByPath(documentLibrary, testFolderName); Log.d(TAG, "1. Test folder is favorite: "+documentFolderService.isFavorite(testFolder)); if (documentFolderService.isFavorite(testFolder)){ documentFolderService.removeFavorite(testFolder); } else { documentFolderService.addFavorite(testFolder); } Log.d(TAG, "2. Test folder is favorite: "+documentFolderService.isFavorite(testFolder));