public abstract class

QuietTimePickerPreference

extends DialogPreference
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.

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
String getSummary()
View onCreateView(ViewGroup parent)
void onDialogClosed(boolean positiveResult)
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 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 String getSummary ()

public View onCreateView (ViewGroup parent)

public void onDialogClosed (boolean positiveResult)

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 ()