1 /*
2  * Copyright (C) 2024 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.launcher3.util;
17 
18 import static com.android.launcher3.util.MainThreadInitializedObject.forOverride;
19 
20 import com.android.launcher3.R;
21 import com.android.systemui.plugins.Plugin;
22 import com.android.systemui.plugins.PluginListener;
23 
24 import java.io.PrintWriter;
25 
26 public class PluginManagerWrapper implements ResourceBasedOverride, SafeCloseable {
27 
28     public static final MainThreadInitializedObject<PluginManagerWrapper> INSTANCE =
29             forOverride(PluginManagerWrapper.class, R.string.plugin_manager_wrapper_class);
30 
addPluginListener( PluginListener<T> listener, Class<T> pluginClass)31     public <T extends Plugin> void addPluginListener(
32             PluginListener<T> listener, Class<T> pluginClass) {
33         addPluginListener(listener, pluginClass, false);
34     }
35 
addPluginListener( PluginListener<T> listener, Class<T> pluginClass, boolean allowMultiple)36     public <T extends Plugin> void addPluginListener(
37             PluginListener<T> listener, Class<T> pluginClass, boolean allowMultiple) {
38     }
39 
removePluginListener(PluginListener<? extends Plugin> listener)40     public void removePluginListener(PluginListener<? extends Plugin> listener) { }
41 
42     @Override
close()43     public void close() { }
44 
dump(PrintWriter pw)45     public void dump(PrintWriter pw) { }
46 }
47