checkForUpdate static method
- ContentType type
Check for available updates for the specified content type.
On success the result is published via the appropriate OffBoardListener callbacks: OffBoardListener.registerOnWorldwideRoadMapVersionUpdated for ContentType.roadMap, or OffBoardListener.registerOnAvailableContentUpdate for other types.
Parameters
type: The ContentType to check.
Returns
- GemError.success when the check was initiated successfully.
- GemError.connectionRequired when there is no internet connection.
See also:
- OffBoardListener.registerOnWorldwideRoadMapVersionUpdated - Register for worldwide road map version updates.
- OffBoardListener.registerOnAvailableContentUpdate - Register for available content updates.
- createContentUpdater - Create a content updater for a specific content type.
Implementation
static GemError checkForUpdate(final ContentType type) {
final OperationResult resultString = staticMethod(
'ContentStore',
'checkForUpdate',
args: type.id,
);
return GemErrorExtension.fromCode(resultString['result']);
}