public class

LocationUpdatesEnabledPreference

extends UACheckBoxPreference
java.lang.Object
   ↳ android.preference.Preference
     ↳ android.preference.TwoStatePreference
       ↳ android.preference.CheckBoxPreference
         ↳ com.urbanairship.preference.UACheckBoxPreference
           ↳ com.urbanairship.preference.LocationUpdatesEnabledPreference

Class Overview

CheckboxPreference to enable/disable location updates.

Summary

[Expand]
Inherited Constants
From class android.preference.Preference
[Expand]
Inherited Fields
From class com.urbanairship.preference.UACheckBoxPreference
Public Constructors
LocationUpdatesEnabledPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
LocationUpdatesEnabledPreference(Context context, AttributeSet attrs, int defStyleAttr)
LocationUpdatesEnabledPreference(Context context, AttributeSet attrs)
Public Methods
void setChecked(boolean value)
Protected Methods
String getContentDescription()
Called to get the content description of the preference's view.
boolean getInitialAirshipValue(UAirship airship)
Gets the initial Urban Airship value for the preference.
void onApplyAirshipPreference(UAirship airship, boolean enabled)
Called when the preference should be set on Urban Airship.
[Expand]
Inherited Methods
From class com.urbanairship.preference.UACheckBoxPreference
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

Public Constructors

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

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

public LocationUpdatesEnabledPreference (Context context, AttributeSet attrs)

Public Methods

public void setChecked (boolean value)

Protected Methods

protected String getContentDescription ()

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

Returns
  • The content description.

protected 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 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.