1 /* 2 * Copyright (c) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.telephony.ims.aidl; 18 19 import android.net.Uri; 20 import android.telephony.ims.RcsContactUceCapability; 21 22 import java.util.List; 23 24 /** 25 * Listener interface for updates from the RcsFeature back to the framework. 26 * {@hide} 27 */ 28 interface IRcsFeatureListener { 29 //RcsCapabilityExchange specific onCommandUpdate(int commandCode, int operationToken)30 oneway void onCommandUpdate(int commandCode, int operationToken); 31 // RcsPresenceExchangeImplBase Specific onNetworkResponse(int code, in String reason, int operationToken)32 oneway void onNetworkResponse(int code, in String reason, int operationToken); onCapabilityRequestResponsePresence(in List<RcsContactUceCapability> infos, int operationToken)33 oneway void onCapabilityRequestResponsePresence(in List<RcsContactUceCapability> infos, 34 int operationToken); onNotifyUpdateCapabilities(int publishTriggerType)35 oneway void onNotifyUpdateCapabilities(int publishTriggerType); onUnpublish()36 oneway void onUnpublish(); 37 // RcsSipOptionsImplBase specific onCapabilityRequestResponseOptions(int code, in String reason, in RcsContactUceCapability info, int operationToken)38 oneway void onCapabilityRequestResponseOptions(int code, in String reason, 39 in RcsContactUceCapability info, int operationToken); onRemoteCapabilityRequest(in Uri contactUri, in RcsContactUceCapability remoteInfo, int operationToken)40 oneway void onRemoteCapabilityRequest(in Uri contactUri, in RcsContactUceCapability remoteInfo, 41 int operationToken); 42 } 43