Action
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eAction\u003c/code\u003e interface represents a user's action within an app.\u003c/p\u003e\n"],["\u003cp\u003eActions are created using \u003ccode\u003eAction.Builder\u003c/code\u003e and logged using methods in \u003ccode\u003eUserActions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eActions\u003c/code\u003e class provides convenience methods for creating common action types.\u003c/p\u003e\n"]]],["The core content describes the `Action` interface, representing user actions within an app. Actions are created using the `Action.Builder` class. These actions are then recorded using `UserActions.start(Action)` and `UserActions.end(Action)`. Convenience methods to create actions are found in `Actions`. The `Action.Builder` class facilitates the construction of `Action` instances.\n"],null,["# Action\n\npublic interface **Action** \nRepresents an action taken by the user within the app.\n\nActions are constructed via [Action.Builder](/android/reference/com/google/android/gms/appindex/Action.Builder)\nand logged via [UserActions.start(Action)](/android/reference/com/google/android/gms/appindex/UserActions#start(com.google.android.gms.appindex.Action)) and [UserActions.end(Action)](/android/reference/com/google/android/gms/appindex/UserActions#end(com.google.android.gms.appindex.Action)). Convenience methods to construct common types of actions\nare available via Actions. \n\n### Nested Class Summary\n\n|-------|---|---|--------------------------------------------------------------------------------------|\n| class | [Action.Builder](/android/reference/com/google/android/gms/appindex/Action.Builder) || The builder for [Action](/android/reference/com/google/android/gms/appindex/Action). |"]]