C - The type of Chip that the implementation will create/configurepublic interface ChipCreator<C extends Chip>
| Modifier and Type | Method and Description |
|---|---|
void |
configureChip(C chip,
ChipConfiguration chipConfiguration)
Applies the given
ChipConfiguration to the given Chip. |
C |
createChip(android.content.Context context,
C existingChip)
Creates a chip from the given context and existing chip.
|
C |
createChip(android.content.Context context,
java.lang.CharSequence text,
java.lang.Object data)
Creates a chip from the given context and text.
|
C createChip(android.content.Context context, java.lang.CharSequence text, java.lang.Object data)
context - the Context to use to initialize the chiptext - the text the Chip should representdata - the data to associate with the Chip, or null to associate no dataC createChip(android.content.Context context, C existingChip)
context - the Context to use to initialize the chipexistingChip - the chip that the created chip should be based onvoid configureChip(C chip, ChipConfiguration chipConfiguration)
ChipConfiguration to the given Chip. Use this method to customize the appearance/behavior of a chip before
adding it to the text.chip - the chip to configurechipConfiguration - the configuration to apply to the chip