getLatestVersion returns the latest version of the specified
document.
Attention: This method was introduced in SDK version
1.3.1.
Parameters
- Document document
- A Document instance representing the document to return the latest version for.
Returns
A Document object, the latest version for the specified document.
Exception
Throws an SkyVaultServiceException if the operation cannot be carried out.
Example
VersionService vs = session.getServiceRegistry()
.getVersionService();
Document document = getTestDocument(session, "TEST_DOC");
Log.d(TAG, "title: " + document.getTitle());
Document latestVersion = vs.getLatestVersion(document);
Note: This method was added in version 1.3.1.