1 /* 2 * Copyright (C) 2010 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 com.android.sdkuilib.repository; 18 19 20 /** 21 * Interface for listeners on SDK modifications by the SDK Manager UI. 22 * This notifies when the SDK manager is first loading the SDK or before/after it installed 23 * a package. 24 */ 25 public interface ISdkChangeListener { 26 /** 27 * Invoked when the content of the SDK is being loaded by the SDK Manager UI 28 * for the first time. 29 * This is generally followed by a call to {@link #onSdkReload()} 30 * or by a call to {@link #preInstallHook()}. 31 */ onSdkLoaded()32 void onSdkLoaded(); 33 34 /** 35 * Invoked when the SDK Manager UI is about to start installing packages. 36 * This will be followed by a call to {@link #postInstallHook()}. 37 */ preInstallHook()38 void preInstallHook(); 39 40 /** 41 * Invoked when the SDK Manager UI is done installing packages. 42 * Some new packages might have been installed or the user might have cancelled the operation. 43 * This is generally followed by a call to {@link #onSdkReload()}. 44 */ postInstallHook()45 void postInstallHook(); 46 47 /** 48 * Invoked when the content of the SDK is being reloaded by the SDK Manager UI, 49 * typically after a package was installed. The SDK content might or might not 50 * have changed. 51 */ onSdkReload()52 void onSdkReload(); 53 } 54 55