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.net.wifi;
18 
19 import android.net.wifi.WifiClient;
20 
21 /**
22  * Interface for Soft AP callback.
23  *
24  * @hide
25  */
26 oneway interface ISoftApCallback
27 {
28     /**
29      * Service to manager callback providing current soft AP state. The possible
30      * parameter values listed are defined in WifiManager.java
31      *
32      * @param state new AP state. One of WIFI_AP_STATE_DISABLED,
33      *        WIFI_AP_STATE_DISABLING, WIFI_AP_STATE_ENABLED,
34      *        WIFI_AP_STATE_ENABLING, WIFI_AP_STATE_FAILED
35      * @param failureReason reason when in failed state. One of
36      *        SAP_START_FAILURE_GENERAL, SAP_START_FAILURE_NO_CHANNEL
37      */
onStateChanged(int state, int failureReason)38     void onStateChanged(int state, int failureReason);
39 
40     /**
41      * Service to manager callback providing connected client's information.
42      *
43      * @param clients the currently connected clients
44      */
onConnectedClientsChanged(in List<WifiClient> clients)45     void onConnectedClientsChanged(in List<WifiClient> clients);
46 }
47