# ZoomGestureDetector.ZoomEvent.Begin

Artifact: [androidx.camera.viewfinder:viewfinder-core](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder) [View Source](https://cs.android.com/search?q=file:androidx/camera/viewfinder/core/ZoomGestureDetector.kt+class:androidx.camera.viewfinder.core.ZoomGestureDetector.ZoomEvent.Begin) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/camera-viewfinder#1.5.0)

*** ** * ** ***

<br />

```
class ZoomGestureDetector.ZoomEvent.Begin : ZoomGestureDetector.ZoomEvent
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.camera.viewfinder.core.ZoomGestureDetector.ZoomEvent](https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/ZoomGestureDetector.ZoomEvent) ||
|   | ↳ | [androidx.camera.viewfinder.core.ZoomGestureDetector.ZoomEvent.Begin](https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/ZoomGestureDetector.ZoomEvent.Begin) |

*** ** * ** ***

The beginning of a zoom gesture. Reported by new pointers going down.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/ZoomGestureDetector.ZoomEvent.Begin#Begin(kotlin.Long,kotlin.Int,kotlin.Int)( eventTime: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, focusX: @https://developer.android.com/reference/kotlin/androidx/annotation/Px @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, focusY: @https://developer.android.com/reference/kotlin/androidx/annotation/Px @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` |

### Inherited properties

From [androidx.camera.viewfinder.core.ZoomGestureDetector.ZoomEvent](https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/ZoomGestureDetector.ZoomEvent) `@https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/ZoomGestureDetector.ZoomEvent#eventTime()`

The event time in milliseconds of the current event being processed, in `https://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis()` time base.
`@https://developer.android.com/reference/kotlin/androidx/annotation/Px @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/ZoomGestureDetector.ZoomEvent#focusX()`

The X coordinate of the current gesture's focal point in pixels.
`@https://developer.android.com/reference/kotlin/androidx/annotation/Px @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/camera/viewfinder/core/ZoomGestureDetector.ZoomEvent#focusY()`

The Y coordinate of the current gesture's focal point in pixels.

## Public constructors

### Begin

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

```
Begin(
    eventTime: @IntRange(from = 0) Long,
    focusX: @Px @IntRange(from = 0) Int,
    focusY: @Px @IntRange(from = 0) Int
)
```

| Parameters |
|---|---|
| `eventTime: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The event time in milliseconds of the current event being processed, in `https://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis()` time base. |
| `focusX: @https://developer.android.com/reference/kotlin/androidx/annotation/Px @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The X coordinate of the current gesture's focal point in pixels. |
| `focusY: @https://developer.android.com/reference/kotlin/androidx/annotation/Px @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The Y coordinate of the current gesture's focal point in pixels. |