/* * Copyright (C) 2025 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 com.android.settings.supervision import com.android.settings.supervision.ipc.SupportedApp /** * Interface for providing supported apps. * * This interface defines a method for retrieving supported apps based on a list of keys. * Implementations of this interface are responsible for fetching and returning a map of supported * app package names, where the keys in the map correspond to the requested keys. */ interface SupportedAppsProvider { /** Package of supported apps provider. */ val packageName: String? /** * Retrieves supported apps for the specified filter keys. * * This suspend function fetches supported apps asynchronously. * * @param keys A list of strings representing the keys for content filters. * @return A map where the keys are the requested keys, and the values are the corresponding * list of supported apps. */ suspend fun getSupportedApps(keys: List): Map> }