Added in API level 1

Factory


open class Factory
kotlin.Any
   ↳ android.text.Spannable.Factory

Factory used by TextView to create new Spannables. You can subclass it to provide something other than SpannableString.

Summary

Public constructors

Public methods
open static Spannable.Factory!

Returns the standard Spannable Factory.

open Spannable!

Returns a new SpannableString from the specified CharSequence.

Public constructors

Factory

Factory()

Public methods

getInstance

Added in API level 1
open static fun getInstance(): Spannable.Factory!

Returns the standard Spannable Factory.

newSpannable

Added in API level 1
open fun newSpannable(source: CharSequence!): Spannable!

Returns a new SpannableString from the specified CharSequence. You can override this to provide a different kind of Spannable.