1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 sequenceable AvsessionDescriptor..OHOS.AVSession.OutputDeviceInfo; 17 sequenceable AvcallMetaData..OHOS.AVSession.AVCallMetaData; 18 sequenceable AvcallState..OHOS.AVSession.AVCallState; 19 sequenceable AvplaybackState..OHOS.AVSession.AVPlaybackState; 20 sequenceable AvmetaData..OHOS.AVSession.AVMetaData; 21 sequenceable WantParams..OHOS.AAFwk.WantParams; 22 sequenceable AvqueueItem..OHOS.AVSession.AVQueueItem; 23 sequenceable OHOS.IRemoteObject; 24 25 interface OHOS.AVSession.IAVControllerCallback { 26 [oneway] void OnSessionDestroy(); 27 28 [oneway] void OnAVCallMetaDataChange([in] AVCallMetaData metaData); 29 30 [oneway] void OnAVCallStateChange([in] AVCallState state); 31 32 [oneway] void OnPlaybackStateChange([in] AVPlaybackState state); 33 34 [ipcincapacity 1024, oneway] void OnMetaDataChange([in] AVMetaData metaData); 35 36 [oneway] void OnActiveStateChange([in] boolean isActive); 37 38 [oneway] void OnValidCommandChange([in] int[] cmds); 39 40 [oneway] void OnOutputDeviceChange([in] int connectionState, [in] OutputDeviceInfo outputDeviceInfo); 41 42 [oneway] void OnSessionEventChange([in] String event, [in] WantParams args); 43 44 [oneway] void OnQueueItemsChange([in] AVQueueItem[] items); 45 46 [oneway] void OnQueueTitleChange([in] String title); 47 48 [oneway] void OnExtrasChange([in] WantParams extras); 49 50 [oneway] void OnCustomData([in] WantParams customData); 51 }