PhoneTypeHelper.Companion
object PhoneTypeHelper.Companion
Summary
Constants |
|
---|---|
const Int |
Indicates that we are paired to an Android phone. |
const Int |
Indicates an error returned retrieving the type of phone we are paired to. |
const Int |
Indicates that we are paired to an iOS phone. |
const Int |
Indicates unknown type of phone we are paired to. |
Public functions |
|
---|---|
@PhoneTypeHelper.Companion.DeviceFamily Int |
getPhoneDeviceType(context: Context) Returns the type of phone handset this Wear OS device has been paired with. |
Constants
DEVICE_TYPE_ANDROID
const val DEVICE_TYPE_ANDROID: Int
Indicates that we are paired to an Android phone.
DEVICE_TYPE_ERROR
const val DEVICE_TYPE_ERROR: Int
Indicates an error returned retrieving the type of phone we are paired to.
DEVICE_TYPE_UNKNOWN
const val DEVICE_TYPE_UNKNOWN: Int
Indicates unknown type of phone we are paired to.
Public functions
getPhoneDeviceType
@PhoneTypeHelper.Companion.DeviceFamily
fun getPhoneDeviceType(context: Context): Int
Returns the type of phone handset this Wear OS device has been paired with.
Returns | |
---|---|
Int |
one of |