blob: 0fbba2026ac04d882920b816eee4b90fa08ac600 [file] [log] [blame]
/* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.media;
import android.graphics.Bitmap;
import android.media.IRemoteControlDisplay;
/**
* @hide
* Interface registered by AudioManager to notify a source of remote control information
* that information is requested to be displayed on the remote control (through
* IRemoteControlDisplay).
* {@see AudioManager#registerRemoteControlClient(RemoteControlClient)}.
*/
oneway interface IRemoteControlClient
{
/**
* Notifies a remote control client that information for the given generation ID is
* requested. If the flags contains
* {@link RemoteControlClient#FLAG_INFORMATION_REQUESTED_ALBUM_ART} then the width and height
* parameters are valid.
* @param generationId
* @param infoFlags
* @param artWidth if > 0, artHeight must be > 0 too.
* @param artHeight
* FIXME: is infoFlags required? since the RCC pushes info, this might always be called
* with RC_INFO_ALL
*/
void onInformationRequested(int generationId, int infoFlags, int artWidth, int artHeight);
/**
* Sets the generation counter of the current client that is displayed on the remote control.
*/
void setCurrentClientGenerationId(int clientGeneration);
void plugRemoteControlDisplay(IRemoteControlDisplay rcd);
void unplugRemoteControlDisplay(IRemoteControlDisplay rcd);
}