java.lang.Object | |
↳ | cyanogenmod.app.CustomTile |
A class that represents a quick settings tile
The CustomTile.Builder
has been added to make it
easier to construct CustomTiles.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CustomTile.Builder |
Builder class for CustomTile objects.
|
||||||||||
CustomTile.ExpandedGridItem |
An instance of CustomTile.ExpandedItem to be utilized within a CustomTile.GridExpandedStyle
|
||||||||||
CustomTile.ExpandedItem |
A container object that is utilized by CustomTile.ExpandedStyle to show specific items in either
a PseudoGridView or a ListView via CustomTile.GridExpandedStyle and CustomTile.ListExpandedStyle
|
||||||||||
CustomTile.ExpandedListItem |
An instance of CustomTile.ExpandedItem to be utilized within a CustomTile.ListExpandedStyle
|
||||||||||
CustomTile.ExpandedStyle |
An object that can apply an expanded view style to a CustomTile.Builder
object.
|
||||||||||
CustomTile.GridExpandedStyle |
An instance of CustomTile.ExpandedStyle that shows the CustomTile.ExpandedGridItem s in a
non-scrollable grid.
|
||||||||||
CustomTile.ListExpandedStyle |
An instance of CustomTile.ExpandedStyle that shows the CustomTile.ExpandedListItem 's in a
scrollable ListView.
|
||||||||||
CustomTile.RemoteExpandedStyle |
An instance of CustomTile.ExpandedStyle that shows a remote view in the remote process
|
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PSEUDO_GRID_ITEM_MAX_COUNT | Max count allowed by PseudoGridView within SystemUi |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | Parcelable.Creator that instantiates CustomTile objects | ||||||||||
collapsePanel |
Boolean that forces the status bar panel to collapse when a user clicks on the
CustomTile
By default collapsePanel is true
|
||||||||||
contentDescription | A content description for the custom tile state | ||||||||||
deleteIntent | The intent to execute when the custom tile is explicitly removed by the user. | ||||||||||
expandedStyle |
An expanded style for when the CustomTile is clicked, can either be
a CustomTile.GridExpandedStyle or a CustomTile.ListExpandedStyle
|
||||||||||
icon | An icon to represent the custom tile | ||||||||||
label | A label specific to the quick settings tile to be created | ||||||||||
onClick | An optional intent to execute when the custom tile entry is clicked. | ||||||||||
onClickUri | An optional Uri to be parsed and broadcast on tile click, if an onClick pending intent is specified, it will take priority over the uri to be broadcasted. | ||||||||||
onLongClick | An optional intent to execute when the custom tile entry is long clicked. | ||||||||||
onSettingsClick |
An optional settings intent to execute when the custom tile's detail is shown
If this is an activity, it must include the
FLAG_ACTIVITY_NEW_TASK flag, which requires
that you take care of task management
|
||||||||||
remoteIcon | A remote icon to represent the custom tile | ||||||||||
sensitiveData | Indicates whether this tile has sensitive data that have to be hidden on secure lockscreens. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Unflatten the CustomTile from a parcel.
| |||||||||||
Constructs a CustomTile object with default values.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Max count allowed by PseudoGridView within SystemUi
Parcelable.Creator that instantiates CustomTile objects
Boolean that forces the status bar panel to collapse when a user clicks on the
CustomTile
By default collapsePanel
is true
A content description for the custom tile state
The intent to execute when the custom tile is explicitly removed by the user. This probably shouldn't be launching an activity since several of those will be sent at the same time.
An expanded style for when the CustomTile is clicked, can either be
a CustomTile.GridExpandedStyle
or a CustomTile.ListExpandedStyle
An optional intent to execute when the custom tile entry is clicked. If
this is an activity, it must include the
FLAG_ACTIVITY_NEW_TASK
flag, which requires
that you take care of task management.
This takes priority over the onClickUri.
An optional Uri to be parsed and broadcast on tile click, if an onClick pending intent is specified, it will take priority over the uri to be broadcasted.
An optional intent to execute when the custom tile entry is long clicked. If
this is an activity, it must include the
FLAG_ACTIVITY_NEW_TASK
flag, which requires
that you take care of task management. Activities will also automatically trigger
the host panel to automatically collapse after executing the pending intent.
An optional settings intent to execute when the custom tile's detail is shown
If this is an activity, it must include the
FLAG_ACTIVITY_NEW_TASK
flag, which requires
that you take care of task management
Indicates whether this tile has sensitive data that have to be hidden on
secure lockscreens.
By default sensitiveData
is false
Constructs a CustomTile object with default values.
You might want to consider using CustomTile.Builder
instead.