setMaxFrame

fun setMaxFrame(endFrame: Int)

Sets the maximum frame that the animation will end at when playing or looping.

The value will be clamped to the composition bounds. For example, setting Integer.MAX_VALUE would result in the same thing as composition.endFrame.


fun setMaxFrame(markerName: String?)

Sets the maximum frame to the start time + duration of the specified marker.