Header
classHeader: Parcelable
kotlin.Any | |
↳ | android.preference.PreferenceActivity.Header |
Description of a single Header item that the user can select.
Summary
Inherited constants | |
---|---|
Public constructors | |
---|---|
Header() |
Public methods | |
---|---|
Int | |
CharSequence! |
getBreadCrumbShortTitle(res: Resources!) Return the currently set bread crumb short title. |
CharSequence! |
getBreadCrumbTitle(res: Resources!) Return the currently set bread crumb title. |
CharSequence! |
getSummary(res: Resources!) Return the currently set summary. |
CharSequence! |
Return the currently set title. |
Unit |
readFromParcel(in: Parcel!) |
Unit |
writeToParcel(dest: Parcel, flags: Int) |
Properties | |
---|---|
static Parcelable.Creator<PreferenceActivity.Header!> | |
CharSequence! |
Optional text to show as the short title in the bread crumb. |
Int |
Resource ID of optional text to show as the short title in the bread crumb. |
CharSequence! |
Optional text to show as the title in the bread crumb. |
Int |
Resource ID of optional text to show as the title in the bread crumb. |
Bundle! |
Optional additional data for use by subclasses of PreferenceActivity. |
String! |
Full class name of the fragment to display when this header is selected. |
Bundle! |
Optional arguments to supply to the fragment when it is instantiated. |
Int |
Optional icon resource to show for this header. |
Long |
Identifier for this header, to correlate with a new list when it is updated. |
Intent! |
Intent to launch when the preference is selected. |
CharSequence! |
Optional summary describing what this header controls. |
Int |
Resource ID of optional summary describing what this header controls. |
CharSequence! |
Title of the header that is shown to the user. |
Int |
Resource ID of title of the header that is shown to the user. |
Public constructors
Public methods
describeContents
fundescribeContents(): Int
Deprecated: Deprecated in Java.
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getBreadCrumbShortTitle
fungetBreadCrumbShortTitle(res: Resources!): CharSequence!
Deprecated: Deprecated in Java.
Return the currently set bread crumb short title. If breadCrumbShortTitleRes
is set, this resource is loaded from res and returned. Otherwise breadCrumbShortTitle
is returned.
getBreadCrumbTitle
fungetBreadCrumbTitle(res: Resources!): CharSequence!
Deprecated: Deprecated in Java.
Return the currently set bread crumb title. If breadCrumbTitleRes
is set, this resource is loaded from res and returned. Otherwise breadCrumbTitle
is returned.
getSummary
fungetSummary(res: Resources!): CharSequence!
Deprecated: Deprecated in Java.
Return the currently set summary. If summaryRes
is set, this resource is loaded from res and returned. Otherwise summary
is returned.
getTitle
fungetTitle(res: Resources!): CharSequence!
Deprecated: Deprecated in Java.
Return the currently set title. If titleRes
is set, this resource is loaded from res and returned. Otherwise title
is returned.
readFromParcel
funreadFromParcel(in: Parcel!): Unit
Deprecated: Deprecated in Java.
writeToParcel
funwriteToParcel(
dest: Parcel,
flags: Int
): Unit
Deprecated: Deprecated in Java.
Parameters | |
---|---|
dest |
Parcel: The Parcel in which the object should be written. This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
static valCREATOR: Parcelable.Creator<PreferenceActivity.Header!>
Deprecated: Deprecated in Java.
breadCrumbShortTitle
varbreadCrumbShortTitle: CharSequence!
Deprecated: Deprecated in Java.
Optional text to show as the short title in the bread crumb.
breadCrumbShortTitleRes
varbreadCrumbShortTitleRes: Int
Deprecated: Deprecated in Java.
Resource ID of optional text to show as the short title in the bread crumb.
breadCrumbTitle
varbreadCrumbTitle: CharSequence!
Deprecated: Deprecated in Java.
Optional text to show as the title in the bread crumb.
breadCrumbTitleRes
varbreadCrumbTitleRes: Int
Deprecated: Deprecated in Java.
Resource ID of optional text to show as the title in the bread crumb.
extras
varextras: Bundle!
Deprecated: Deprecated in Java.
Optional additional data for use by subclasses of PreferenceActivity.
fragment
varfragment: String!
Deprecated: Deprecated in Java.
Full class name of the fragment to display when this header is selected.
fragmentArguments
varfragmentArguments: Bundle!
Deprecated: Deprecated in Java.
Optional arguments to supply to the fragment when it is instantiated.
iconRes
variconRes: Int
Deprecated: Deprecated in Java.
Optional icon resource to show for this header.
id
varid: Long
Deprecated: Deprecated in Java.
Identifier for this header, to correlate with a new list when it is updated. The default value is PreferenceActivity#HEADER_ID_UNDEFINED
, meaning no id.
intent
varintent: Intent!
Deprecated: Deprecated in Java.
Intent to launch when the preference is selected.
summary
varsummary: CharSequence!
Deprecated: Deprecated in Java.
Optional summary describing what this header controls.
summaryRes
varsummaryRes: Int
Deprecated: Deprecated in Java.
Resource ID of optional summary describing what this header controls.
title
vartitle: CharSequence!
Deprecated: Deprecated in Java.
Title of the header that is shown to the user.
titleRes
vartitleRes: Int
Deprecated: Deprecated in Java.
Resource ID of title of the header that is shown to the user.