nl_tokens: Gets and validates AndroidLaunchMode prepference from config . xml . Returns preference value and warns if it doesn t seems to be valid
pl_tokens: function findAndroidLaunchModePreference ( platformConfig ) { var launchMode = platformConfig . getPreference ( 'AndroidLaunchMode' ) ; if ( ! launchMode ) { // Return a default value return 'singleTop' ; } var expectedValues = [ 'standard' , 'singleTop' , 'singleTask' , 'singleInstance' ] ; var valid = expectedValues . indexOf ( launchMode ) >= 0 ; if ( ! valid ) { // Note: warn, but leave the launch mode as developer wanted, in case the list of options changes in the future events . emit ( 'warn' , 'Unrecognized value for AndroidLaunchMode preference: ' + launchMode + '. Expected values are: ' + expectedValues . <mask> ( ', ' ) ) ; } return launchMode ; }