Renderer
public
final
class
Renderer
extends Object
java.lang.Object
|
↳ |
androidx.autofill.inline.Renderer
|
Renderer class responsible for rendering the inline suggestion UI.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
getAttributionIntent
public static PendingIntent getAttributionIntent (Slice content)
Returns a PendingIntent
that will be launched on long clicking the UI
to show attribution information via a Dialog
.
The attribution UI indicates to the user the source of the UI content.
Parameters |
content |
Slice : the UI content which contains a PendingIntent representing the
attribution information
|
getSupportedInlineUiVersionsAsBundle
public static Bundle getSupportedInlineUiVersionsAsBundle ()
Returns all the supported versions wrapped in a Bundle
.
render
public static View render (Context context,
Slice content,
Bundle styles)
Parameters |
context |
Context : the context used to render the view |
content |
Slice : represents the UI content |
styles |
Bundle : contains a mapping from UI version to corresponding UI style specification |
Returns |
View |
a view rendered based on the provided UI content and the style with corresponding
version or null when the UI version indicated by the slice is either unsupported
by the Renderer, or not provided in the styles .
|