Settings
open class Settings
kotlin.Any | |
↳ | androidx.leanback.system.Settings |
Provides various preferences affecting Leanback runtime behavior.
Note this class is not thread safe and its methods should only be invoked from the UI thread
Summary
Constants | |
---|---|
static String | |
static String |
Public methods | |
---|---|
open Boolean |
getBoolean(key: String!) Returns the boolean preference for the given key. |
open static Settings! |
getInstance(context: Context!) Returns the singleton Settings instance. |
open Unit |
setBoolean(key: String!, value: Boolean) Sets the boolean preference for the given key. |
Constants
OUTLINE_CLIPPING_DISABLED
static val OUTLINE_CLIPPING_DISABLED: String
Value: "OUTLINE_CLIPPING_DISABLED"
Public methods
getBoolean
open fun getBoolean(key: String!): Boolean
Returns the boolean preference for the given key.
getInstance
open static fun getInstance(context: Context!): Settings!
Returns the singleton Settings instance.