UiVersions
@RequiresApi(api = Build.VERSION_CODES.R)
class UiVersions
Defines the inline suggestion UI version constants.
Summary
Nested types |
|---|
interface UiVersions.ContentRepresents the UI content that can be converted into a |
interface UiVersions.StyleRepresents a UI style specification that contains the version information and can be converted into a Bundle to be read to render a UI in a remote process. |
class UiVersions.StylesBuilderA builder responsible for providing a |
Constants |
|
|---|---|
const String! |
INLINE_UI_VERSION_1 = "androidx.autofill.inline.ui.version:v1"The ID for the version 1 implementation of the inline UI library. |
Public functions |
|
|---|---|
java-static (Mutable)List<String!> |
getVersions(versionedBundle: Bundle)The |
java-static UiVersions.StylesBuilder |
Returns a new styles builder. |
Constants
INLINE_UI_VERSION_1
const val INLINE_UI_VERSION_1 = "androidx.autofill.inline.ui.version:v1": String!
The ID for the version 1 implementation of the inline UI library.
| See also | |
|---|---|
InlineSuggestionUi |
Public functions
getVersions
java-static fun getVersions(versionedBundle: Bundle): (Mutable)List<String!>
The versionedBundle is expected to be generated either by build or getSupportedInlineUiVersionsAsBundle.
| Parameters | |
|---|---|
versionedBundle: Bundle |
the bundle that encodes the versions information. |
newStylesBuilder
java-static fun newStylesBuilder(): UiVersions.StylesBuilder
Returns a new styles builder.
See androidx.autofill.inline.v1.InlineSuggestionUi for example usage.