Skip to content

//sorisdk/com.iplateia.sorisdk/getDeviceId

getDeviceId

[androidJvm]
fun getDeviceId(context: Context): String

Create or retrive the device ID from shared preferences. If it doesn't exist, it generates a new UUID and saves it.

Return

The device ID as a string

Parameters

androidJvm

contextThe context from which to access shared preferences