diff options
author | Danning Chen <danningc@google.com> | 2019-08-06 16:30:44 -0700 |
---|---|---|
committer | Danning Chen <danningc@google.com> | 2019-08-09 11:37:47 -0700 |
commit | ba4077d9e0bcfa92993ec3c9579e41ab6c2d82d3 (patch) | |
tree | 71c818dcd21f6e61bd912f256462d8e61b43ec99 /src_plugins | |
parent | 64a6fb063e565d1bdf7be0a5f9c6db909fcaab12 (diff) | |
download | android_packages_apps_Trebuchet-ba4077d9e0bcfa92993ec3c9579e41ab6c2d82d3.tar.gz android_packages_apps_Trebuchet-ba4077d9e0bcfa92993ec3c9579e41ab6c2d82d3.tar.bz2 android_packages_apps_Trebuchet-ba4077d9e0bcfa92993ec3c9579e41ab6c2d82d3.zip |
Create a HotseatPlugin interface.
Change-Id: I382795262433879be4c4360fa12ab5bd1e41a297
Diffstat (limited to 'src_plugins')
-rw-r--r-- | src_plugins/com/android/systemui/plugins/HotseatPlugin.java | 20 |
1 files changed, 20 insertions, 0 deletions
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 000000000..1264e0d3b --- /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); +} |