Renderer
@RequiresApi(api = Build.VERSION_CODES.R)
public final class Renderer
Renderer class responsible for rendering the inline suggestion UI.
Summary
Public methods |
|
|---|---|
static @Nullable PendingIntent |
getAttributionIntent(@NonNull Slice content)Returns a |
static @NonNull Bundle |
Returns all the supported versions wrapped in a |
static @Nullable View |
Public methods
getAttributionIntent
public static @Nullable PendingIntent getAttributionIntent(@NonNull Slice content)
Returns a PendingIntent that will be launched on long clicking the UI to show attribution information via a android.app.Dialog.
The attribution UI indicates to the user the source of the UI content.
| Parameters | |
|---|---|
@NonNull Slice content |
the UI content which contains a |
getSupportedInlineUiVersionsAsBundle
public static @NonNull Bundle getSupportedInlineUiVersionsAsBundle()
Returns all the supported versions wrapped in a Bundle.
render
public static @Nullable View render(
@NonNull Context context,
@NonNull Slice content,
@NonNull Bundle styles
)