Companion

object Companion

Companion object containing the constants related to timing the animations in the app.

The constants are given in milliseconds, unless otherwise stated.

Properties

ANIMATION_FRAME_FADEOUT
Link copied to clipboard
const val ANIMATION_FRAME_FADEOUT: Int = 400
Duration of the display of the fadeout of the first iteration of the logo frame animation in the splash screen.
FIRST_MOVE_SOLUTION_DELAY
Link copied to clipboard
const val FIRST_MOVE_SOLUTION_DELAY: Int = 750
Delay before the first move in the animation of the puzzle solution is displayed.
MOVE_SOLUTION_DELAY
Link copied to clipboard
const val MOVE_SOLUTION_DELAY: Int = 425
Delay between the sliding of tiles during the animation of the puzzle solution.
SHUFFLING_ANIMATION_OFFSET
Link copied to clipboard
const val SHUFFLING_ANIMATION_OFFSET: Int = 300
Offset of the duration of the animation of the progress bar during shuffling.
SHUFFLING_ANIMATION_UPPER_BOUND
Link copied to clipboard
const val SHUFFLING_ANIMATION_UPPER_BOUND: Int = 2700
Upper bound of the duration of the animation of the progress bar during shuffling.
SPLASH_SCREEN_TIMEOUT
Link copied to clipboard
const val SPLASH_SCREEN_TIMEOUT: Int = 2000
Duration of the display of the splash screen.
SUCCESS_DISPLAY
Link copied to clipboard
const val SUCCESS_DISPLAY: Int = 5000
Maximum duration of the display of the success message once a game is completed (that is, the shuffled puzzle is solved).