public abstract class

UACheckBoxPreference

extends CheckBoxPreference
java.lang.Object
   ↳ android.preference.Preference
     ↳ android.preference.TwoStatePreference
       ↳ android.preference.CheckBoxPreference
         ↳ com.urbanairship.preference.UACheckBoxPreference
Known Direct Subclasses

Class Overview

Urban Airship check box preference.

Summary

[Expand]
Inherited Constants
From class android.preference.Preference
Fields
protected boolean isChecked
Public Constructors
UACheckBoxPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
UACheckBoxPreference(Context context, AttributeSet attrs, int defStyleAttr)
UACheckBoxPreference(Context context, AttributeSet attrs)
Public Methods
View onCreateView(ViewGroup parent)
void setChecked(boolean value)
Protected Methods
abstract String getContentDescription()
Called to get the content description of the preference's view.
abstract boolean getInitialAirshipValue(UAirship airship)
Gets the initial Urban Airship value for the preference.
abstract void onApplyAirshipPreference(UAirship airship, boolean enabled)
Called when the preference should be set on Urban Airship.
boolean shouldPersist()
[Expand]
Inherited Methods
From class android.preference.CheckBoxPreference
From class android.preference.TwoStatePreference
From class android.preference.Preference
From class java.lang.Object
From interface java.lang.Comparable

Fields

protected boolean isChecked

Public Constructors

public UACheckBoxPreference (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

public UACheckBoxPreference (Context context, AttributeSet attrs, int defStyleAttr)

public UACheckBoxPreference (Context context, AttributeSet attrs)

Public Methods

public View onCreateView (ViewGroup parent)

public void setChecked (boolean value)

Protected Methods

protected abstract String getContentDescription ()

Called to get the content description of the preference's view.

Returns
  • The content description.

protected abstract boolean getInitialAirshipValue (UAirship airship)

Gets the initial Urban Airship value for the preference.

Parameters
airship The UAirship instance.
Returns
  • The initial value for the preference.

protected abstract void onApplyAirshipPreference (UAirship airship, boolean enabled)

Called when the preference should be set on Urban Airship.

Parameters
airship The UAirship instance.
enabled The value of the preference.

protected boolean shouldPersist ()