function getViewState(id, context) {
        return PreferencesImpl.stateManager.get(id, context);
    }
Convenience function that gets a view state

@param {string} id preference to get
@param {?Object} context Optional additional information about the request