Method DetermineConfiguration
DetermineConfiguration(Feature)
Determines the Configuration the session will use given the requested features
.
Declaration
public Configuration? DetermineConfiguration(Feature features)
Parameters
Type | Name | Description |
---|---|---|
Feature | features | A set of requested Features. |
Returns
Type | Description |
---|---|
Configuration? | The Configuration the session would use given the requested |
Remarks
This method uses the current configurationChooser to choose a configuration using the requested
features
and the capabilities of the available configurations. The configuration chooser
is customizable, see ConfigurationChooser. If you do not set a configuration chooser, the
DefaultConfigurationChooser is used.
You can use this method to determine what would happen if you were to enable or disable a particular feature. For example, you can use this method to determine which features would be enabled if you were to change the camera mode from WorldFacingCamera to UserFacingCamera.