yieldprobe / com.yieldlab.yieldprobe.helper / DeviceHelper / getDeviceType

getDeviceType

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

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

Parameters

context - pass a context

activity - pass an activity

Return
device type as encoded in the API spec.