public class

GridContent.CellContent

extends java.lang.Object

 java.lang.Object

↳androidx.slice.widget.GridContent.CellContent

Overview

Extracts information required to present content in a cell.

Summary

Constructors
publicCellContent(SliceItem cellItem)

Methods
public java.util.ArrayList<SliceItem>getCellItems()

public java.lang.CharSequencegetContentDescription()

public SliceItemgetContentIntent()

public IconCompatgetImageIcon()

public intgetImageMode()

public SliceItemgetOverlayItem()

public SliceItemgetPicker()

public intgetTextCount()

public SliceItemgetTitleItem()

public SliceItemgetToggleItem()

public booleanhasImage()

public booleanisImageOnly()

public booleanisValid()

public booleanpopulate(SliceItem cellItem)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public CellContent(SliceItem cellItem)

Methods

public boolean populate(SliceItem cellItem)

Returns:

whether this row has content that is valid to display.

public SliceItem getToggleItem()

Returns:

toggle slice item if this cell has one.

public SliceItem getTitleItem()

Returns:

title text slice item if this cell has one.

public SliceItem getOverlayItem()

Returns:

image overlay text slice item if this cell has one.

public SliceItem getContentIntent()

Returns:

the action to activate when this cell is tapped.

public SliceItem getPicker()

Returns:

the Picker to use when this cell is tapped.

public java.util.ArrayList<SliceItem> getCellItems()

Returns:

the slice items to display in this cell.

public boolean isValid()

Returns:

whether this grid has content that is valid to display.

public boolean isImageOnly()

Returns:

whether this cell contains just an image.

public int getTextCount()

Returns:

number of text items in this cell.

public boolean hasImage()

Returns:

whether this cell contains an image.

public int getImageMode()

Returns:

the mode of the image.

public IconCompat getImageIcon()

Returns:

the IconCompat of the image.

public java.lang.CharSequence getContentDescription()