android-components/components/feature/fxsuggest
harvey186 33460cf494 search_engine 2023-12-25 10:19:33 +01:00
..
build search_engine 2023-12-25 10:19:33 +01:00
src diverses 2023-12-24 15:53:40 +01:00
README.md first commit 2023-11-28 09:10:03 +01:00
build.gradle first commit 2023-11-28 09:10:03 +01:00
proguard-rules.pro first commit 2023-11-28 09:10:03 +01:00

README.md

Android Components > Feature > Firefox Suggest

A component for accessing Firefox Suggest search suggestions.

Firefox Suggest provides suggestions for sponsored and web content in the address bar. Suggestions are downloaded, stored, and matched on-device.

Usage

Setting up the dependency

Use Gradle to download the library from maven.mozilla.org (Setup repository):

implementation "org.mozilla.components:feature-fxsuggest:{latest-version}"

Facts

This component emits the following Facts:

Action Item Extras Description
INTERACTION amp_suggestion_clicked suggestion_clicked_extras The user clicked on a Firefox Suggestion from adMarketplace.
DISPLAY amp_suggestion_impressed suggestion_impressed_extras The user saw a Firefox Suggestion from adMarketplace just before they navigated to a destination.
INTERACTION wikipedia_suggestion_clicked suggestion_clicked_extras The user clicked on a Firefox Suggestion for a Wikipedia page.
DISPLAY wikipedia_suggestion_impressed suggestion_impressed_extras The user saw a Firefox Suggestion for a Wikipedia page just before they navigated to a destination.

suggestion_clicked_extras

Key Type Value
interaction_info FxSuggestInteractionInfo Type-specific information to record for this suggestion.
position Long The 1-based position of this suggestion in the awesomebar.

suggestion_impressed_extras

Key Type Value
interaction_info FxSuggestInteractionInfo Type-specific information to record for this suggestion.
position Long The 1-based position of this suggestion in the awesomebar.
is_clicked Boolean Whether the user clicked on this suggestion.

License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/