2 * ***************************************************************
4 * Copyright 2015 Samsung Electronics All Rights Reserved.
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
20 * ****************************************************************
23 package org.iotivity.service.easysetup.core;
26 * This interface facilitates Application to get progress & result of Easy setup
27 * process Easy setup process.
29 public interface EasySetupStatus {
32 * This method is called back when easy setup process is finished. Easy
33 * setup process status can read from the APIs given in Enrollee class.This
34 * method is called on worker thread, UI operations to be executed on main /
37 * @param enrolledevice Device to be enrolled in network through Easy setup process
39 public void onFinished(EnrolleeDevice enrolledevice);
42 * This method is called back to give intermediate progress on the easy
43 * setup process This method is called on worker thread, UI operations to be
44 * executed on main / Ui Thread.
46 * @param state Gives state of the device changed during easy setup process
48 public void onProgress(EnrolleeState state);