Loading packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockProviderPlugin.kt +6 −0 Original line number Original line Diff line number Diff line Loading @@ -136,6 +136,12 @@ interface ClockAnimations { /** Move the clock, for example, if the notification tray appears in split-shade mode. */ /** Move the clock, for example, if the notification tray appears in split-shade mode. */ fun onPositionUpdated(fromRect: Rect, toRect: Rect, fraction: Float) {} fun onPositionUpdated(fromRect: Rect, toRect: Rect, fraction: Float) {} /** * Runs when swiping clock picker, swipingFraction: 1.0 -> clock is scaled up in the preview, * 0.0 -> clock is scaled down in the shade; previewRatio is previewSize / screenSize */ fun onPickerCarouselSwiping(swipingFraction: Float, previewRatio: Float) {} /** /** * Whether this clock has a custom position update animation. If true, the keyguard will call * Whether this clock has a custom position update animation. If true, the keyguard will call * `onPositionUpdated` to notify the clock of a position update animation. If false, a default * `onPositionUpdated` to notify the clock of a position update animation. If false, a default Loading Loading
packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockProviderPlugin.kt +6 −0 Original line number Original line Diff line number Diff line Loading @@ -136,6 +136,12 @@ interface ClockAnimations { /** Move the clock, for example, if the notification tray appears in split-shade mode. */ /** Move the clock, for example, if the notification tray appears in split-shade mode. */ fun onPositionUpdated(fromRect: Rect, toRect: Rect, fraction: Float) {} fun onPositionUpdated(fromRect: Rect, toRect: Rect, fraction: Float) {} /** * Runs when swiping clock picker, swipingFraction: 1.0 -> clock is scaled up in the preview, * 0.0 -> clock is scaled down in the shade; previewRatio is previewSize / screenSize */ fun onPickerCarouselSwiping(swipingFraction: Float, previewRatio: Float) {} /** /** * Whether this clock has a custom position update animation. If true, the keyguard will call * Whether this clock has a custom position update animation. If true, the keyguard will call * `onPositionUpdated` to notify the clock of a position update animation. If false, a default * `onPositionUpdated` to notify the clock of a position update animation. If false, a default Loading