java.lang.Object | |
↳ | cyanogenmod.app.CustomTile.Builder |
Builder class for CustomTile
objects.
Provides a convenient way to set the various fields of a CustomTile
Example:
CustomTile customTile = new CustomTile.Builder(mContext) .setLabel("custom label") .setContentDescription("custom description") .setOnClickIntent(pendingIntent) .setOnSettingsClickIntent(intent) .setOnClickUri(Uri.parse("custom uri")) .setIcon(R.drawable.ic_launcher) .build();
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new Builder with the defaults:
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a
CustomTile object
| |||||||||||
Indicates whether this tile has sensitive data that have to be hidden
on secure lockscreens.
| |||||||||||
Set the content description for the custom tile
| |||||||||||
Set the content description for the custom tile
| |||||||||||
Supply a
PendingIntent to send when the custom tile is cleared explicitly
by the user.
| |||||||||||
Set an
CustomTile.ExpandedStyle to to be displayed when a user clicks the custom tile
| |||||||||||
Set a bitmap icon to the custom tile to be utilized instead of
icon
This will unset setIcon(int) if utilized together.
| |||||||||||
Set an icon for the custom tile to be presented to the user
| |||||||||||
Set the label for the custom tile
| |||||||||||
Set the label for the custom tile
| |||||||||||
Set a
PendingIntent to be fired on custom tile click
| |||||||||||
Set a
Uri to be broadcasted in an intent on custom tile click
| |||||||||||
Set a
PendingIntent to be fired on custom tile long press.
| |||||||||||
Set a settings
Intent to be fired on custom
tile detail pane click
| |||||||||||
Set whether or not the Statusbar Panel should be collapsed when an
onClick or onClickUri event is fired.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructs a new Builder with the defaults:
Indicates whether this tile has sensitive data that have to be hidden on secure lockscreens.
Set the content description for the custom tile
id | a string resource id to explain content |
---|
Set the content description for the custom tile
contentDescription | a string to explain content |
---|
Supply a PendingIntent
to send when the custom tile is cleared explicitly
by the user.
Set an CustomTile.ExpandedStyle
to to be displayed when a user clicks the custom tile
Set a bitmap icon to the custom tile to be utilized instead of icon
This will unset setIcon(int)
if utilized together.
Set an icon for the custom tile to be presented to the user
Set the label for the custom tile
id | a string resource id to be used for the custom tile label |
---|
Set the label for the custom tile
label | a string to be used for the custom tile label |
---|
Set a PendingIntent
to be fired on custom tile click
Set a Uri
to be broadcasted in an intent on custom tile click
Set a PendingIntent
to be fired on custom tile long press.
Note: if this is an activity, the host panel will automatically collapse.
Set a settings Intent
to be fired on custom
tile detail pane click
Set whether or not the Statusbar Panel should be collapsed when an
onClick
or onClickUri
event is fired.