public class

CustomTile

extends Object
implements Parcelable
java.lang.Object
   ↳ cyanogenmod.app.CustomTile

Class Overview

A class that represents a quick settings tile

The CustomTile.Builder has been added to make it easier to construct CustomTiles.

Summary

Nested Classes
class CustomTile.Builder Builder class for CustomTile objects. 
class CustomTile.ExpandedGridItem An instance of CustomTile.ExpandedItem to be utilized within a CustomTile.GridExpandedStyle  
class 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  
class CustomTile.ExpandedListItem An instance of CustomTile.ExpandedItem to be utilized within a CustomTile.ListExpandedStyle  
class CustomTile.ExpandedStyle An object that can apply an expanded view style to a CustomTile.Builder object. 
class CustomTile.GridExpandedStyle An instance of CustomTile.ExpandedStyle that shows the CustomTile.ExpandedGridItems in a non-scrollable grid. 
class CustomTile.ListExpandedStyle An instance of CustomTile.ExpandedStyle that shows the CustomTile.ExpandedListItem's in a scrollable ListView. 
class 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
public static final Creator<CustomTile> CREATOR Parcelable.Creator that instantiates CustomTile objects
public boolean collapsePanel Boolean that forces the status bar panel to collapse when a user clicks on the CustomTile By default collapsePanel is true
public String contentDescription A content description for the custom tile state
public PendingIntent deleteIntent The intent to execute when the custom tile is explicitly removed by the user.
public CustomTile.ExpandedStyle expandedStyle An expanded style for when the CustomTile is clicked, can either be a CustomTile.GridExpandedStyle or a CustomTile.ListExpandedStyle
public int icon An icon to represent the custom tile
public String label A label specific to the quick settings tile to be created
public PendingIntent onClick An optional intent to execute when the custom tile entry is clicked.
public Uri 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.
public PendingIntent onLongClick An optional intent to execute when the custom tile entry is long clicked.
public Intent 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
public Bitmap remoteIcon A remote icon to represent the custom tile
public boolean sensitiveData Indicates whether this tile has sensitive data that have to be hidden on secure lockscreens.
Public Constructors
CustomTile(Parcel parcel)
Unflatten the CustomTile from a parcel.
CustomTile()
Constructs a CustomTile object with default values.
Public Methods
CustomTile clone()
int describeContents()
String toString()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int PSEUDO_GRID_ITEM_MAX_COUNT

Added in API level 2

Max count allowed by PseudoGridView within SystemUi

Constant Value: 9 (0x00000009)

Fields

public static final Creator<CustomTile> CREATOR

Added in API level 1

Parcelable.Creator that instantiates CustomTile objects

public boolean collapsePanel

Added in API level 2

Boolean that forces the status bar panel to collapse when a user clicks on the CustomTile By default collapsePanel is true

public String contentDescription

Added in API level 1

A content description for the custom tile state

public PendingIntent deleteIntent

Added in API level 2

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.

public CustomTile.ExpandedStyle expandedStyle

Added in API level 1

An expanded style for when the CustomTile is clicked, can either be a CustomTile.GridExpandedStyle or a CustomTile.ListExpandedStyle

public int icon

Added in API level 1

An icon to represent the custom tile

public String label

Added in API level 1

A label specific to the quick settings tile to be created

public PendingIntent onClick

Added in API level 1

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.

public Uri onClickUri

Added in API level 1

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.

public PendingIntent onLongClick

Added in API level 4

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.

public Intent onSettingsClick

Added in API level 1

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

public Bitmap remoteIcon

Added in API level 2

A remote icon to represent the custom tile

public boolean sensitiveData

Added in API level 2

Indicates whether this tile has sensitive data that have to be hidden on secure lockscreens. By default sensitiveData is false

Public Constructors

public CustomTile (Parcel parcel)

Added in API level 1

Unflatten the CustomTile from a parcel.

public CustomTile ()

Added in API level 1

Constructs a CustomTile object with default values. You might want to consider using CustomTile.Builder instead.

Public Methods

public CustomTile clone ()

Added in API level 1

public int describeContents ()

Added in API level 1

public String toString ()

public void writeToParcel (Parcel out, int flags)

Added in API level 1