AllAppsSearch interface change Version 3

Change-Id: I79f635582075a1e33e970e4f4eb6ec653572fefe
This commit is contained in:
Hyunyoung Song
2020-05-18 08:58:05 -07:00
parent 764f67e967
commit ef9a6972ce
3 changed files with 49 additions and 22 deletions

View File

@@ -19,17 +19,32 @@ package com.android.systemui.plugins;
import android.app.Activity;
import android.view.ViewGroup;
import android.widget.EditText;
import com.android.systemui.plugins.annotations.ProvidesInterface;
/**
* Implement this plugin interface to add a row of views to the top of the all apps drawer.
* Implement this plugin interface to replace the all apps recycler view of the all apps drawer.
*/
@ProvidesInterface(action = AllAppsSearchPlugin.ACTION, version = AllAppsSearchPlugin.VERSION)
public interface AllAppsSearchPlugin extends Plugin {
String ACTION = "com.android.systemui.action.PLUGIN_ALL_APPS_SEARCH_ACTIONS";
int VERSION = 2;
int VERSION = 3;
void setup(ViewGroup parent, Activity activity);
void setEditText(EditText editText);
/** Following are the order that these methods should be called. */
void setup(ViewGroup parent, Activity activity, float allAppsContainerHeight);
/**
* When drag starts, pass window inset related fields and the progress to indicate
* whether user is swiping down or swiping up
*/
void onDragStart(float progress);
/** progress is between [0, 1] 1: down, 0: up */
void setProgress(float progress);
/** Called when container animation stops, so that plugin can perform cleanups */
void onAnimationEnd(float progress);
/** pass over the search box object */
void setEditText(EditText editText);
}