Skip to content

Commit

Permalink
Mark PlatformTextInputMethodRequest as Experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
igordmn committed Aug 29, 2024
1 parent 4603ded commit 6f8e9a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package androidx.compose.foundation.text.input.internal

import androidx.compose.foundation.content.internal.ReceiveContentConfiguration
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.platform.PlatformTextInputMethodRequest
import androidx.compose.ui.platform.PlatformTextInputSession
import androidx.compose.ui.platform.ViewConfiguration
Expand Down Expand Up @@ -80,6 +81,7 @@ internal actual suspend fun PlatformTextInputSession.platformSpecificTextInputSe
)
}

@OptIn(ExperimentalComposeUiApi::class)
private data class SkikoPlatformTextInputMethodRequest(
override val state: TextFieldValue,
override val imeOptions: ImeOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,19 @@

package androidx.compose.ui.platform

import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.text.input.EditCommand
import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.text.input.ImeOptions
import androidx.compose.ui.text.input.TextFieldValue

actual interface PlatformTextInputMethodRequest {
@ExperimentalComposeUiApi
val state: TextFieldValue
@ExperimentalComposeUiApi
val imeOptions: ImeOptions
@ExperimentalComposeUiApi
val onEditCommand: (List<EditCommand>) -> Unit
@ExperimentalComposeUiApi
val onImeAction: ((ImeAction) -> Unit)?
}

0 comments on commit 6f8e9a8

Please sign in to comment.