Create a HotseatPlugin interface.

Change-Id: I382795262433879be4c4360fa12ab5bd1e41a297
This commit is contained in:
Danning Chen 2019-08-06 16:30:44 -07:00
parent 64a6fb063e
commit ba4077d9e0
1 changed files with 20 additions and 0 deletions

View File

@ -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);
}