JumioConsentItem

data class JumioConsentItem(val id: String, val url: String, val text: String, val type: JumioConsentType) : Serializable

Contains all information that needs to be presented to end user in order to obtain user consent, including JumioConsentType

Constructors

Link copied to clipboard
constructor(id: String, url: String, text: String, type: JumioConsentType)

Properties

Link copied to clipboard
val id: String

A string containing the identifier of this item

Link copied to clipboard

A string describing the consent item. You need to display this text to the user and the link holder must be clickable and open the privacy url. The link holder will be wrapped by ({}), e.g. "Jumio stores sensitive data. Click ({here}) to get more information.". Alternatively, you can also display the spannedText, which already contains a clickable link to the privacy url.

Link copied to clipboard

ConsentType differentiates between JumioConsentType.ACTIVE and JumioConsentType.PASSIVE consent and describes how the consent item should be collected from the user

Link copied to clipboard
val url: String

A string containing the privacy policy url for this item

Functions

Link copied to clipboard
fun spannedTextWithLinkColor(linkColor: Int = 0): Spanned

Returns a spanned string that contains the text and the link holder parsed and underlined. A click on the link starts an ACTION_VIEW Intent with the privacy policy url.

Link copied to clipboard
open override fun toString(): String