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

Commit c3855960 authored by Jaewan Kim's avatar Jaewan Kim
Browse files

MediaSession2: Revisit documentation of SessionCallback#onPostConnect()

Bug: 127465354
Test: Build
Change-Id: I3f4244796919bae52622d0d5c8f22613e50e2e7f
parent e5c876a8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -749,6 +749,10 @@ public class MediaSession2 implements AutoCloseable {
         * You can reject the connection by returning {@code null}. In that case, controller
         * receives {@link MediaController2.ControllerCallback#onDisconnected(MediaController2)}
         * and cannot be used.
         * <p>
         * The controller hasn't connected yet in this method, so calls to the controller
         * (e.g. {@link #sendSessionCommand}) would be ignored. Override {@link #onPostConnect} for
         * the custom initialization for the controller instead.
         *
         * @param session the session for this event
         * @param controller controller information.
@@ -763,6 +767,10 @@ public class MediaSession2 implements AutoCloseable {
        /**
         * Called immediately after a controller is connected. This is a convenient method to add
         * custom initialization between the session and a controller.
         * <p>
         * Note that calls to the controller (e.g. {@link #sendSessionCommand}) work here but don't
         * work in {@link #onConnect} because the controller hasn't connected yet in
         * {@link #onConnect}.
         *
         * @param session the session for this event
         * @param controller controller information.