suggestion
fun Any?.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)
Content copied to clipboard
SuggestionSpan 设置文本输入提示
Parameters
context
Context
suggestions
提示规则文本数组
flags
提示规则 SuggestionSpan.FLAG_EASY_CORRECTSuggestionSpan.FLAG_AUTO_CORRECTION
locale
语言区域设置
notification Target Class
通知目标. 基本已废弃, 只在API<29时生效
replace Rule
组合替换规则 StringReplaceRule