SemBlurCompat
object SemBlurCompat
Provides compatibility methods for Samsung's blur effects.
This object allows applying blur effects to views, with options for different blur modes, colors, radii, and corner radii. It also handles checks for theme application and accessibility settings that might disable blur effects.
The blur functionality is based on Samsung's internal APIs and may not work on all devices or Android versions.
Types
Link copied to clipboard
Link copied to clipboard
annotation class SeslBlurMode
Link copied to clipboard
annotation class SeslUseTypeCanvasBlur
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
This method verifies if the Android SDK version is 35 or higher and if the device is running Samsung's One UI.
Link copied to clipboard
Link copied to clipboard
fun setBlurEffectPreset(view: View, blurMode: Int, curveParameter: SemBlurCompat.CurveParameter, @ColorInt color: Int? = null, cornerRadius: Float? = null, useTypeCanvasBlur: Int? = CANVAS_BLUR_USE_TYPE_STATIC): Boolean
Sets a blur effect with a custom color curve on the given view on a device running Samsung's One UI.
fun setBlurEffectPreset(view: View, blurMode: Int, colorCurvePreset: Int, @ColorInt color: Int? = null, cornerRadius: Float? = null, useTypeCanvasBlur: Int? = CANVAS_BLUR_USE_TYPE_STATIC): Boolean
Sets a preset blur effect on the given view on a device running Samsung's One UI.
Link copied to clipboard
Clears any blur information previously set on the given view.