yieldprobe / com.yieldlab.yieldprobe.helper / DeviceHelper

DeviceHelper

class DeviceHelper

Get the device type. Identifier encoding is taken from Yieldlab API spec. Please note:

Constructors

<init>

Get the device type. Identifier encoding is taken from Yieldlab API spec. Please note:

DeviceHelper()

Properties

DEVICE_CONNECTED_TV

val DEVICE_CONNECTED_TV: String

DEVICE_PHONE

val DEVICE_PHONE: String

DEVICE_TABLET

val DEVICE_TABLET: String

DEVICE_UNKNOWN

Device type as encoded in the API spec.

val DEVICE_UNKNOWN: String

Functions

getDeviceType

Get device type. Please note: This functions needs a reference to a Context as well as to an Activity.

fun getDeviceType(context: Context, activity: Activity): String