Register now for Android Dev Summit 2019!

CheckBoxPreference

open class CheckBoxPreference : TwoStatePreference
kotlin.Any
   ↳ androidx.preference.Preference
   ↳ androidx.preference.TwoStatePreference
   ↳ androidx.preference.CheckBoxPreference

A Preference that provides checkbox widget functionality.

This preference saves a boolean value.

Summary

Inherited constants

Public constructors

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!)

Public methods

open Unit

Inherited functions

Inherited properties

Public constructors

<init>

CheckBoxPreference(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

<init>

CheckBoxPreference(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

<init>

CheckBoxPreference(context: Context!, attrs: AttributeSet!)

<init>

CheckBoxPreference(context: Context!)

Public methods

onBindViewHolder

open fun onBindViewHolder(holder: PreferenceViewHolder!): Unit