Package org.mozilla.geckoview
Interface Autofill.Delegate
- Enclosing class:
- Autofill
public static interface Autofill.Delegate
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onNodeAdd
(GeckoSession session, Autofill.Node node, Autofill.NodeData data) A node within the autofill session has been added.default void
onNodeBlur
(GeckoSession session, Autofill.Node prev, Autofill.NodeData data) A node within the autofill session has lost focus.default void
onNodeFocus
(GeckoSession session, Autofill.Node focused, Autofill.NodeData data) A node within the autofill session has gained focus.default void
onNodeRemove
(GeckoSession session, Autofill.Node node, Autofill.NodeData data) A node within the autofill session has been removed.default void
onNodeUpdate
(GeckoSession session, Autofill.Node node, Autofill.NodeData data) A node within the autofill session has been updated.default void
onSessionCancel
(GeckoSession session) An autofill session has been canceled.default void
onSessionCommit
(GeckoSession session, Autofill.Node node, Autofill.NodeData data) An autofill session has been committed.default void
onSessionStart
(GeckoSession session) An autofill session has started.
-
Method Details
-
onSessionStart
An autofill session has started. Usually triggered by page load.- Parameters:
session
- TheGeckoSession
instance.
-
onSessionCommit
@UiThread default void onSessionCommit(@NonNull GeckoSession session, @NonNull Autofill.Node node, @NonNull Autofill.NodeData data) An autofill session has been committed. Triggered by form submission or navigation.- Parameters:
session
- TheGeckoSession
instance.node
- the node that is being committed.data
- the node data associated to the node being committed.
-
onSessionCancel
An autofill session has been canceled. Triggered by page unload.- Parameters:
session
- TheGeckoSession
instance.
-
onNodeAdd
@UiThread default void onNodeAdd(@NonNull GeckoSession session, @NonNull Autofill.Node node, @NonNull Autofill.NodeData data) A node within the autofill session has been added.- Parameters:
session
- TheGeckoSession
instance.node
- TheAutofill.Node
that was added.data
- TheAutofill.NodeData
associated to the note that was added.
-
onNodeRemove
@UiThread default void onNodeRemove(@NonNull GeckoSession session, @NonNull Autofill.Node node, @NonNull Autofill.NodeData data) A node within the autofill session has been removed.- Parameters:
session
- TheGeckoSession
instance.node
- TheAutofill.Node
that was removed.data
- TheAutofill.NodeData
associated to the note that was removed.
-
onNodeUpdate
@UiThread default void onNodeUpdate(@NonNull GeckoSession session, @NonNull Autofill.Node node, @NonNull Autofill.NodeData data) A node within the autofill session has been updated.- Parameters:
session
- TheGeckoSession
instance.node
- TheAutofill.Node
that was updated.data
- TheAutofill.NodeData
associated to the note that was updated.
-
onNodeFocus
@UiThread default void onNodeFocus(@NonNull GeckoSession session, @NonNull Autofill.Node focused, @NonNull Autofill.NodeData data) A node within the autofill session has gained focus.- Parameters:
session
- TheGeckoSession
instance.focused
- TheAutofill.Node
that is now focused.data
- TheAutofill.NodeData
associated to the note that is now focused.
-
onNodeBlur
@UiThread default void onNodeBlur(@NonNull GeckoSession session, @NonNull Autofill.Node prev, @NonNull Autofill.NodeData data) A node within the autofill session has lost focus.- Parameters:
session
- TheGeckoSession
instance.prev
- TheAutofill.Node
that lost focus.data
- TheAutofill.NodeData
associated to the note that lost focus.
-