CommonActivity

Properties

Link copied to clipboard
Link copied to clipboard
val appLanguageExceptions: <Error class: unknown class>

Not all languages can be fetched from locale with a code. This map allows sidestepping the default Locale(languageCode) when setting the app language.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var keyEventListener: (<Error class: unknown class><KeyEvent?, Boolean>) -> Boolean?
Link copied to clipboard
val onColorSelectedEvent: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val TAG: String

Functions

Link copied to clipboard
fun continueGetNextFocus(root: Any?, view: View, direction: FocusDirection, nextId: Int, depth: Int = 0): View?

skips the initial stage of searching for an id using the view, see getNextFocus for specification

Link copied to clipboard

overrides focus and custom key events

Link copied to clipboard
fun Activity?.getCastSession(): <Error class: unknown class>?
Link copied to clipboard
fun getNextFocus(root: Any?, view: View?, direction: FocusDirection, depth: Int = 0): View?

recursively looks for a next focus up to a depth of 10, this is used to override the normal shit focus system because this application has a lot of invisible views that messes with some tv devices

Link copied to clipboard
fun init(act: Activity)
Link copied to clipboard
fun loadThemes(act: Activity?)
Link copied to clipboard
fun onKeyDown(act: Activity?, keyCode: Int, event: KeyEvent?)
Link copied to clipboard
Link copied to clipboard
fun setActivityInstance(newActivity: Activity?)
Link copied to clipboard
fun setLocale(context: Context?, languageCode: String?)
Link copied to clipboard
fun showToast(message: UiText?, duration: Int? = null)
fun showToast(message: Int, duration: Int? = null)
fun showToast(message: String?, duration: Int? = null)
fun showToast(act: Activity?, text: UiText, duration: Int)

fun showToast(act: Activity?, message: Int, duration: Int? = null)
fun showToast(act: Activity?, message: String?, duration: Int? = null)

duration is Toast.LENGTH_SHORT if null

Link copied to clipboard
Link copied to clipboard