suggestion

@JvmOverloads
fun suggestion(context: Context, suggestions: Array<String>, flags: Int = SuggestionSpan.FLAG_EASY_CORRECT or SuggestionSpan.FLAG_AUTO_CORRECTION, locale: Locale? = null, notificationTargetClass: Class<*>? = null, replaceRule: Any? = null): Span

SuggestionSpan 设置文本输入提示

Parameters

context

Context

suggestions

提示规则文本数组

flags

提示规则 SuggestionSpan.FLAG_EASY_CORRECTSuggestionSpan.FLAG_AUTO_CORRECTION

locale

语言区域设置

notificationTargetClass

通知目标. 基本已废弃, 只在API<29时生效

replaceRule

组合替换规则 StringReplaceRule