Skip to content

Commit

Permalink
Group deprecated functions at the bottom of the class
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Nov 13, 2024
1 parent 2f48a18 commit 21a3db3
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,6 @@ sealed interface ZoomableState {
/** See [ZoomableContentLocation]. */
fun setContentLocationSynchronously(location: ZoomableContentLocation)

/**
* Reset content to its minimum zoom and zero offset and suspend until it's finished.
*/
@Deprecated(message = "Use resetZoom(AnimationSpec) instead")
suspend fun resetZoom(withAnimation: Boolean) {
if (withAnimation) {
resetZoom()
} else {
resetZoom(animationSpec = SnapSpec())
}
}

/**
* Reset content to its minimum zoom and zero offset and suspend until it's finished.
*
Expand Down Expand Up @@ -170,6 +158,18 @@ sealed interface ZoomableState {
animationSpec: AnimationSpec<Offset> = DefaultPanAnimationSpec,
)

/**
* Reset content to its minimum zoom and zero offset and suspend until it's finished.
*/
@Deprecated(message = "Use resetZoom(AnimationSpec) instead")
suspend fun resetZoom(withAnimation: Boolean) {
if (withAnimation) {
resetZoom()
} else {
resetZoom(animationSpec = SnapSpec())
}
}

/** See [ZoomableContentLocation]. */
@Deprecated(
message = "Use setContentLocationSynchronously() instead",
Expand Down

0 comments on commit 21a3db3

Please sign in to comment.