Język

SettingsPreferenceMetadata.Builder.SetRestricted(Boolean) Method

Definition

Sets whether the preference is restricted.

[Android.Runtime.Register("setRestricted", "(Z)Landroid/service/settings/preferences/SettingsPreferenceMetadata$Builder;", "", ApiSince=36)]
public Android.Service.Settings.Preferences.SettingsPreferenceMetadata.Builder SetRestricted(bool restricted);
[<Android.Runtime.Register("setRestricted", "(Z)Landroid/service/settings/preferences/SettingsPreferenceMetadata$Builder;", "", ApiSince=36)>]
member this.SetRestricted : bool -> Android.Service.Settings.Preferences.SettingsPreferenceMetadata.Builder

Parameters

restricted
Boolean

true to mark the preference as restricted, which means administrator settings can make it disabled or unavailable; otherwise, false.

Returns

This builder.

Attributes

Remarks

Sets whether the preference is restricted.

Android reference for android.service.settings.preferences.SettingsPreferenceMetadata.Builder.setRestricted.

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