ImsConnectionStateListener.java revision 1463174fa4bab35f04dfa71196c277dfeb603717
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
17package 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 */
26public class ImsConnectionStateListener {
27    /**
28     * Called when the device is connected to the IMS network.
29     */
30    public void onImsConnected() {
31        // no-op
32    }
33
34    /**
35     * Called when the device is trying to connect to the IMS network.
36     */
37    public void onImsProgressing() {
38        // no-op
39    }
40
41    /**
42     * Called when the device is disconnected from the IMS network.
43     */
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     */
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     */
59    public void onImsSuspended() {
60        // no-op
61    }
62
63    /**
64     * Called when its current IMS connection feature capability changes.
65     */
66    public void onFeatureCapabilityChanged(int serviceClass,
67                int[] enabledFeatures, int[] disabledFeatures) {
68        // no-op
69    }
70}
71