Session: Misc change from link tag to linkplain

PiperOrigin-RevId: 447939097
This commit is contained in:
christosts 2022-05-11 10:18:09 +01:00 committed by Ian Baker
parent 8d2597acc6
commit 1bcabd3450
2 changed files with 11 additions and 10 deletions

View File

@ -31,8 +31,8 @@ import androidx.media3.common.util.UnstableApi;
public final class MediaNotification { public final class MediaNotification {
/** /**
* Creates {@link NotificationCompat.Action actions} and {@link PendingIntent pending intents} for * Creates {@linkplain NotificationCompat.Action actions} and {@linkplain PendingIntent pending
* notifications. * intents} for notifications.
*/ */
@UnstableApi @UnstableApi
public interface ActionFactory { public interface ActionFactory {
@ -51,7 +51,7 @@ public final class MediaNotification {
/** /**
* Creates a {@link NotificationCompat.Action} for a notification with a custom action. Actions * Creates a {@link NotificationCompat.Action} for a notification with a custom action. Actions
* created with this method are not expected to be handled by the library and will be forwarded * created with this method are not expected to be handled by the library and will be forwarded
* to the {@link MediaNotification.Provider#handleCustomAction notification provider} that * to the {@linkplain MediaNotification.Provider#handleCustomAction notification provider} that
* provided them. * provided them.
* *
* @param icon The icon to show for this action. * @param icon The icon to show for this action.
@ -72,11 +72,11 @@ public final class MediaNotification {
} }
/** /**
* Provides {@link MediaNotification media notifications} to be posted as notifications that * Provides {@linkplain MediaNotification media notifications} to be posted as notifications that
* reflect the state of a {@link MediaController} and to send media commands to a {@link * reflect the state of a {@link MediaController} and to send media commands to a {@link
* MediaSession}. * MediaSession}.
* *
* <p>The provider is required to create a {@link androidx.core.app.NotificationChannelCompat * <p>The provider is required to create a {@linkplain androidx.core.app.NotificationChannelCompat
* notification channel}, which is required to show notification for {@code SDK_INT >= 26}. * notification channel}, which is required to show notification for {@code SDK_INT >= 26}.
*/ */
@UnstableApi @UnstableApi
@ -98,7 +98,7 @@ public final class MediaNotification {
* Creates a new {@link MediaNotification}. * Creates a new {@link MediaNotification}.
* *
* @param mediaController The controller of the session. * @param mediaController The controller of the session.
* @param actionFactory The {@link ActionFactory} for creating notification {@link * @param actionFactory The {@link ActionFactory} for creating notification {@linkplain
* NotificationCompat.Action actions}. * NotificationCompat.Action actions}.
* @param onNotificationChangedCallback A callback that the provider needs to notify when the * @param onNotificationChangedCallback A callback that the provider needs to notify when the
* notification has changed and needs to be posted again, for example after a bitmap has * notification has changed and needs to be posted again, for example after a bitmap has
@ -136,8 +136,9 @@ public final class MediaNotification {
* and to send media commands to a {@link MediaSession}. The notification may be used to start * and to send media commands to a {@link MediaSession}. The notification may be used to start
* a service in the <a * a service in the <a
* href="https://developer.android.com/guide/components/foreground-services">foreground</a>. * href="https://developer.android.com/guide/components/foreground-services">foreground</a>.
* It's highly recommended to use a {@link androidx.media.app.NotificationCompat.MediaStyle * It's highly recommended to use a {@linkplain
* media style} {@link Notification notification}. * androidx.media.app.NotificationCompat.MediaStyle media style} {@linkplain Notification
* notification}.
*/ */
public MediaNotification(@IntRange(from = 1) int notificationId, Notification notification) { public MediaNotification(@IntRange(from = 1) int notificationId, Notification notification) {
this.notificationId = notificationId; this.notificationId = notificationId;

View File

@ -261,8 +261,8 @@ public abstract class MediaSessionService extends Service {
} }
/** /**
* Returns the list of {@link MediaSession sessions} that you've added to this service via {@link * Returns the list of {@linkplain MediaSession sessions} that you've added to this service via
* #addSession} or {@link #onGetSession(ControllerInfo)}. * {@link #addSession} or {@link #onGetSession(ControllerInfo)}.
*/ */
public final List<MediaSession> getSessions() { public final List<MediaSession> getSessions() {
synchronized (lock) { synchronized (lock) {