Share via


Address.Locality Property

Definition

Returns the locality of the address, for example "Mountain View", or null if it is unknown. -or- Sets the locality of the address to the given String, which may be null.

public virtual string? Locality { [Android.Runtime.Register("getLocality", "()Ljava/lang/String;", "GetGetLocalityHandler")] get; [Android.Runtime.Register("setLocality", "(Ljava/lang/String;)V", "GetSetLocality_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getLocality", "()Ljava/lang/String;", "GetGetLocalityHandler")>]
[<set: Android.Runtime.Register("setLocality", "(Ljava/lang/String;)V", "GetSetLocality_Ljava_lang_String_Handler")>]
member this.Locality : string with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the locality of the address, for example "Mountain View", or null if it is unknown.

Java documentation for android.location.Address.getLocality().

Property setter documentation:

Sets the locality of the address to the given String, which may be null.

Java documentation for android.location.Address.setLocality(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