Language

LocationButtonSessionTextType Enum

Definition

Specifies the text choice for a location button.

public enum LocationButtonSessionTextType
type LocationButtonSessionTextType = 
Inheritance
LocationButtonSessionTextType

Fields

Name Value Description
None 0

The button displays no text.

Android reference for android.app.permissionui.LocationButtonSession.TEXT_TYPE_NONE.

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.

PreciseLocation 1

The button displays the text as "Precise location".

Android reference for android.app.permissionui.LocationButtonSession.TEXT_TYPE_PRECISE_LOCATION.

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.

UsePreciseLocation 2

The button displays the text as "Use precise location".

Android reference for android.app.permissionui.LocationButtonSession.TEXT_TYPE_USE_PRECISE_LOCATION.

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.

SharePreciseLocation 3

The button displays the text as "Share precise location".

Android reference for android.app.permissionui.LocationButtonSession.TEXT_TYPE_SHARE_PRECISE_LOCATION.

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.

NearMyPreciseLocation 4

The button displays the text as "Near my precise location".

Android reference for android.app.permissionui.LocationButtonSession.TEXT_TYPE_NEAR_MY_PRECISE_LOCATION.

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.

NearYourPreciseLocation 5

The button displays the text as "Near your precise location".

Android reference for android.app.permissionui.LocationButtonSession.TEXT_TYPE_NEAR_YOUR_PRECISE_LOCATION.

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.

Remarks

The members correspond to the TEXT_TYPE_ constants on Android's LocationButtonSession interface. None selects a button without text; the other members select the indicated location text.

Applies to