WearTypeHelper

public final class WearTypeHelper


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

Summary

Public methods

static @NonNull boolean

Returns whether the given device is running a China build.

Public methods

isChinaBuild

@NonNull
public static boolean isChinaBuild(@NonNull Context context)

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

Returns
boolean

True if device is running a China build and false if it is running the rest of the world build.