Package com.maxkeppeler.sheets.core

Types

Link copied to clipboard
typealias AddOnComponent = Sheet.() -> Unit

Bundle a block of sheet functions for the use case of add-on-components. AddOnComponents maintain their state.

Link copied to clipboard
enum ButtonStyle : Enum<ButtonStyle>

Available button styles.

Link copied to clipboard
typealias CancelListener = () -> Unit

Listener that is invoked when the sheet is cancelled. Works only if sheet is cancelable.

Link copied to clipboard
typealias ClickListener = () -> Unit

Listener that is invoked when buttons are clicked.

Link copied to clipboard
typealias CloseListener = () -> Unit

Listener that is invoked when the sheet is closed.

Link copied to clipboard
typealias DismissListener = () -> Unit

Listener that is invoked when the sheet is dismissed through a positive or negative action.

Link copied to clipboard
class IconButton

Represents an icon acting as a button giving additional possibilities for actions.

Link copied to clipboard
class Image : ImageSource

A class that holds the image data and some preferences for the image view and image loading.

Link copied to clipboard
class ImageRequest

Wrapper class of the ImageRequest class of coil to offer basic functionality to the image loading.

Link copied to clipboard
typealias ImageRequestBuilder = ImageRequest.() -> Unit

Used to apply image request settings.

Link copied to clipboard
abstract class ImageSource

A class that holds general image view settings.

Link copied to clipboard
typealias ImageViewBuilder = AppCompatImageView.() -> Unit
Link copied to clipboard
typealias NegativeListener = () -> Unit

Listener that is invoked when the negative button is clicked.

Link copied to clipboard
typealias OnViewCreatedListener = (<Error class: unknown class>) -> Unit

Listener that is invoked when the view was created.

Link copied to clipboard
typealias PositiveListener = () -> Unit

Listener that is invoked when the positive button is clicked.

Link copied to clipboard
data class Ratio(val width: Int, val height: Int)

A class that represent an aspect ratio.

Link copied to clipboard
abstract class Sheet : SheetFragment

This class is the base of all types of sheets. You can implement this class in your own and build your own custom sheet with the already existing features which the base class offers.

Link copied to clipboard
abstract class SheetFragment : DialogFragment

This class is the base of all types of sheets. You can implement this class in your own and build your own custom sheet with the already existing features which the base class offers.

Link copied to clipboard
enum SheetStyle : Enum<SheetStyle>

The style you can use to display the content.

Link copied to clipboard
enum TopStyle : Enum<TopStyle>

Available top styles.