android-components / mozilla.components.service.fretboard / ValuesProvider

ValuesProvider

open class ValuesProvider (source)

Class used to provide custom filter values

Constructors

Name Summary
<init> ValuesProvider()
Class used to provide custom filter values

Functions

Name Summary
getAppId open fun getAppId(context: <ERROR CLASS>): String
Provides the app id (package name)
getClientId open fun getClientId(context: <ERROR CLASS>): String
Provides the client ID (UUID) used for bucketing the users.
getCountry open fun getCountry(context: <ERROR CLASS>): String
Provides the user’s country
getDevice open fun getDevice(context: <ERROR CLASS>): String
Provides the device model
getLanguage open fun getLanguage(context: <ERROR CLASS>): String
Provides the user’s language
getManufacturer open fun getManufacturer(context: <ERROR CLASS>): String
Provides the device manufacturer
getRegion open fun getRegion(context: <ERROR CLASS>): String?
Provides the user’s region
getReleaseChannel open fun getReleaseChannel(context: <ERROR CLASS>): String?
Provides the app’s release channel (alpha, beta, …)
getVersion open fun getVersion(context: <ERROR CLASS>): String
Provides the app version

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.