As discussed here add new Runtime Capabilities Manager to be instantiated by RuntimeFactory similar to Storage Manager, with the following API:
getRuntimeCapabilities() - returns as a promise RuntimeCapabilities json object with all available capabilities of the runtime. If it was not yet persisted in the Storage Manager it collects all required info from the platform and saves in the storage manager.
isAvailable(capability) - returns as a promise a boolean according to available capabilities.
update() - it refreshes previously collected capabilities and updates the storage manager
As discussed here add new Runtime Capabilities Manager to be instantiated by RuntimeFactory similar to Storage Manager, with the following API:
getRuntimeCapabilities() - returns as a promise RuntimeCapabilities json object with all available capabilities of the runtime. If it was not yet persisted in the Storage Manager it collects all required info from the platform and saves in the storage manager.
isAvailable(capability) - returns as a promise a boolean according to available capabilities.
update() - it refreshes previously collected capabilities and updates the storage manager