PipHintTrackerKt

Added in 1.3.0

public final class PipHintTrackerKt


Summary

Public methods

static final void

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

Public methods

trackPipAnimationHintView

@RequiresApi(value = 26)
public static final void trackPipAnimationHintView(@NonNull Activity receiver, @NonNull 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
@NonNull View view

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