UiVersions
@RequiresApi(api = Build.VERSION_CODES.R)
public final class UiVersions
Defines the inline suggestion UI version constants.
Summary
Nested types |
|---|
public interface UiVersions.ContentRepresents the UI content that can be converted into a |
public 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. |
public final class UiVersions.StylesBuilderA builder responsible for providing a |
Constants |
|
|---|---|
static final String |
INLINE_UI_VERSION_1 = "androidx.autofill.inline.ui.version:v1"The ID for the version 1 implementation of the inline UI library. |
Public methods |
|
|---|---|
static @NonNull List<String> |
getVersions(@NonNull Bundle versionedBundle)The |
static @NonNull UiVersions.StylesBuilder |
Returns a new styles builder. |
Constants
INLINE_UI_VERSION_1
public static final String INLINE_UI_VERSION_1 = "androidx.autofill.inline.ui.version:v1"
The ID for the version 1 implementation of the inline UI library.
| See also | |
|---|---|
InlineSuggestionUi |
Public methods
getVersions
public static @NonNull List<String> getVersions(@NonNull Bundle versionedBundle)
The versionedBundle is expected to be generated either by build or getSupportedInlineUiVersionsAsBundle.
newStylesBuilder
public static @NonNull UiVersions.StylesBuilder newStylesBuilder()
Returns a new styles builder.
See androidx.autofill.inline.v1.InlineSuggestionUi for example usage.