Merge "MediaSession2: Remove MediaSession2#registerPlayerEventCallback()" into pi-dev am: eb8e914ea7

am: d28a13b41e

Change-Id: Iec8385c88d8b5951b588ba71a09123faf415e541
This commit is contained in:
Jaewan Kim
2018-03-16 05:03:07 +00:00
committed by android-build-merger
2 changed files with 0 additions and 31 deletions

View File

@@ -1616,35 +1616,6 @@ public class MediaSession2 implements AutoCloseable {
mProvider.notifyError_impl(errorCode, extras);
}
/**
* Register {@link PlayerEventCallback} to listen changes in the underlying
* {@link MediaPlayerBase}, regardless of the change in the underlying player.
* <p>
* Registered callbacks will be also called when the underlying player is changed.
*
* @param executor a callback Executor
* @param callback a EventCallback
* @throws IllegalArgumentException if executor or callback is {@code null}.
* @hide
*/
// TODO(jaewan): Remove (b/74157064)
public void registerPlayerEventCallback(@NonNull @CallbackExecutor Executor executor,
@NonNull PlayerEventCallback callback) {
mProvider.registerPlayerEventCallback_impl(executor, callback);
}
/**
* Unregister the previously registered {@link PlayerEventCallback}.
*
* @param callback the callback to be removed
* @throws IllegalArgumentException if the callback is {@code null}.
* @hide
*/
// TODO(jaewan): Remove (b/74157064)
public void unregisterPlayerEventCallback(@NonNull PlayerEventCallback callback) {
mProvider.unregisterPlayerEventCallback_impl(callback);
}
/**
* Get the player state.
*

View File

@@ -68,8 +68,6 @@ public interface MediaSession2Provider extends TransportControlProvider {
void setPlaylistParams_impl(PlaylistParams params);
PlaylistParams getPlaylistParams_impl();
void notifyError_impl(int errorCode, Bundle extras);
void registerPlayerEventCallback_impl(Executor executor, PlayerEventCallback callback);
void unregisterPlayerEventCallback_impl(PlayerEventCallback callback);
interface CommandProvider {
int getCommandCode_impl();