1 /*
2  * Copyright (c) 2013 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 com.android.ims;
18 
19 /**
20  * Listener for receiving notifications about changes to the IMS connection.
21  * It provides a state of IMS registration between UE and IMS network, the service
22  * availability of the local device during IMS registered.
23  *
24  * @hide
25  */
26 public class ImsConnectionStateListener {
27     /**
28      * Called when the device is connected to the IMS network.
29      */
onImsConnected()30     public void onImsConnected() {
31         // no-op
32     }
33 
34     /**
35      * Called when the device is trying to connect to the IMS network.
36      */
onImsProgressing()37     public void onImsProgressing() {
38         // no-op
39     }
40 
41     /**
42      * Called when the device is disconnected from the IMS network.
43      */
onImsDisconnected(ImsReasonInfo imsReasonInfo)44     public void onImsDisconnected(ImsReasonInfo imsReasonInfo) {
45         // no-op
46     }
47 
48     /**
49      * Called when its suspended IMS connection is resumed, meaning the connection
50      * now allows throughput.
51      */
onImsResumed()52     public void onImsResumed() {
53         // no-op
54     }
55 
56     /**
57      * Called when its current IMS connection is suspended, meaning there is no data throughput.
58      */
onImsSuspended()59     public void onImsSuspended() {
60         // no-op
61     }
62 
63     /**
64      * Called when its current IMS connection feature capability changes.
65      */
onFeatureCapabilityChanged(int serviceClass, int[] enabledFeatures, int[] disabledFeatures)66     public void onFeatureCapabilityChanged(int serviceClass,
67                 int[] enabledFeatures, int[] disabledFeatures) {
68         // no-op
69     }
70 }
71