1 /** 2 * Copyright (C) 2024 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.content.pm.dependencyinstaller; 18 19 import java.util.List; 20 21 /** 22 * Callbacks for Dependency Installer. The app side invokes on this interface to indicate 23 * completion of the async dependency install request given by the system server. 24 * 25 * {@hide} 26 */ 27 interface IDependencyInstallerCallback { 28 /** 29 * Callback to indicate that all the requested dependencies have been resolved and have been 30 * committed for installation. See {@link DependencyInstallerService#onDependenciesRequired}. 31 * 32 * @param sessionIds the install session IDs for all requested dependencies 33 */ onAllDependenciesResolved(in int[] sessionIds)34 void onAllDependenciesResolved(in int[] sessionIds); 35 36 /** 37 * Callback to indicate that at least one of the required dependencies could not be resolved 38 * and any associated sessions have been abandoned. 39 */ onFailureToResolveAllDependencies()40 void onFailureToResolveAllDependencies(); 41 } 42