diff options
Diffstat (limited to 'src/com/android/settings/panel/PanelContent.java')
-rw-r--r-- | src/com/android/settings/panel/PanelContent.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/com/android/settings/panel/PanelContent.java b/src/com/android/settings/panel/PanelContent.java index 60b9ed7ab1..352a304e24 100644 --- a/src/com/android/settings/panel/PanelContent.java +++ b/src/com/android/settings/panel/PanelContent.java @@ -74,4 +74,31 @@ public interface PanelContent extends Instrumentable { default Intent getHeaderIconIntent() { return null; } + + /** + * @return {@code true} to enable custom button to replace see more button, + * {@code false} otherwise. + */ + default boolean isCustomizedButtonUsed() { + return false; + } + + /** + * @return a string for the title of the custom button. + */ + default CharSequence getCustomButtonTitle() { + return null; + } + + /** + * Implement the click event for custom button. + */ + default void onClickCustomizedButton() {} + + /** + * Register to start receiving callbacks for custom button events. + * + * @param callback the callback to add. + */ + default void registerCallback(PanelCustomizedButtonCallback callback) {} } |