createOrNull

expect fun createOrNull(context: Context, callback: (TextToSpeechInstance?) -> Unit)(source)

Creates a new TextToSpeechInstance. Will call callback with null if TTS is not supported.


expect suspend fun createOrNull(context: Context): TextToSpeechInstance?(source)

Creates a new TextToSpeechInstance. Will return null if TTS is not supported.