# ViewfinderViewExtKt

Added in 1.5.0

*** ** * ** ***


```
public final class ViewfinderViewExtKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/camera/viewfinder/core/ViewfinderSurfaceSession` | `https://developer.android.com/reference/androidx/camera/viewfinder/view/ViewfinderViewExtKt#(androidx.camera.viewfinder.view.ViewfinderView).requestSurfaceSession(androidx.camera.viewfinder.core.ViewfinderSurfaceRequest)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/camera/viewfinder/view/ViewfinderView receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/camera/viewfinder/core/ViewfinderSurfaceRequest viewfinderSurfaceRequest )` Provides a suspending function of `https://developer.android.com/reference/androidx/camera/viewfinder/view/ViewfinderView#requestSurfaceSessionAsync(androidx.camera.viewfinder.core.ViewfinderSurfaceRequest)` to request a `https://developer.android.com/reference/androidx/camera/viewfinder/core/ViewfinderSurfaceSession` by sending a `https://developer.android.com/reference/androidx/camera/viewfinder/core/ViewfinderSurfaceRequest`. |

## Public methods

### requestSurfaceSession

Artifact: [androidx.camera.viewfinder:viewfinder-view](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder) [View Source](https://cs.android.com/search?q=file:androidx/camera/viewfinder/view/ViewfinderViewExt.kt+function:requestSurfaceSession)

```
public static final @NonNull ViewfinderSurfaceSession requestSurfaceSession(
    @NonNull ViewfinderView receiver,
    @NonNull ViewfinderSurfaceRequest viewfinderSurfaceRequest
)
```

Provides a suspending function of `https://developer.android.com/reference/androidx/camera/viewfinder/view/ViewfinderView#requestSurfaceSessionAsync(androidx.camera.viewfinder.core.ViewfinderSurfaceRequest)` to request a `https://developer.android.com/reference/androidx/camera/viewfinder/core/ViewfinderSurfaceSession` by sending a `https://developer.android.com/reference/androidx/camera/viewfinder/core/ViewfinderSurfaceRequest`.