Package-level declarations

Types

Link copied to clipboard

A helper interface that provides utility methods to interact with the PackageManager. This can be implemented by different classes to provide platform-specific implementations.

Link copied to clipboard

Implementation of PackageManagerHelper that provides functionality for interacting with the Android Package Manager.

Link copied to clipboard
class SeslAppInfoDataHelper @JvmOverloads constructor(context: Context, builderClass: Class<out AppData.AppDataBuilder<*>> = AppData.ListAppDataBuilder::class.java) : LogTag

Helper class for creating and managing AppInfoData objects.

Link copied to clipboard

A helper class for rounding the corners of a BitmapDrawable.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Limits the font size of the TextView if the system font scale is larger than a predefined threshold.

Link copied to clipboard
fun ImageView.loadIcon(dispatcher: CoroutineDispatcher = Dispatchers.Default, iconFlow: AppIconFlow, shimmerLayout: ShimmerFrameLayout): DisposableHandle

Loads an icon into an ImageView using a coroutine and shows a shimmer effect while loading. Returns a DisposableHandle to cancel the loading and hide the shimmer.

Link copied to clipboard
suspend fun loadIconJob(iconFlow: AppIconFlow, dispatcher: CoroutineDispatcher, imageView: ImageView, shimmerLayout: ShimmerFrameLayout)

Coroutine lambda for loading an icon into an ImageView with shimmer effect. This is typically launched in a coroutine scope.

Link copied to clipboard
fun <T> Flow<T>.loadIconSync(): T?

Collects the given Flow synchronously in a blocking manner. Used for triggering side effects or ensuring the flow is fully collected.

Link copied to clipboard

Returns a new mutated copy of the drawable, or null if not possible.

Link copied to clipboard
fun View.seslSetRoundedCorner(roundedCorner: SeslRoundedCorner, insets: Insets? = null)
fun View.seslSetRoundedCorner(corner: Int = ROUNDED_CORNER_ALL, insets: Insets? = null)
Link copied to clipboard

Recursively sets the enabled state of this View and all its descendants.

Link copied to clipboard
fun TextView.setHighLightText(search: String, @ColorInt foregroundColor: Int)

Highlights occurrences of a search string within the TextView's text.