Builder

class Builder

Builder to create instances of ShapeAppearanceModels.

Constructors

Link copied to clipboard
constructor()
constructor(@NonNull other: ShapeAppearanceModel)

Functions

Link copied to clipboard
Builds an instance of a ShapeAppearanceModel
Link copied to clipboard
@CanIgnoreReturnValue
open fun setAllCorners(@NonNull cornerTreatment: CornerTreatment): ShapeAppearanceModel.Builder
Sets all corner treatments.
@CanIgnoreReturnValue
open fun setAllCorners(cornerFamily: Int, @Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets all corner treatments to CornerTreatments generated from a cornerFamily and cornerSize.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setAllCornerSizes(@NonNull cornerSize: CornerSize): ShapeAppearanceModel.Builder
Sets all corner sizes.
@CanIgnoreReturnValue
open fun setAllCornerSizes(@Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets the corner size of all four corner treatments to cornerSize.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setAllEdges(@NonNull edgeTreatment: EdgeTreatment): ShapeAppearanceModel.Builder
Sets all edge treatments.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setBottomEdge(@NonNull bottomEdge: EdgeTreatment): ShapeAppearanceModel.Builder
Sets the edge treatment for the bottom edge.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setBottomLeftCorner(@NonNull bottomLeftCorner: CornerTreatment): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setBottomLeftCorner(cornerFamily: Int, @NonNull cornerSize: CornerSize): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setBottomLeftCorner(cornerFamily: Int, @Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets the corner treatment for the bottom left corner.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setBottomLeftCornerSize(@NonNull cornerSize: CornerSize): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setBottomLeftCornerSize(@Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets the bottom left corner size for the current corner.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setBottomRightCorner(@NonNull bottomRightCorner: CornerTreatment): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setBottomRightCorner(cornerFamily: Int, @NonNull cornerSize: CornerSize): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setBottomRightCorner(cornerFamily: Int, @Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets the corner treatment for the bottom right corner.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setBottomRightCornerSize(@Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets the bottom right corner size for the current corner.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setLeftEdge(@NonNull leftEdge: EdgeTreatment): ShapeAppearanceModel.Builder
Sets the edge treatment for the left edge.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setRightEdge(@NonNull rightEdge: EdgeTreatment): ShapeAppearanceModel.Builder
Sets the edge treatment for the right edge.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTopEdge(@NonNull topEdge: EdgeTreatment): ShapeAppearanceModel.Builder
Sets the edge treatment for the top edge.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTopLeftCorner(@NonNull topLeftCorner: CornerTreatment): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setTopLeftCorner(cornerFamily: Int, @NonNull cornerSize: CornerSize): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setTopLeftCorner(cornerFamily: Int, @Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets the corner treatment for the top left corner.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTopLeftCornerSize(@NonNull cornerSize: CornerSize): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setTopLeftCornerSize(@Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets the top left corner size for the current corner.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTopRightCorner(@NonNull topRightCorner: CornerTreatment): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setTopRightCorner(cornerFamily: Int, @NonNull cornerSize: CornerSize): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setTopRightCorner(cornerFamily: Int, @Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets the corner treatment for the top right corner.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTopRightCornerSize(@NonNull cornerSize: CornerSize): ShapeAppearanceModel.Builder
@CanIgnoreReturnValue
open fun setTopRightCornerSize(@Dimension cornerSize: Float): ShapeAppearanceModel.Builder
Sets the top right corner size for the current corner.