SettingsPreferenceMetadata.IsRestricted Property

Definition

Returns whether Preference is restricted.

public bool IsRestricted { [Android.Runtime.Register("isRestricted", "()Z", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("isRestricted", "()Z", "", ApiSince=36)>]
member this.IsRestricted : bool

Property Value

Attributes

Remarks

Returns whether Preference is restricted.

If true, this means the Preference is treated as a Restricted Preference which indicates that it could be conditionally disabled/unavailable due to admin settings.

Java documentation for android.service.settings.preferences.SettingsPreferenceMetadata.isRestricted().

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