NtpAfterIdleManager

Handles events related to the NTP-after-idle feature.

Properties

Link copied to clipboard
abstract val isAfterIdleReturn: StateFlow<Boolean>

Emits true when the current NTP was shown as a result of an idle return, false otherwise.

Functions

Link copied to clipboard
abstract fun onIdleReturnTriggered()

Called when an idle-triggered NTP is about to be rendered. Must be invoked before the NTP appears.

Link copied to clipboard
abstract fun onIdleTimeoutSelected(seconds: Long)

Called when the user selects an idle timeout value in seconds.

Link copied to clipboard
abstract fun onNtpSearchSubmitted()

Called when the user submits a search from the NTP.

Link copied to clipboard
abstract fun onNtpShown()

Called when an NTP becomes visible to the user.

Link copied to clipboard
abstract fun onReturnToPageTapped()

Called when the user taps the return-to-page hatch on the NTP.