public abstract class

QuietTimePickerPreference

extends DialogPreference
implements UAPreference
java.lang.Object
   ↳ android.preference.Preference
     ↳ android.preference.DialogPreference
       ↳ com.urbanairship.preference.QuietTimePickerPreference
Known Direct Subclasses

Class Overview

Abstract DialogPreference that allows setting quiet time that implements UAPreference.

Summary

[Expand]
Inherited Constants
From class android.preference.Preference
Public Constructors
QuietTimePickerPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
QuietTimePickerPreference(Context context, AttributeSet attrs, int defStyleAttr)
QuietTimePickerPreference(Context context, AttributeSet attrs)
Public Methods
UAPreference.PreferenceType getPreferenceType()
Gets the preference type.
String getSummary()
View onCreateView(ViewGroup parent)
void onDialogClosed(boolean positiveResult)
void setValue(Object value)
Sets the current value of the preference.
Protected Methods
abstract String getContentDescription()
Called to get the content description of the preference's view.
abstract long getInitialAirshipValue(UAirship airship)
Gets the initial Urban Airship value for the preference.
abstract void onApplyAirshipPreference(UAirship airship, long time)
Called when the preference should be set on Urban Airship.
View onCreateDialogView()
boolean shouldPersist()
[Expand]
Inherited Methods
From class android.preference.DialogPreference
From class android.preference.Preference
From class java.lang.Object
From interface android.content.DialogInterface.OnClickListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.preference.PreferenceManager.OnActivityDestroyListener
From interface com.urbanairship.preference.UAPreference
From interface java.lang.Comparable

Public Constructors

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

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

public QuietTimePickerPreference (Context context, AttributeSet attrs)

Public Methods

public UAPreference.PreferenceType getPreferenceType ()

Gets the preference type.

Returns
  • PreferenceType type of UAPreference.

public String getSummary ()

public View onCreateView (ViewGroup parent)

public void onDialogClosed (boolean positiveResult)

public void setValue (Object value)

Sets the current value of the preference.

Parameters
value The value of the preference.

Protected Methods

protected abstract String getContentDescription ()

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

Returns
  • The content description.

protected abstract long 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, long time)

Called when the preference should be set on Urban Airship.

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

protected View onCreateDialogView ()

protected boolean shouldPersist ()