src/sap.ui.core/src/sap/ui/core/Configuration.js
function(mSettings) {

			function applyAll(ctx, m) {
				var sName, sMethod;
				for ( sName in m ) {
					sMethod = "set" + sName.slice(0,1).toUpperCase() + sName.slice(1);
					if ( sName === 'formatSettings' && ctx.oFormatSettings ) {
						applyAll(ctx.oFormatSettings, m[sName]);
					} else if ( typeof ctx[sMethod] === 'function' ) {
						ctx[sMethod](m[sName]);
					} else {
						Log.warning("Configuration.applySettings: unknown setting '" + sName + "' ignored");
					}
				}
			}

			assert(typeof mSettings === 'object', "mSettings must be an object");

			this._collect(); // block events
			applyAll(this, mSettings);
			this._endCollect(); // might fire localizationChanged

			return this;
		}
function(mSettings) {

			function applyAll(ctx, m) {
				var sName, sMethod;
				for ( sName in m ) {
					sMethod = "set" + sName.slice(0,1).toUpperCase() + sName.slice(1);
					if ( sName === 'formatSettings' && ctx.oFormatSettings ) {
						applyAll(ctx.oFormatSettings, m[sName]);
					} else if ( typeof ctx[sMethod] === 'function' ) {
						ctx[sMethod](m[sName]);
					} else {
						Log.warning("Configuration.applySettings: unknown setting '" + sName + "' ignored");
					}
				}
			}

			assert(typeof mSettings === 'object', "mSettings must be an object");

			this._collect(); // block events
			applyAll(this, mSettings);
			this._endCollect(); // might fire localizationChanged

			return this;
		}
function ( mSettings ) { function applyAll ( ctx , m ) { var sName , sMethod ; for ( sName in m ) { sMethod = "set" + sName . slice ( 0 , 1 ) . toUpperCase ( ) + sName . slice ( 1 ) ; if ( sName === 'formatSettings' && ctx . oFormatSettings ) { applyAll ( ctx . oFormatSettings , m [ sName ] ) ; } else if ( typeof ctx [ sMethod ] === 'function' ) { ctx [ sMethod ] ( m [ sName ] ) ; } else { Log . warning ( "Configuration.applySettings: unknown setting '" + sName + "' ignored" ) ; } } } assert ( typeof mSettings === 'object' , "mSettings must be an object" ) ; this . _collect ( ) ; // block events applyAll ( this , mSettings ) ; this . _endCollect ( ) ; // might fire localizationChanged return this ; }
Applies multiple changes to the configuration at once.

If the changed settings contain localization related settings like <code>language</code>
or <ode>calendarType</code>, then only a single <code>localizationChanged</code> event will
be fired. As the framework has to inform all existing components, elements, models etc.
about localization changes, using <code>applySettings</code> can significantly reduce the
overhead for multiple changes, esp. when they occur after the UI has been created already.

The <code>mSettings</code> can contain any property <code><i>xyz</i></code> for which a
setter method <code>set<i>XYZ</i></code> exists in the API of this class.
Similarly, values for the {@link sap.ui.core.Configuration.FormatSettings format settings}
API can be provided in a nested object with name <code>formatSettings</code>.


@example <caption>Apply <code>language</code>, <code>calendarType</code> and several legacy
format settings in one call</caption>

sap.ui.getCore().getConfiguration().applySettings({
language: 'de',
calendarType: sap.ui.core.CalendarType.Gregorian,
formatSettings: {
legacyDateFormat: '1',
legacyTimeFormat: '1',
legacyNumberFormat: '1'
}
});

@param {object} mSettings Configuration options to apply
@returns {sap.ui.core.Configuration} Returns <code>this</code> to allow method chaining
@public
@since 1.38.6
Applies multiple changes to the configuration at once .