ImageComponentBuilder

A builder class for image component.
implements LINE\LINEBot\MessageBuilder\Flex\ComponentBuilder
Methods Summary
public
# __construct( string $url , int|null $flex = NULL, \ComponentMargin|null $margin = NULL, \ComponentAlign|null $align = NULL, \ComponentGravity|null $gravity = NULL, \ComponentImageSize|null $size = NULL, \ComponentImageAspectRatio|null $aspectRatio = NULL, \ComponentImageAspectMode|null $aspectMode = NULL, string|null $backgroundColor = NULL, \TemplateActionBuilder|null $actionBuilder = NULL )
ImageComponentBuilder constructor.
public static
# builder( )
Create empty ImageComponentBuilder.
public
# setUrl( string $url )
Set url.
public
# setFlex( int|null $flex )
Set flex.
public
# setMargin( \ComponentMargin|string|null $margin )
Set margin.
public
# setAlign( \ComponentAlign|string|null $align )
Set align.
public
# setGravity( \ComponentGravity|string|null $gravity )
Set gravity.
public
# setSize( \ComponentImageSize|string|null $size )
Set size.
public
# setAspectRatio( \ComponentImageAspectRatio|string|null $aspectRatio )
Set aspectRatio.
public
# setAspectMode( \ComponentImageAspectMode|string|null $aspectMode )
Set aspectMode.
public
# setBackgroundColor( string|null $backgroundColor )
Set backgroundColor.
public
# setAction( \TemplateActionBuilder|null $actionBuilder )
Set action.
public
# setPosition( string|\ComponentPosition|null $position )
Set position. specifiable relative or absolute
public
# setOffsetTop( string|\ComponentSpacing|null $offsetTop )
Set offsetTop. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# setOffsetBottom( string|\ComponentSpacing|null $offsetBottom )
Set offsetBottom. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# setOffsetStart( string|\ComponentSpacing|null $offsetStart )
Set offsetStart. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# setOffsetEnd( string|\ComponentSpacing|null $offsetEnd )
Set offsetEnd. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# build( )
Builds image component structure.

Implementation of