Lingua

LocationButtonRequest.Builder.SetTextType(Int32) Method

Definition

Sets the text type of the button.

[Android.Runtime.Register("setTextType", "(I)Landroid/app/permissionui/LocationButtonRequest$Builder;", "", ApiSince=37)]
public Android.App.PermissionUI.LocationButtonRequest.Builder SetTextType(int textType);
[<Android.Runtime.Register("setTextType", "(I)Landroid/app/permissionui/LocationButtonRequest$Builder;", "", ApiSince=37)>]
member this.SetTextType : int -> Android.App.PermissionUI.LocationButtonRequest.Builder

Parameters

textType
Int32

Value is one of the following: LocationButtonSession.TEXT_TYPE_NONE; LocationButtonSession.TEXT_TYPE_PRECISE_LOCATION; LocationButtonSession.TEXT_TYPE_USE_PRECISE_LOCATION; LocationButtonSession.TEXT_TYPE_SHARE_PRECISE_LOCATION; LocationButtonSession.TEXT_TYPE_NEAR_MY_PRECISE_LOCATION; LocationButtonSession.TEXT_TYPE_NEAR_YOUR_PRECISE_LOCATION

Returns

Attributes

Remarks

Sets the text type of the button.

Unsupported text types will be treated as LocationButtonSession.TEXT_TYPE_NONE. If not explicitly set, it defaults to LocationButtonSession.TEXT_TYPE_NONE.

Android reference for android.app.permissionui.LocationButtonRequest.Builder.setTextType.

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