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

Commit 922a6f37 authored by Nick Chalko's avatar Nick Chalko
Browse files

Include documentation for a null surface in TvInputService.Session.onSetSurface.

Bug: 18718144
Change-Id: I359a918da4ceeb01e44b38e6e82a501c0360e681
parent 43cd1ddc
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -598,10 +598,13 @@ public abstract class TvInputService extends Service {
        }

    /**
         * Sets the {@link Surface} for the current input session on which the TV input renders
         * video.
     * Sets the {@link Surface} for the current input session on which the TV input renders video.
     * <p>
     * When {@code setSurface(null)} is called, the implementation should stop using the Surface
     * object previously given and release any references to it.
     *
         * @param surface {@link Surface} an application passes to this TV input session.
     * @param surface possibly {@code null} {@link Surface} an application passes to this TV input
     *        session.
     * @return {@code true} if the surface was set, {@code false} otherwise.
     */
        public abstract boolean onSetSurface(Surface surface);