# PlayStoreAvailability

Summary:[Constants](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability#constants)\|[Ctors](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability#pubctors)\|[Methods](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability#inhmethods)  

# PlayStoreAvailability

`
public


class
PlayStoreAvailability
`  
`

extends `[Object](http://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|-------------------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | com.google.android.wearable.playstore.PlayStoreAvailability |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
Use`androidx.wear.utils.WearTypeHelper#isChinaBuild`from the[Jetpack Wear](https://developer.android.com/jetpack/androidx/releases/wear)library, and`androidx.wear.phone.interactions.PhoneTypeHelper`from the[Jetpack Wear Phone Interactions](https://developer.android.com/jetpack/androidx/releases/wear)library instead.

Helper class for checking whether the phone paired to a given Wear OS device has the Play Store. This class is only meant to be used on Wearable devices.

## Summary

|                                                                                                                                           ### Constants                                                                                                                                           ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [PLAY_STORE_ON_PHONE_AVAILABLE](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability.html#PLAY_STORE_ON_PHONE_AVAILABLE) This value means that the Play Store is available on the phone.                                                    |
| `int` | [PLAY_STORE_ON_PHONE_ERROR_UNKNOWN](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability.html#PLAY_STORE_ON_PHONE_ERROR_UNKNOWN) This value means that there was an error in checking for whether the Play Store is available on the phone. |
| `int` | [PLAY_STORE_ON_PHONE_UNAVAILABLE](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability.html#PLAY_STORE_ON_PHONE_UNAVAILABLE) This value means that the Play Store is not available on the phone.                                            |

|                                                                       ### Public constructors                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[PlayStoreAvailability](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability.html#PlayStoreAvailability())`() ` |

|                                                                                                                                                                              ### Public methods                                                                                                                                                                               ||
|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static int` | ` `[getPlayStoreAvailabilityOnPhone](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability.html#getPlayStoreAvailabilityOnPhone(android.content.Context))`(`[Context](http://developer.android.com/reference/android/content/Context.html)` context) ` Returns whether the Play Store is available on the Phone. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||

## Constants

### PLAY_STORE_ON_PHONE_AVAILABLE

```
public static final int PLAY_STORE_ON_PHONE_AVAILABLE
```

This value means that the Play Store is available on the phone.

<br />

Constant Value: 1 (0x00000001)  

### PLAY_STORE_ON_PHONE_ERROR_UNKNOWN

```
public static final int PLAY_STORE_ON_PHONE_ERROR_UNKNOWN
```

This value means that there was an error in checking for whether the Play Store is available on the phone.

<br />

Constant Value: 0 (0x00000000)  

### PLAY_STORE_ON_PHONE_UNAVAILABLE

```
public static final int PLAY_STORE_ON_PHONE_UNAVAILABLE
```

This value means that the Play Store is not available on the phone.

<br />

Constant Value: 2 (0x00000002)

## Public constructors

### PlayStoreAvailability

```
public PlayStoreAvailability ()
```

<br />

<br />

## Public methods

### getPlayStoreAvailabilityOnPhone

```
public static int getPlayStoreAvailabilityOnPhone (Context context)
```

Returns whether the Play Store is available on the Phone. If[PLAY_STORE_ON_PHONE_ERROR_UNKNOWN](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability.html#PLAY_STORE_ON_PHONE_ERROR_UNKNOWN)is returned, the caller should try again later. This method should not be run on the main thread.

<br />

|         Parameters          ||
|-----------|------------------|
| `context` | `Context` <br /> |

|                                                                                                                                                                                                                                                                                  Returns                                                                                                                                                                                                                                                                                  ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | One of three values:[PLAY_STORE_ON_PHONE_AVAILABLE](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability.html#PLAY_STORE_ON_PHONE_AVAILABLE),[PLAY_STORE_ON_PHONE_UNAVAILABLE](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability.html#PLAY_STORE_ON_PHONE_UNAVAILABLE), or[PLAY_STORE_ON_PHONE_ERROR_UNKNOWN](https://developer.android.com/reference/com/google/android/wearable/playstore/PlayStoreAvailability.html#PLAY_STORE_ON_PHONE_ERROR_UNKNOWN). <br /> |