Condividi tramite


IWindowManager.IsCrossWindowBlurEnabled Property

Definition

Returns whether cross-window blur is currently enabled.

public virtual bool IsCrossWindowBlurEnabled { [Android.Runtime.Register("isCrossWindowBlurEnabled", "()Z", "GetIsCrossWindowBlurEnabledHandler:Android.Views.IWindowManager, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)] get; }
[<get: Android.Runtime.Register("isCrossWindowBlurEnabled", "()Z", "GetIsCrossWindowBlurEnabledHandler:Android.Views.IWindowManager, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
member this.IsCrossWindowBlurEnabled : bool

Property Value

Attributes

Remarks

Returns whether cross-window blur is currently enabled. This affects both window blur behind (see LayoutParams#setBlurBehindRadius) and window background blur (see Window#setBackgroundBlurRadius).

Cross-window blur might not be supported by some devices due to GPU limitations. It can also be disabled at runtime, e.g. during battery saving mode, when multimedia tunneling is used or when minimal post processing is requested. In such situations, no blur will be computed or drawn, so the blur target area will not be blurred. To handle this, the app might want to change its theme to one that does not use blurs. To listen for cross-window blur enabled/disabled events, use #addCrossWindowBlurEnabledListener.

Java documentation for android.view.WindowManager.isCrossWindowBlurEnabled().

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.

Applies to