Skip to main content

Extension Functions


Activity

[ Reference ]

TaskDescription.kt

Extensions to easily configure the activities task description.



Basic Types

[ Reference ]

Float.kt

Extensions for Float data type.



Context

[ Reference ]

Resources.kt

Set of extensions to work with resources within the context.

Toast.kt

Extensions to show toast of short and long duration.

TypeOrResource.kt

Set of extensions to parse a value as a data type, or to get the value from resources.



Dimension

[ Reference ]

Dimensions.kt

Extensions available for any view and any context, allow you to easily convert dp or sp to px and vice versa.

The result of conversion is always returned as Int.

DimensionsF.kt

Extensions available for any view and any context, allow you to easily convert dp or sp to px and vice versa.

The result of conversion is always returned as Float.



Graphics

[ Reference ]

Bitmap.kt

Extensions for Bitmap class.



Nullability

[ Reference ]

NullSafety.kt

Extensions to more easily work with null values and with null safety.



View

[ Reference ]

Animations.kt

Extensions for animations in views.