From 6ec45c76cf8f44f573ec7028f344673bbbf3c722 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Mon, 22 Oct 2018 09:54:55 -0700 Subject: [PATCH] Add FirstScreenWidget plugin interface Bug: 115877296 Change-Id: I974300a6460677758cbe99cab3bb71339eb2928b --- .../systemui/plugins/FirstScreenWidget.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src_plugins/com/android/systemui/plugins/FirstScreenWidget.java diff --git a/src_plugins/com/android/systemui/plugins/FirstScreenWidget.java b/src_plugins/com/android/systemui/plugins/FirstScreenWidget.java new file mode 100644 index 0000000000..8d7dd4bc08 --- /dev/null +++ b/src_plugins/com/android/systemui/plugins/FirstScreenWidget.java @@ -0,0 +1,15 @@ +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); +}