From ba4077d9e0bcfa92993ec3c9579e41ab6c2d82d3 Mon Sep 17 00:00:00 2001 From: Danning Chen Date: Tue, 6 Aug 2019 16:30:44 -0700 Subject: [PATCH] Create a HotseatPlugin interface. Change-Id: I382795262433879be4c4360fa12ab5bd1e41a297 --- .../systemui/plugins/HotseatPlugin.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src_plugins/com/android/systemui/plugins/HotseatPlugin.java diff --git a/src_plugins/com/android/systemui/plugins/HotseatPlugin.java b/src_plugins/com/android/systemui/plugins/HotseatPlugin.java new file mode 100644 index 0000000000..1264e0d3b0 --- /dev/null +++ b/src_plugins/com/android/systemui/plugins/HotseatPlugin.java @@ -0,0 +1,20 @@ +package com.android.systemui.plugins; + +import android.view.View; +import android.view.ViewGroup; + +import com.android.systemui.plugins.annotations.ProvidesInterface; + +/** + * Implement this plugin interface to add a sub-view in the Hotseat. + */ +@ProvidesInterface(action = HotseatPlugin.ACTION, version = HotseatPlugin.VERSION) +public interface HotseatPlugin extends Plugin { + String ACTION = "com.android.systemui.action.PLUGIN_HOTSEAT"; + int VERSION = 1; + + /** + * Creates a plugin view which will be added to the Hotseat. + */ + View createView(ViewGroup parent); +}