Class

RemoteCornerBasedShape

Base class for RemoteShapes defined by four RemoteCornerSizes.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public abstract class RemoteCornerBasedShape
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public constructor(
    public val topStart: RemoteCornerSize,
    public val topEnd: RemoteCornerSize,
    public val bottomEnd: RemoteCornerSize,
    public val bottomStart: RemoteCornerSize,
) : RemoteShape

Base class for RemoteShapes defined by four RemoteCornerSizes.

Parameters

topStart a size of the top start corner
topEnd a size of the top end corner
bottomEnd a size of the bottom end corner
bottomStart a size of the bottom start corner

Functions

createOutline

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public abstract fun createOutline(
        topStart: RemoteFloat,
        topEnd: RemoteFloat,
        bottomEnd: RemoteFloat,
        bottomStart: RemoteFloat,
    ): RemoteOutline

Creates RemoteOutline of this shape.

Parameters

topStart the resolved size of the top start corner
topEnd the resolved size for the top end corner
bottomEnd the resolved size for the bottom end corner
bottomStart the resolved size for the bottom start corner