Stay organized with collections
Save and categorize content based on your preferences.
Presentations
class Presentations
Holds presentations used to visualize autofill suggestions for each available UI type.
Summary
Public methods
getDialogPresentation
fun getDialogPresentation(): RemoteViews?
The presentation used to visualize this field in the fill dialog UI.
Theme does not work with RemoteViews layout. Avoid hardcoded text color or background color: Autofill on different platforms may have different themes.
getInlinePresentation
fun getInlinePresentation(): InlinePresentation?
The InlinePresentation
used to visualize this dataset as inline suggestions. If the dataset supports inline suggestions, this should not be null.
fun getInlineTooltipPresentation(): InlinePresentation?
The InlinePresentation
used to show the tooltip for the mInlinePresentation
. If the set this field, the mInlinePresentation
should not be null.
fun getMenuPresentation(): RemoteViews?
The presentation used to visualize this field in fill UI.
Theme does not work with RemoteViews layout. Avoid hardcoded text color or background color: Autofill on different platforms may have different themes.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Presentations\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPresentations\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/autofill/Presentations \"View this page in Java\") \n\n```\nclass Presentations\n```\n\n|---|---------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.service.autofill.Presentations](#) |\n\nHolds presentations used to visualize autofill suggestions for each available UI type.\n\nSummary\n-------\n\n| Nested classes ||\n|---|--------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/service/autofill/Presentations.Builder) A builder for [Presentations](#) |\n\n| Public methods ||\n|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RemoteViews](../../widget/RemoteViews.html#)? | [getDialogPresentation](#getDialogPresentation())`()` The presentation used to visualize this field in the fill dialog UI. |\n| [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation)? | [getInlinePresentation](#getInlinePresentation())`()` The [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation) used to visualize this dataset as inline suggestions. |\n| [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation)? | [getInlineTooltipPresentation](#getInlineTooltipPresentation())`()` The [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation) used to show the tooltip for the `mInlinePresentation`. |\n| [RemoteViews](../../widget/RemoteViews.html#)? | [getMenuPresentation](#getMenuPresentation())`()` The presentation used to visualize this field in fill UI. |\n\nPublic methods\n--------------\n\n### getDialogPresentation\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getDialogPresentation(): RemoteViews?\n```\n\nThe presentation used to visualize this field in the fill dialog UI.\n\nTheme does not work with RemoteViews layout. Avoid hardcoded text color or background color: Autofill on different platforms may have different themes.\n\n| Return ||\n|------------------------------------------------|---------------------------|\n| [RemoteViews](../../widget/RemoteViews.html#)? | This value may be `null`. |\n\n### getInlinePresentation\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getInlinePresentation(): InlinePresentation?\n```\n\nThe [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation) used to visualize this dataset as inline suggestions. If the dataset supports inline suggestions, this should not be null. \n\n### getInlineTooltipPresentation\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getInlineTooltipPresentation(): InlinePresentation?\n```\n\nThe [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation) used to show the tooltip for the `mInlinePresentation`. If the set this field, the `mInlinePresentation` should not be null. \n\n### getMenuPresentation\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getMenuPresentation(): RemoteViews?\n```\n\nThe presentation used to visualize this field in fill UI.\n\nTheme does not work with RemoteViews layout. Avoid hardcoded text color or background color: Autofill on different platforms may have different themes.\n\n| Return ||\n|------------------------------------------------|---------------------------|\n| [RemoteViews](../../widget/RemoteViews.html#)? | This value may be `null`. |"]]