Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8727c4f7 authored by Samuel Fufa's avatar Samuel Fufa Committed by Android (Google) Code Review
Browse files

Merge "[Search] Introduce notifyEvent api in OneSearch plugin" into sc-v2-dev

parents 185da72e 226843cd
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ import java.util.ArrayList;
@ProvidesInterface(action = OneSearch.ACTION, version = OneSearch.VERSION)
public interface OneSearch extends Plugin {
    String ACTION = "com.android.systemui.action.PLUGIN_ONE_SEARCH";
    int VERSION = 4;
    int VERSION = 5;

    /**
     * Get the content provider warmed up.
@@ -37,10 +37,18 @@ public interface OneSearch extends Plugin {

    /**
     * Get the suggest search target list for the query.
     *
     * @param query The query to get the search suggests for.
     */
    ArrayList<Parcelable> getSuggests(Parcelable query);

    /** Get image bitmap with the URL. */
    Parcelable getImageBitmap(String imageUrl);

    /**
     * Notifies search events to plugin
     *
     * @param event the SearchTargetEvent event created due to user action
     */
    void notifyEvent(Parcelable event);
}