checkTvMode

open fun checkTvMode(context: Context): Boolean

Checks whether the current mode type is Configuration.UI_MODE_TYPE_TELEVISION or not.

Return

true if we're running on a Android TV.

Parameters

context

Android context used to get the UiModeManager