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