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

Commit f1a38b42 authored by Shubang Lu's avatar Shubang Lu
Browse files

[CSAI API review] Improve the JavaDoc of startAdService

Bug: 327182869
Test: mmm
Change-Id: Icf113e36ff2db4e2b462705c26150f71759459c0
parent ebbf77ea
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -441,6 +441,9 @@ public class TvAdView extends ViewGroup {
    /**
    /**
     * Prepares the AD service of corresponding {@link TvAdService}.
     * Prepares the AD service of corresponding {@link TvAdService}.
     *
     *
     * <p>This should be called before calling {@link #startAdService()}. Otherwise,
     * {@link #startAdService()} is a no-op.
     *
     * @param serviceId the AD service ID, which can be found in TvAdServiceInfo#getId().
     * @param serviceId the AD service ID, which can be found in TvAdServiceInfo#getId().
     */
     */
    public void prepareAdService(@NonNull String serviceId, @NonNull String type) {
    public void prepareAdService(@NonNull String serviceId, @NonNull String type) {
@@ -455,6 +458,9 @@ public class TvAdView extends ViewGroup {


    /**
    /**
     * Starts the AD service.
     * Starts the AD service.
     *
     * <p>This should be called after calling {@link #prepareAdService(String, String)}. Otherwise,
     * it's a no-op.
     */
     */
    public void startAdService() {
    public void startAdService() {
        if (DEBUG) {
        if (DEBUG) {
@@ -467,6 +473,8 @@ public class TvAdView extends ViewGroup {


    /**
    /**
     * Stops the AD service.
     * Stops the AD service.
     *
     * <p>It's a no-op if the service is not started.
     */
     */
    public void stopAdService() {
    public void stopAdService() {
        if (DEBUG) {
        if (DEBUG) {