Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1bcabd34
authored
May 11, 2022
by
christosts
Committed by
Ian Baker
May 24, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Session: Misc change from link tag to linkplain
PiperOrigin-RevId: 447939097
parent
8d2597ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
libraries/session/src/main/java/androidx/media3/session/MediaNotification.java
libraries/session/src/main/java/androidx/media3/session/MediaSessionService.java
libraries/session/src/main/java/androidx/media3/session/MediaNotification.java
View file @
1bcabd34
...
@@ -31,8 +31,8 @@ import androidx.media3.common.util.UnstableApi;
...
@@ -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 {@link
plain 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 {
...
@@ -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 {@link
plain
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 {
...
@@ -72,11 +72,11 @@ public final class MediaNotification {
}
}
/**
/**
* Provides {@link MediaNotification media notifications} to be posted as notifications that
* Provides {@link
plain
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 {@link
plain
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 {
...
@@ -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 {@link
plain
* 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 {
...
@@ -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
;
...
...
libraries/session/src/main/java/androidx/media3/session/MediaSessionService.java
View file @
1bcabd34
...
@@ -261,8 +261,8 @@ public abstract class MediaSessionService extends Service {
...
@@ -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 {@link
plain 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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment