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 17 package com.android.systemui.car.window; 18 19 /** 20 * Controls when to show and hide {@link OverlayViewController}(s). 21 */ 22 public interface OverlayViewMediator { 23 24 /** 25 * Register listeners that could use ContentVisibilityAdjuster to show/hide content. 26 * 27 * Note that we do not unregister listeners because SystemUI components are expected to live 28 * for the lifecycle of the device. 29 */ registerListeners()30 void registerListeners(); 31 32 /** 33 * Allows for post-inflation callbacks and listeners to be set inside required {@link 34 * OverlayViewController}(s). 35 */ setUpOverlayContentViewControllers()36 void setUpOverlayContentViewControllers(); 37 } 38