public boolean doesSupportCapability(String capability)
determines whether the repository supports the given capability.
Parameters
- String capability
- A capability as defined in the RepositoryCapabilities interface.
Returns
Returns a boolean. True if the capability is supported, false otherwise.
Example
RepositoryCapabilities caps = repoInfo.getCapabilities(); // capabilities are CAPABILITY_COMMENTS_COUNT and CAPABILITY_LIKE Log.d(TAG, "doesSupportCapability(CAPABILITY_LIKE): " + caps.doesSupportCapability(CAPABILITY_LIKE)); Log.d(TAG, "doesSupportCommentsCount" + caps.doesSupportCommentsCount()); Log.d(TAG, "doesSupportLikingNodes" + caps.doesSupportLikingNodes());
Would result in output such as the following: