Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder for Presentations
Summary
Public constructors
Public methods
build
fun build(): Presentations
Builds the instance. This builder should not be touched after calling this!
setDialogPresentation
fun setDialogPresentation(value: RemoteViews): Presentations.Builder
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.
Parameters |
value |
RemoteViews: This value cannot be null . |
fun setMenuPresentation(value: RemoteViews): Presentations.Builder
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.
Parameters |
value |
RemoteViews: This value cannot be null . |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Presentations.Builder\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/autofill/Presentations.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|-----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.service.autofill.Presentations.Builder](#) |\n\nA builder for [Presentations](/reference/kotlin/android/service/autofill/Presentations)\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|---------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Presentations](/reference/kotlin/android/service/autofill/Presentations) | [build](#build())`()` Builds the instance. |\n| [Presentations.Builder](#) | [setDialogPresentation](#setDialogPresentation(android.widget.RemoteViews))`(`value:` `[RemoteViews](../../widget/RemoteViews.html#)`)` The presentation used to visualize this field in the fill dialog UI. |\n| [Presentations.Builder](#) | [setInlinePresentation](#setInlinePresentation(android.service.autofill.InlinePresentation))`(`value:` `[InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation)`)` The [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation) used to visualize this dataset as inline suggestions. |\n| [Presentations.Builder](#) | [setInlineTooltipPresentation](#setInlineTooltipPresentation(android.service.autofill.InlinePresentation))`(`value:` `[InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation)`)` The [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation) used to show the tooltip for the `mInlinePresentation`. |\n| [Presentations.Builder](#) | [setMenuPresentation](#setMenuPresentation(android.widget.RemoteViews))`(`value:` `[RemoteViews](../../widget/RemoteViews.html#)`)` The presentation used to visualize this field in fill UI. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): Presentations\n```\n\nBuilds the instance. This builder should not be touched after calling this!\n\n| Return ||\n|---------------------------------------------------------------------------|------------------------------|\n| [Presentations](/reference/kotlin/android/service/autofill/Presentations) | This value cannot be `null`. |\n\n### setDialogPresentation\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setDialogPresentation(value: RemoteViews): Presentations.Builder\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| Parameters ||\n|---------|-----------------------------------------------------------------------------|\n| `value` | [RemoteViews](../../widget/RemoteViews.html#): This value cannot be `null`. |\n\n| Return ||\n|----------------------------|------------------------------|\n| [Presentations.Builder](#) | This value cannot be `null`. |\n\n### setInlinePresentation\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setInlinePresentation(value: InlinePresentation): Presentations.Builder\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| Parameters ||\n|---------|-------------------------------------------------------------------------------------------------------------------|\n| `value` | [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation): This value cannot be `null`. |\n\n### setInlineTooltipPresentation\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setInlineTooltipPresentation(value: InlinePresentation): Presentations.Builder\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| Parameters ||\n|---------|-------------------------------------------------------------------------------------------------------------------|\n| `value` | [InlinePresentation](/reference/kotlin/android/service/autofill/InlinePresentation): This value cannot be `null`. |\n\n### setMenuPresentation\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setMenuPresentation(value: RemoteViews): Presentations.Builder\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| Parameters ||\n|---------|-----------------------------------------------------------------------------|\n| `value` | [RemoteViews](../../widget/RemoteViews.html#): This value cannot be `null`. |\n\n| Return ||\n|----------------------------|------------------------------|\n| [Presentations.Builder](#) | This value cannot be `null`. |"]]