Freigeben über


Preference.Dependency Property

Definition

Returns the key of the dependency on this Preference. -or- Sets the key of a Preference that this Preference will depend on.

public virtual string? Dependency { [Android.Runtime.Register("getDependency", "()Ljava/lang/String;", "GetGetDependencyHandler")] get; [Android.Runtime.Register("setDependency", "(Ljava/lang/String;)V", "GetSetDependency_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getDependency", "()Ljava/lang/String;", "GetGetDependencyHandler")>]
[<set: Android.Runtime.Register("setDependency", "(Ljava/lang/String;)V", "GetSetDependency_Ljava_lang_String_Handler")>]
member this.Dependency : string with get, set

Property Value

The key of the dependency.

Attributes

Remarks

Property getter documentation:

Returns the key of the dependency on this Preference.

Java documentation for android.preference.Preference.getDependency().

Property setter documentation:

Sets the key of a Preference that this Preference will depend on. If that Preference is not set or is off, this Preference will be disabled.

Java documentation for android.preference.Preference.setDependency(java.lang.String).

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

See also