# CameraExtensionSession.StillCaptureLatency

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# StillCaptureLatency

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/hardware/camera2/CameraExtensionSession.StillCaptureLatency "View this page in Java")  

```
class StillCaptureLatency
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                             ||
| ↳ | [android.hardware.camera2.CameraExtensionSession.StillCaptureLatency](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.StillCaptureLatency#) |

Realtime calculated still[capture](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession#capture(android.hardware.camera2.CaptureRequest,%20java.util.concurrent.Executor,%20android.hardware.camera2.CameraExtensionSession.ExtensionCaptureCallback))latency.

## Summary

|                                                                                                                                                                                             Public constructors                                                                                                                                                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [StillCaptureLatency](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.StillCaptureLatency#StillCaptureLatency(kotlin.Long,%20kotlin.Long))`(`captureLatency:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `processingLatency:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` <br /> |

|                                                                                                                                                                                                                                                                                                                                                                                                                                      Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                      ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.StillCaptureLatency#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)       | [getCaptureLatency](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.StillCaptureLatency#getCaptureLatency())`()` Return the capture latency from[ExtensionCaptureCallback.onCaptureStarted](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.ExtensionCaptureCallback#onCaptureStarted(android.hardware.camera2.CameraExtensionSession,%20android.hardware.camera2.CaptureRequest,%20kotlin.Long))until[ExtensionCaptureCallback.onCaptureProcessStarted](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.ExtensionCaptureCallback#onCaptureProcessStarted(android.hardware.camera2.CameraExtensionSession,%20android.hardware.camera2.CaptureRequest)). |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)       | [getProcessingLatency](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.StillCaptureLatency#getProcessingLatency())`()` Return the estimated post-processing latency from[ExtensionCaptureCallback.onCaptureProcessStarted](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.ExtensionCaptureCallback#onCaptureProcessStarted(android.hardware.camera2.CameraExtensionSession,%20android.hardware.camera2.CaptureRequest))until the processed frame returns to the client.                                                                                                                                                                                                                               |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.StillCaptureLatency#hashCode())`()` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)   | [toString](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.StillCaptureLatency#toString())`()` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

## Public constructors

### StillCaptureLatency

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
StillCaptureLatency(
    captureLatency: Long, 
    processingLatency: Long)
```

## Public methods

### equals

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun equals(other: Any?): Boolean
```

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |

|                                                                           Return                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true`if this object is the same as the obj argument;`false`otherwise. |

### getCaptureLatency

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getCaptureLatency(): Long
```

Return the capture latency from[ExtensionCaptureCallback.onCaptureStarted](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.ExtensionCaptureCallback#onCaptureStarted(android.hardware.camera2.CameraExtensionSession,%20android.hardware.camera2.CaptureRequest,%20kotlin.Long))until[ExtensionCaptureCallback.onCaptureProcessStarted](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.ExtensionCaptureCallback#onCaptureProcessStarted(android.hardware.camera2.CameraExtensionSession,%20android.hardware.camera2.CaptureRequest)).

|                                                           Return                                                            ||
|------------------------------------------------------------------------------|-----------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | The realtime capture latency in milliseconds. |

### getProcessingLatency

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getProcessingLatency(): Long
```

Return the estimated post-processing latency from[ExtensionCaptureCallback.onCaptureProcessStarted](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraExtensionSession.ExtensionCaptureCallback#onCaptureProcessStarted(android.hardware.camera2.CameraExtensionSession,%20android.hardware.camera2.CaptureRequest))until the processed frame returns to the client.

|                                                            Return                                                             ||
|------------------------------------------------------------------------------|-------------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | returns post-processing latency in milliseconds |

### hashCode

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun hashCode(): Int
```

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |

### toString

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun toString(): String
```

|                                                          Return                                                          ||
|----------------------------------------------------------------------------------|----------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |