1 /*
2  * Copyright (C) 2023 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.car.app;
18 
19 import android.annotation.NonNull;
20 
21 /**
22  * A callback interface for {@link RemoteCarDefaultRootTaskView}.
23  *
24  * @hide
25  */
26 public interface RemoteCarDefaultRootTaskViewCallback
27         extends RemoteCarTaskViewCallback<RemoteCarDefaultRootTaskView> {
28     /**
29      * Called when the underlying {@link RemoteCarDefaultRootTaskView} instance is created.
30      *
31      * @param taskView the new newly created {@link RemoteCarDefaultRootTaskView} instance.
32      */
33     @Override
onTaskViewCreated(@onNull RemoteCarDefaultRootTaskView taskView)34     default void onTaskViewCreated(@NonNull RemoteCarDefaultRootTaskView taskView) {}
35 
36     /**
37      * Called when the underlying {@link RemoteCarDefaultRootTaskView} is ready. A
38      * {@link RemoteCarDefaultRootTaskView} is considered ready when it has completed all the
39      * set up that is required.  This callback is only triggered once.
40      */
41     @Override
onTaskViewInitialized()42     default void onTaskViewInitialized() {}
43 
44     /**
45      * Called when the underlying {@link RemoteCarDefaultRootTaskView} is released.
46      * This callback is only triggered once.
47      */
48     @Override
onTaskViewReleased()49     default void onTaskViewReleased() {}
50 }
51