Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64391ea8 authored by Vishnu Nair's avatar Vishnu Nair Committed by Android (Google) Code Review
Browse files

Merge "Update SurfaceView.getSurfaceControl documentation" into main

parents ff45dec4 42318204
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2156,6 +2156,11 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
     * any {@link SurfaceControl.Transaction} to this SurfaceControl except for reparenting
     * child SurfaceControls. See: {@link SurfaceControl.Transaction#reparent}.
     *
     *  The SurfaceControl lifetime follows the SurfaceView's Surface lifetime. You should implement
     * {@link SurfaceHolder.Callback#surfaceCreated} and
     * {@link SurfaceHolder.Callback#surfaceDestroyed} to discover when the
     * SurfaceControl is valid. Outside of that, a {@code null} SurfaceControl will be returned.
     *
     * @return The SurfaceControl for this SurfaceView.
     */
    public SurfaceControl getSurfaceControl() {