summaryrefslogtreecommitdiff
path: root/src/com/android/wallpaper/model/CustomizationSectionController.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/wallpaper/model/CustomizationSectionController.java')
-rw-r--r--src/com/android/wallpaper/model/CustomizationSectionController.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/com/android/wallpaper/model/CustomizationSectionController.java b/src/com/android/wallpaper/model/CustomizationSectionController.java
index b01f0982..58ef178b 100644
--- a/src/com/android/wallpaper/model/CustomizationSectionController.java
+++ b/src/com/android/wallpaper/model/CustomizationSectionController.java
@@ -34,6 +34,9 @@ public interface CustomizationSectionController<T extends SectionView> {
interface CustomizationSectionNavigationController {
/** Navigates to the given {@code fragment}. */
void navigateTo(Fragment fragment);
+
+ /** Navigates to a {@code fragment} that maps to the given destination ID. */
+ void navigateTo(String destinationId);
}
/** Returns {@code true} if the customization section is available. */
@@ -42,6 +45,16 @@ public interface CustomizationSectionController<T extends SectionView> {
/**
* Returns a newly created {@link SectionView} for the section.
*
+ * @param context The {@link Context} to inflate view.
+ * @param isOnLockScreen Whether we are on the lock screen.
+ */
+ default T createView(Context context, boolean isOnLockScreen) {
+ return createView(context);
+ }
+
+ /**
+ * Returns a newly created {@link SectionView} for the section.
+ *
* @param context the {@link Context} to inflate view
*/
T createView(Context context);
@@ -54,4 +67,7 @@ public interface CustomizationSectionController<T extends SectionView> {
/** Gets called when the section gets transitioned out. */
default void onTransitionOut() {}
+
+ /** Notifies when the screen was switched. */
+ default void onScreenSwitched(boolean isOnLockScreen) {}
}