public interface BlurViewFacade
| Modifier and Type | Method and Description |
|---|---|
BlurViewFacade |
setBlurAlgorithm(BlurAlgorithm algorithm) |
BlurViewFacade |
setBlurAutoUpdate(boolean enabled)
Can be used to stop blur auto update or resume if it was stopped before.
|
BlurViewFacade |
setBlurEnabled(boolean enabled)
Enables/disables the blur.
|
BlurViewFacade |
setBlurRadius(float radius) |
BlurViewFacade |
setFrameClearDrawable(android.graphics.drawable.Drawable frameClearDrawable) |
BlurViewFacade |
setHasFixedTransformationMatrix(boolean hasFixedTransformationMatrix)
Can be set to true to optimize position calculation before blur.
|
BlurViewFacade |
setOverlayColor(int overlayColor)
Sets the color overlay to be drawn on top of blurred content
|
BlurViewFacade setBlurEnabled(boolean enabled)
enabled - true to enable, false otherwiseBlurViewFacadeBlurViewFacade setBlurAutoUpdate(boolean enabled)
BlurViewFacadeBlurViewFacade setHasFixedTransformationMatrix(boolean hasFixedTransformationMatrix)
hasFixedTransformationMatrix - indicates if this BlurView has fixed transformation Matrix.BlurViewFacadeBlurViewFacade setFrameClearDrawable(android.graphics.drawable.Drawable frameClearDrawable)
frameClearDrawable - sets the drawable to draw before view hierarchy.
Can be used to draw Activity's window background if your root layout doesn't provide any background
Optional, by default frame is cleared with a transparent color.BlurViewFacadeBlurViewFacade setBlurRadius(float radius)
radius - sets the blur radius
Default value is BlurController.DEFAULT_BLUR_RADIUSBlurViewFacadeBlurViewFacade setBlurAlgorithm(BlurAlgorithm algorithm)
algorithm - sets the blur algorithmBlurViewFacadeBlurViewFacade setOverlayColor(int overlayColor)
overlayColor - int colorBlurViewFacade