blob: d7a958a5b4b1b514a6bf093151e72817ba58172e [file] [log] [blame]
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.net.wifi;
/**
* Interface for DPP callback.
*
* @hide
*/
oneway interface IDppCallback
{
/**
* Called when local DPP Enrollee successfully receives a new Wi-Fi configuratrion from the
* peer DPP configurator.
*/
void onSuccessConfigReceived(int newNetworkId);
/**
* Called when DPP success events take place, except for when configuration is received from
* an external Configurator. The callback onSuccessConfigReceived will be used in this case.
*/
void onSuccess(int status);
/**
* Called when DPP Failure events take place.
*/
void onFailure(int status, String ssid, String channelList, in int[] bandArray);
/**
* Called when DPP events that indicate progress take place. Can be used by UI elements
* to show progress.
*/
void onProgress(int status);
}