Class ImagePluginComponent
-
- All Implemented Interfaces:
-
com.skydoves.landscapist.components.ImageComponent
@Stable() public final class ImagePluginComponent implements ImageComponent
A pluggable image component that extends ImageComponent and includes a collection of ImagePlugin.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<ImagePlugin>plugins
-
Constructor Summary
Constructors Constructor Description ImagePluginComponent(List<ImagePlugin> mutablePlugins)
-
Method Summary
Modifier and Type Method Description final List<ImagePlugin>getPlugins()final ImagePluginComponentcompose(Function1<ImagePluginComponent, Unit> block)A domain-specific function that receives ImagePluginComponent as a receiver and returns a new instance of ImagePluginComponent that contains all of the previously added plugins. final ImagePluginComponentadd(ImagePlugin imagePlugin)Add a new ImagePlugin to the component. final ImagePluginComponentaddPlugins(List<ImagePlugin> imagePlugins)Add a list of ImagePlugin to the component. final ImagePluginComponentremove(ImagePlugin imagePlugin)Remove an ImagePlugin from the component. final ImagePluginComponentunaryPlus(ImagePlugin $self)Add a new ImagePlugin to the component using the unary plus operator to the ImagePlugin. -
-
Constructor Detail
-
ImagePluginComponent
ImagePluginComponent(List<ImagePlugin> mutablePlugins)
-
-
Method Detail
-
getPlugins
final List<ImagePlugin> getPlugins()
-
compose
final ImagePluginComponent compose(Function1<ImagePluginComponent, Unit> block)
A domain-specific function that receives ImagePluginComponent as a receiver and returns a new instance of ImagePluginComponent that contains all of the previously added plugins.
- Parameters:
block- A ImagePluginComponent receiver that composes ImagePlugins in the scope.
-
add
final ImagePluginComponent add(ImagePlugin imagePlugin)
Add a new ImagePlugin to the component.
- Parameters:
imagePlugin- A pluggable compose interface that will be executed for loading images.
-
addPlugins
final ImagePluginComponent addPlugins(List<ImagePlugin> imagePlugins)
Add a list of ImagePlugin to the component.
- Parameters:
imagePlugins- A list of pluggable compose interfaces that will be executed for loading images.
-
remove
final ImagePluginComponent remove(ImagePlugin imagePlugin)
Remove an ImagePlugin from the component.
- Parameters:
imagePlugin- A pluggable compose interface that will be executed for loading images.
-
unaryPlus
final ImagePluginComponent unaryPlus(ImagePlugin $self)
Add a new ImagePlugin to the component using the unary plus operator to the ImagePlugin.
-
-
-
-