# WearTypeHelper

# WearTypeHelper

Artifact:[androidx.wear:wear](https://developer.android.com/jetpack/androidx/releases/wear)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/utils/WearTypeHelper.java+class:androidx.wear.utils.WearTypeHelper)  
Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/wear#1.2.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/utils/WearTypeHelper "View this page in Java")

<br />

```
class WearTypeHelper
```

<br />

*** ** * ** ***

Helper class for determining whether the given Wear OS device is for China or rest of the world.

## Summary

|                                       ### Public functions                                        |
|---------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [isChinaBuild](https://developer.android.com/reference/kotlin/androidx/wear/utils/WearTypeHelper#isChinaBuild(android.content.Context))`(context: `[Context](https://developer.android.com/reference/android/content/Context.html)`)` Returns whether the given device is running a China build. |

## Public functions

### isChinaBuild

Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/wear#1.2.0)  

```
java-static fun isChinaBuild(context: Context): Boolean
```

Returns whether the given device is running a China build. This can be used together with`androidx.wear.phone.interactions.PhoneTypeHelper`to decide what Uri should be used when opening Play Store on connected phone.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if device is running a China build and false if it is running the rest of the world build. |