GridRowBuilder.CellBuilder |
addImage(@NonNull image: IconCompat, imageMode: Int)
Adds an image to the cell. There can be at most one image, the first one added will be used, others will be ignored.
|
GridRowBuilder.CellBuilder |
addImage(@Nullable image: IconCompat?, imageMode: Int, isLoading: Boolean)
Adds an image to the cell. There can be at most one image, the first one added will be used, others will be ignored.
Use this method to specify content that will appear in the template once it's been loaded.
|
GridRowBuilder.CellBuilder |
addOverlayText(@NonNull text: CharSequence)
Adds text to the cell. Text added with this method will be overlaid in the image in the cell. There can be only one overlay text, the first added will be used, others will be ignored.
|
GridRowBuilder.CellBuilder |
addOverlayText(@Nullable text: CharSequence?, isLoading: Boolean)
Adds text to the cell. Text added with this method will be overlaid in the image in the cell. There can be only one overlay text, the first added will be used, others will be ignored.
Use this method to specify content that will appear in the template once it's been loaded.
|
GridRowBuilder.CellBuilder |
addText(@NonNull text: CharSequence)
Adds text to the cell. There can be at most two text items, the first two added will be used, others will be ignored.
|
GridRowBuilder.CellBuilder |
addText(@Nullable text: CharSequence?, isLoading: Boolean)
Adds text to the cell. There can be at most two text items, the first two added will be used, others will be ignored.
Use this method to specify content that will appear in the template once it's been loaded.
|
GridRowBuilder.CellBuilder |
addTitleText(@NonNull text: CharSequence)
Adds text to the cell. Text added with this method will be styled as a title. There can be at most two text items, the first two added will be used, others will be ignored.
|
GridRowBuilder.CellBuilder |
addTitleText(@Nullable text: CharSequence?, isLoading: Boolean)
Adds text to the cell. Text added with this method will be styled as a title. There can be at most two text items, the first two added will be used, others will be ignored.
Use this method to specify content that will appear in the template once it's been loaded.
|
GridRowBuilder.CellBuilder |
setContentDescription(@NonNull description: CharSequence)
Sets the content description for this cell.
|
GridRowBuilder.CellBuilder |
setContentIntent(@NonNull intent: PendingIntent)
Sets the action to be invoked if the user taps on this cell in the row.
|
GridRowBuilder.CellBuilder |
setContentIntent(@NonNull callback: RemoteCallback)
Sets the action to be invoked if the user taps on this cell in the row.
|
GridRowBuilder.CellBuilder |
setSliceAction(@NonNull action: SliceAction)
Sets the SliceAction for the cell. It could be an action or a toggle button or a date/time picker. The actionTitle and icon image of the SliceAction will only be used when there is no other text or image in the cell.
|