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

Commit 6ec45c76 authored by Tony Wickham's avatar Tony Wickham
Browse files

Add FirstScreenWidget plugin interface

Bug: 115877296
Change-Id: I974300a6460677758cbe99cab3bb71339eb2928b
parent a937981b
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
package com.android.systemui.plugins;

import android.view.ViewGroup;
import com.android.systemui.plugins.annotations.ProvidesInterface;

/**
 * Implement this interface to wrap the widget on the first home screen, e.g. to add new content.
 */
@ProvidesInterface(action = FirstScreenWidget.ACTION, version = FirstScreenWidget.VERSION)
public interface FirstScreenWidget extends Plugin {
    String ACTION = "com.android.systemui.action.PLUGIN_FIRST_SCREEN_WIDGET";
    int VERSION = 1;

    void onWidgetUpdated(ViewGroup widgetView);
}