setStateAndExtend

fun setStateAndExtend(state: NavigationCameraState, duration: Long = EXTEND_DURATION)

Update this button to represent new camera state. Extend button for the duration and show followingText or overviewText. This method does nothing if button is already in given state.

Parameters

state

new camera state.

duration

duration in milliseconds. Defaults to EXTEND_DURATION.