1 /* 2 * Copyright (C) 2020 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.panel; 17 18 /** 19 * PanelContentCallback provides a callback interface for {@link PanelFragment} to receive 20 * events from {@link PanelContent}. 21 * 22 * @deprecated this is no longer used after V and will be removed. 23 */ 24 @Deprecated(forRemoval = true) 25 public interface PanelContentCallback { 26 27 /** 28 * It will be called when customized button state is changed. For example, custom button 29 * would be hidden for specific behavior. 30 */ onCustomizedButtonStateChanged()31 void onCustomizedButtonStateChanged(); 32 33 /** 34 * It will be called when header content is changed. For example, to add/remove a device into 35 * a group 36 */ onHeaderChanged()37 void onHeaderChanged(); 38 39 /** 40 * It will be called when panel requests to close itself. 41 */ forceClose()42 void forceClose(); 43 44 /** 45 * It will be called when panel requests to change the title. 46 */ onTitleChanged()47 void onTitleChanged(); 48 49 /** 50 * It will be called when panel requests to change the progress bar visibility. 51 */ onProgressBarVisibleChanged()52 void onProgressBarVisibleChanged(); 53 } 54