# StreamConfigurationMapWrapper

Artifact: [androidx.camera:camera-common](https://developer.android.com/jetpack/androidx/releases/camera) [View Source](https://cs.android.com/search?q=file:androidx/camera/common/StreamConfigurationMapWrapper.kt+class:androidx.camera.common.StreamConfigurationMapWrapper) Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

*** ** * ** ***


```
interface StreamConfigurationMapWrapper : UnsafeWrapper
```

<br />

Known direct subclasses [FakeStreamConfigurationMap](https://developer.android.com/reference/kotlin/androidx/camera/common/testing/FakeStreamConfigurationMap)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/common/testing/FakeStreamConfigurationMap` | A fake implementation of `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper` for testing. |

*** ** * ** ***

A compatibility wrapper for `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html`.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/util/Size.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getHighResolutionOutputSizes(kotlin.Int)(format: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/util/Range.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getHighSpeedVideoFpsRanges()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/util/Range.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getHighSpeedVideoFpsRangesFor(android.util.Size)(size: https://developer.android.com/reference/android/util/Size.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/util/Size.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getHighSpeedVideoSizes()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/util/Size.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getHighSpeedVideoSizesFor(android.util.Range)(fpsRange: https://developer.android.com/reference/android/util/Range.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getInputFormats()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/util/Size.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getInputSizes(kotlin.Int)(format: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getOutputFormats()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getOutputMinFrameDuration(kotlin.Int,android.util.Size)(format: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, size: https://developer.android.com/reference/android/util/Size.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getOutputMinFrameDuration(java.lang.Class,android.util.Size)(klass: https://developer.android.com/reference/java/lang/Class.html<T>, size: https://developer.android.com/reference/android/util/Size.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/util/Size.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getOutputSizes(kotlin.Int)(format: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/util/Size.html>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getOutputSizes(java.lang.Class)(klass: https://developer.android.com/reference/java/lang/Class.html<T>)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getOutputStallDuration(kotlin.Int,android.util.Size)(format: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, size: https://developer.android.com/reference/android/util/Size.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getOutputStallDuration(java.lang.Class,android.util.Size)(klass: https://developer.android.com/reference/java/lang/Class.html<T>, size: https://developer.android.com/reference/android/util/Size.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#getValidOutputFormatsForInput(kotlin.Int)(inputFormat: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#isOutputSupportedFor(kotlin.Int)(format: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#isOutputSupportedFor(java.lang.Class)(klass: https://developer.android.com/reference/java/lang/Class.html<T>)` Converting this method to non-static for testability. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/StreamConfigurationMapWrapper#isOutputSupportedFor(android.view.Surface)(surface: https://developer.android.com/reference/android/view/Surface.html)` |

### Inherited functions

From [androidx.camera.common.UnsafeWrapper](https://developer.android.com/reference/kotlin/androidx/camera/common/UnsafeWrapper) `T?` `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> https://developer.android.com/reference/kotlin/androidx/camera/common/UnsafeWrapper#unwrapAs(java.lang.Class)(type: https://developer.android.com/reference/java/lang/Class.html<T>)`

Attempts to unwrap this object into the specified underlying `https://developer.android.com/reference/kotlin/androidx/camera/common/UnsafeWrapper#unwrapAs(java.lang.Class)`.

## Public functions

### getHighResolutionOutputSizes

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getHighResolutionOutputSizes(format: Int): List<Size>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighResolutionOutputSizes(int)` |   |

### getHighSpeedVideoFpsRanges

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getHighSpeedVideoFpsRanges(): List<Range<Int>>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoFpsRanges()` |   |

### getHighSpeedVideoFpsRangesFor

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getHighSpeedVideoFpsRangesFor(size: Size): List<Range<Int>>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoFpsRangesFor(android.util.Size)` |   |

### getHighSpeedVideoSizes

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getHighSpeedVideoSizes(): List<Size>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoSizes()` |   |

### getHighSpeedVideoSizesFor

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getHighSpeedVideoSizesFor(fpsRange: Range<Int>): List<Size>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getHighSpeedVideoSizesFor(android.util.Range&lt;java.lang.Integer&gt;)` |   |

### getInputFormats

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getInputFormats(): List<Int>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputFormats()` |   |

### getInputSizes

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getInputSizes(format: Int): List<Size>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getInputSizes(int)` |   |

### getOutputFormats

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getOutputFormats(): List<Int>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputFormats()` |   |

### getOutputMinFrameDuration

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getOutputMinFrameDuration(format: Int, size: Size): Long
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration(int, android.util.Size)` |   |

### getOutputMinFrameDuration

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun <T : Any?> getOutputMinFrameDuration(klass: Class<T>, size: Size): Long
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputMinFrameDuration(int, android.util.Size)` |   |

### getOutputSizes

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getOutputSizes(format: Int): List<Size>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes(int)` |   |

### getOutputSizes

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun <T : Any?> getOutputSizes(klass: Class<T>): List<Size>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputSizes(int)` |   |

### getOutputStallDuration

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getOutputStallDuration(format: Int, size: Size): Long
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration(int, android.util.Size)` |   |

### getOutputStallDuration

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun <T : Any?> getOutputStallDuration(klass: Class<T>, size: Size): Long
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getOutputStallDuration(int, android.util.Size)` |   |

### getValidOutputFormatsForInput

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun getValidOutputFormatsForInput(inputFormat: Int): List<Int>
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#getValidOutputFormatsForInput(int)` |   |

### isOutputSupportedFor

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun isOutputSupportedFor(format: Int): Boolean
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#isOutputSupportedFor(android.view.Surface)` |   |

### isOutputSupportedFor

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun <T : Any?> isOutputSupportedFor(klass: Class<T>): Boolean
```

Converting this method to non-static for testability.

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#isOutputSupportedFor(android.view.Surface)` |   |

### isOutputSupportedFor

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
fun isOutputSupportedFor(surface: Surface): Boolean
```

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap.html#isOutputSupportedFor(android.view.Surface)` |   |