1 /*
2  * Copyright 2019 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.media.tv.tuner.filter;
18 
19 import android.annotation.NonNull;
20 import android.annotation.SystemApi;
21 
22 /**
23  * Callback interface for receiving information from the corresponding filters.
24  *
25  * @hide
26  */
27 @SystemApi
28 public interface FilterCallback {
29     /**
30      * Invoked when there are filter events.
31      *
32      * @param filter the corresponding filter which sent the events.
33      * @param events the filter events sent from the filter.
34      */
onFilterEvent(@onNull Filter filter, @NonNull FilterEvent[] events)35     void onFilterEvent(@NonNull Filter filter, @NonNull FilterEvent[] events);
36     /**
37      * Invoked when filter status changed.
38      *
39      * @param filter the corresponding filter whose status is changed.
40      * @param status the new status of the filter.
41      */
onFilterStatusChanged(@onNull Filter filter, @Filter.Status int status)42     void onFilterStatusChanged(@NonNull Filter filter, @Filter.Status int status);
43 }
44