Stay organized with collections Save and categorize content based on your preferences.

PhoneTypeHelper.Companion

public static class PhoneTypeHelper.Companion


Summary

Public methods

static final int

Returns the type of phone handset this Wear OS device has been paired with.

Public methods

getPhoneDeviceType

@PhoneTypeHelper.Companion.DeviceFamily
public static final int getPhoneDeviceType(@NonNull Context context)

Returns the type of phone handset this Wear OS device has been paired with.

Returns
int

one of DEVICE_TYPE_ERROR, DEVICE_TYPE_ANDROID, DEVICE_TYPE_IOS or DEVICE_TYPE_UNKNOWN indicating we had an error while determining the phone type, we are paired to an Android phone, we are paired to an iOS phone or we could not determine the phone type respectively.