SurfaceView.SetBlurRegions(ICollection<BlurRegion>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies a list of regions to be blurred on the SurfaceView's content.
[Android.Runtime.Register("setBlurRegions", "(Ljava/util/Collection;)V", "GetSetBlurRegions_Ljava_util_Collection_Handler", ApiSince=37)]
public virtual void SetBlurRegions(System.Collections.Generic.ICollection<Android.Views.BlurRegion>? blurRegions);
[<Android.Runtime.Register("setBlurRegions", "(Ljava/util/Collection;)V", "GetSetBlurRegions_Ljava_util_Collection_Handler", ApiSince=37)>]
abstract member SetBlurRegions : System.Collections.Generic.ICollection<Android.Views.BlurRegion> -> unit
override this.SetBlurRegions : System.Collections.Generic.ICollection<Android.Views.BlurRegion> -> unit
Parameters
- blurRegions
- ICollection<BlurRegion>
collection of BlurRegion objects to blur, or null to clear
- Attributes
Remarks
Specifies a list of regions to be blurred on the SurfaceView's content.
Calling this method replaces any blur regions that were previously set. To clear existing blur regions, pass null or an empty collection.
The coordinates of BlurRegion are relative to the SurfaceView's bounds. The blur regions should be updated or replaced whenever the SurfaceView's dimensions change.
Android reference for android.view.SurfaceView.setBlurRegions.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.