1 /* 2 * Copyright (C) 2025 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 package com.android.settings.supervision 17 18 import android.app.settings.SettingsEnums 19 import android.content.Context 20 import com.android.settings.R 21 import com.android.settings.dashboard.DashboardFragment 22 23 /** 24 * Fragment to display the Supervision settings landing page (Settings > Supervision). 25 * 26 * See [SupervisionDashboardScreen] for details on the page contents. 27 * 28 * This class extends [DashboardFragment] in order to support dynamic settings injection. 29 */ 30 class SupervisionDashboardFragment : DashboardFragment() { 31 getPreferenceScreenResIdnull32 override fun getPreferenceScreenResId() = 0 33 34 override fun getMetricsCategory() = SettingsEnums.SUPERVISION_DASHBOARD 35 36 override fun getLogTag() = TAG 37 38 override fun getPreferenceScreenBindingKey(context: Context) = SupervisionDashboardScreen.KEY 39 40 // TODO(b/383405598): redirect to Play Store if supervisor client is not 41 // fully present. 42 43 companion object { 44 private const val TAG = "SupervisionDashboard" 45 } 46 } 47