Package org.mozilla.geckoview
Class Autofill.Session
Object
org.mozilla.geckoview.Autofill.Session
- Enclosing class:
- Autofill
Represents an autofill session. A session holds the autofill nodes and state of a page.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
autofill
(SparseArray<CharSequence> values) Perform auto-fill using the specified values.dataFor
(Autofill.Node node) Get data for the given node.void
fillViewStructure
(View view, ViewStructure structure, int flags) void
fillViewStructure
(Autofill.Node node, View view, ViewStructure structure, int flags) Returns the currently focused node.Returns the currently focused node data.getRoot()
Get the root node of the session tree.boolean
isVisible
(Autofill.Node node) Returns true if the node is currently visible in the page.toString()
-
Method Details
-
getDefaultDimensions
-
dataFor
Get data for the given node.- Parameters:
node
- theAutofill.Node
get data for.- Returns:
- the
Autofill.NodeData
for the given node.
-
autofill
Perform auto-fill using the specified values.- Parameters:
values
- Map of auto-fill IDs to values.
-
isVisible
Returns true if the node is currently visible in the page.- Parameters:
node
- theAutofill.Node
instance- Returns:
- true if the node is visible, false otherwise.
-
getFocused
Returns the currently focused node.- Returns:
- a reference to the
Autofill.Node
that is currently focused or null if no node is currently focused.
-
getFocusedData
Returns the currently focused node data.- Returns:
- a refernce to
Autofill.NodeData
or null if no node is focused.
-
getRoot
Get the root node of the session tree. Each session is managed in a tree with a virtual root node for the document.- Returns:
- The root
Autofill.Node
for this session.
-
toString
-
fillViewStructure
@UiThread public void fillViewStructure(@NonNull View view, @NonNull ViewStructure structure, int flags) -
fillViewStructure
@UiThread public void fillViewStructure(@NonNull Autofill.Node node, @NonNull View view, @NonNull ViewStructure structure, int flags)
-