ISessionControllerCallback.aidl revision 42ea7eecd149161ed192d3029f0d77d1d08a4aa5
101fe661ae5da3739215d93922412df4b24c859a2RoboErik/* Copyright (C) 2014 The Android Open Source Project 201fe661ae5da3739215d93922412df4b24c859a2RoboErik * 301fe661ae5da3739215d93922412df4b24c859a2RoboErik * Licensed under the Apache License, Version 2.0 (the "License"); 401fe661ae5da3739215d93922412df4b24c859a2RoboErik * you may not use this file except in compliance with the License. 501fe661ae5da3739215d93922412df4b24c859a2RoboErik * You may obtain a copy of the License at 601fe661ae5da3739215d93922412df4b24c859a2RoboErik * 701fe661ae5da3739215d93922412df4b24c859a2RoboErik * http://www.apache.org/licenses/LICENSE-2.0 801fe661ae5da3739215d93922412df4b24c859a2RoboErik * 901fe661ae5da3739215d93922412df4b24c859a2RoboErik * Unless required by applicable law or agreed to in writing, software 1001fe661ae5da3739215d93922412df4b24c859a2RoboErik * distributed under the License is distributed on an "AS IS" BASIS, 1101fe661ae5da3739215d93922412df4b24c859a2RoboErik * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1201fe661ae5da3739215d93922412df4b24c859a2RoboErik * See the License for the specific language governing permissions and 1301fe661ae5da3739215d93922412df4b24c859a2RoboErik * limitations under the License. 1401fe661ae5da3739215d93922412df4b24c859a2RoboErik */ 1501fe661ae5da3739215d93922412df4b24c859a2RoboErik 162f5b057da7d05d5d699a272aa24fd7c97cdda820RoboErikpackage android.media.session; 1701fe661ae5da3739215d93922412df4b24c859a2RoboErik 1842ea7eecd149161ed192d3029f0d77d1d08a4aa5RoboErikimport android.media.MediaMetadata; 1907c7077c54717dbbf2c401ea32d00fa6df6d77c6RoboErikimport android.media.session.RouteInfo; 208ae0f34db936a649ddaf9cdd086c224f6514efebRoboErikimport android.media.session.PlaybackState; 2101fe661ae5da3739215d93922412df4b24c859a2RoboErikimport android.os.Bundle; 2201fe661ae5da3739215d93922412df4b24c859a2RoboErik 2301fe661ae5da3739215d93922412df4b24c859a2RoboErik/** 2401fe661ae5da3739215d93922412df4b24c859a2RoboErik * @hide 2501fe661ae5da3739215d93922412df4b24c859a2RoboErik */ 2607c7077c54717dbbf2c401ea32d00fa6df6d77c6RoboErikoneway interface ISessionControllerCallback { 2701fe661ae5da3739215d93922412df4b24c859a2RoboErik void onEvent(String event, in Bundle extras); 2807c7077c54717dbbf2c401ea32d00fa6df6d77c6RoboErik void onRouteChanged(in RouteInfo route); 298ae0f34db936a649ddaf9cdd086c224f6514efebRoboErik 308ae0f34db936a649ddaf9cdd086c224f6514efebRoboErik // These callbacks are for the TransportController 318ae0f34db936a649ddaf9cdd086c224f6514efebRoboErik void onPlaybackStateChanged(in PlaybackState state); 328ae0f34db936a649ddaf9cdd086c224f6514efebRoboErik void onMetadataChanged(in MediaMetadata metadata); 3301fe661ae5da3739215d93922412df4b24c859a2RoboErik}