getAgreementClauseSpannable

Agreement clause text.

This clause needs to be visible to the shopper before initializing the payment. TextView that display this clause must have TextView.movementMethod set to LinkMovementMethod.

This method is intended to use in View based projects. For Compose use Checkout.getAgreementClauseAnnotated.

Example usage:

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

...

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
...

val textView: TextView = findViewById(R.id.textView)
textView.text = Volt.getAgreementClauseSpannable(this)
textView.movementMethod = LinkMovementMethod.getInstance();
}
...
}

Return

Spannable

Parameters

context
urlColor

highlight color of url part of the clause text, if not specified default value will be used