DeviceUtils

object DeviceUtils

Utils for device attributes.

Most of this is a copy from PACEKitConfig.

Functions

getAndroidVersion
Link copied to clipboard
fun getAndroidVersion(): String

Returns the release version

getAppAuthRedirectScheme
Link copied to clipboard
fun getAppAuthRedirectScheme(context: Context): String?
getDeviceModel
Link copied to clipboard
fun getDeviceModel(): String

Returns the device model formatted the following way: [BRAND or MANUFACTURER] MODEL

getDeviceModelVersion
Link copied to clipboard
fun getDeviceModelVersion(): String

Returns the device model version formatted the following way: PRODUCT or DEVICE q Example output:

getDeviceName
Link copied to clipboard
fun getDeviceName(): String

Returns the device name formatted the following way: [BRAND or MANUFACTURER] MODEL ([PRODUCT or DEVICE])

getPACERedirectScheme
Link copied to clipboard
fun getPACERedirectScheme(context: Context): String?