# PipHintTrackerKt

Added in 1.9.0

*** ** * ** ***


```
public final class PipHintTrackerKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final void` | `@https://developer.android.com/reference/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/androidx/activity/PipHintTrackerKt#(android.app.Activity).trackPipAnimationHintView(android.view.View)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/Activity.html receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html view)` Sets the `https://developer.android.com/reference/android/view/View.html` that will be used as reference to set the `https://developer.android.com/reference/android/app/PictureInPictureParams.Builder.html#setSourceRectHint(android.graphics.Rect)`. |

## Public methods

### trackPipAnimationHintView

Artifact: [androidx.activity:activity](https://developer.android.com/jetpack/androidx/releases/activity) [View Source](https://cs.android.com/search?q=file:androidx/activity/PipHintTracker.kt+function:trackPipAnimationHintView) Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/activity#1.9.0)

```
@RequiresApi(value = 26)
public static final void trackPipAnimationHintView(@NonNull Activity receiver, @NonNull View view)
```

Sets the `https://developer.android.com/reference/android/view/View.html` that will be used as reference to set the `https://developer.android.com/reference/android/app/PictureInPictureParams.Builder.html#setSourceRectHint(android.graphics.Rect)`.

Anytime the view position changes, `https://developer.android.com/reference/android/app/Activity.html#setPictureInPictureParams(android.app.PictureInPictureParams)` will be called with the updated view's position in window coordinates as the `https://developer.android.com/reference/android/app/PictureInPictureParams.Builder.html#setSourceRectHint(android.graphics.Rect)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html view` | the view to use as the reference for the source rect hint |