showAiAssistant

fun showAiAssistant(activity: FragmentActivity, textSelection: TextSelection? = null)

Shows the AI Assistant dialog in the provided FragmentActivity.

Parameters

activity

The FragmentActivity in which to show the AI Assistant dialog.

textSelection

Optional TextSelection that can be passed to the AI Assistant dialog. If not provided, the dialog will not have any selected text.