code: function getOrientationValue(platformConfig) {
  
      var ORIENTATION_DEFAULT = 'default';
  
      var orientation = platformConfig.getPreference('orientation');
      if (!orientation) {
          return ORIENTATION_DEFAULT;
      }
  
      orientation = orientation.toLowerCase();
  
      // Check if the given global orientation is supported
      if (['default', 'portrait','landscape', 'all'].indexOf(orientation) >= 0) {
          return orientation;
      }
  
      events.emit('warn', 'Unsupported orientation: ' + orientation +
          '. Defaulting to value: ' + ORIENTATION_DEFAULT);
  
      return ORIENTATION_DEFAULT;
  }
docs: Queries ConfigParser object for the orientation <preference> value. Warns if
  global preference value is not supported by platform.
  
  @param  {Object} platformConfig    ConfigParser object
  
  @return {String}           Global/platform-specific orientation in lower-case
  (or empty string if both are undefined).