loadTestTypeConfiguration

abstract suspend fun loadTestTypeConfiguration(headphoneIdentifier: MimiHeadphoneIdentifier?, allowedTestTypesFilter: (MimiTestType) -> Boolean): MimiTestTypeConfiguration

Returns the supported and selected MimiTestTypes for the provided headphone model returned from the MimiConnectedHeadphoneProvider defined by connectedHeadphoneProvider.

The result also contains the necessary configuration used for the respective hearing tests.

Return

the test type configurations.

Since

8.0.0

Parameters

headphoneIdentifier

the identifier of the current connected headphone model. See connectedHeadphoneProvider.

allowedTestTypesFilter

a function to filter the supported MimiTestTypes based upon client specific criteria. This exists to support client-side filtering in case specific MimiTestTypes are not allowed on the device, for example due to missing hardware.

Throws

when an error is encountered.