PipHintTrackerKt

public final class PipHintTrackerKt


Summary

Public methods

static final @ExperimentalCoroutinesApi @RequiresApi(value = 26) void
PipHintTrackerKt.trackPipAnimationHintView(
    Activity receiver,
    View view
)

Sets the View that will be used as reference to set the PictureInPictureParams.Builder.setSourceRectHint.

Public methods

PipHintTrackerKt.trackPipAnimationHintView

@ExperimentalCoroutinesApi
@RequiresApi(value = 26)
public static final void PipHintTrackerKt.trackPipAnimationHintView(
    Activity receiver,
    View view
)

Sets the View that will be used as reference to set the PictureInPictureParams.Builder.setSourceRectHint.

Anytime the view position changes, Activity.setPictureInPictureParams will be called with the updated view's position in window coordinates as the PictureInPictureParams.Builder.setSourceRectHint.

Parameters
View view

the view to use as the reference for the source rect hint