Merge "Make hidden constructor of PlaybackInfo as @SystemApi"
This commit is contained in:
@@ -3621,6 +3621,10 @@ package android.media.session {
|
||||
method public void unregisterCallback(@NonNull android.media.session.ControllerCallbackLink);
|
||||
}
|
||||
|
||||
public static final class MediaController.PlaybackInfo implements android.os.Parcelable {
|
||||
ctor public MediaController.PlaybackInfo(int, int, int, int, android.media.AudioAttributes);
|
||||
}
|
||||
|
||||
public abstract static class MediaSession.Callback {
|
||||
method public void onSetMediaButtonEventDelegate(@NonNull android.media.session.MediaSessionEngine.MediaButtonEventDelegate);
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.media.session;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
@@ -995,6 +996,7 @@ public final class MediaController {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public PlaybackInfo(int type, int control, int max, int current, AudioAttributes attrs) {
|
||||
mVolumeType = type;
|
||||
mVolumeControl = control;
|
||||
|
||||
Reference in New Issue
Block a user