Udostępnij za pośrednictwem


DevicePolicyManager.IsStatusBarDisabled Property

Definition

Returns whether the status bar is disabled/enabled, see #setStatusBarDisabled.

public virtual bool IsStatusBarDisabled { [Android.Runtime.Register("isStatusBarDisabled", "()Z", "GetIsStatusBarDisabledHandler", ApiSince=34)] get; }
[<get: Android.Runtime.Register("isStatusBarDisabled", "()Z", "GetIsStatusBarDisabledHandler", ApiSince=34)>]
member this.IsStatusBarDisabled : bool

Property Value

Attributes

Remarks

Returns whether the status bar is disabled/enabled, see #setStatusBarDisabled.

Callable by device owner or profile owner of secondary users that is affiliated with the device owner.

This policy has no effect in LockTask mode. The behavior of the status bar in LockTask mode can be configured with #setLockTaskFeatures(ComponentName, int).

This policy also does not have any effect while on the lock screen, where the status bar will not be disabled.

Java documentation for android.app.admin.DevicePolicyManager.isStatusBarDisabled().

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