1// Actions that can be performed when a user interacts with layout elements.
2syntax = "proto3";
3
4package androidx.wear.tiles.testing.proto;
5
6import "state.proto";
7
8option java_package = "androidx.wear.tiles.testing.proto";
9option java_outer_classname = "ActionProto";
10
11// A launch action to send an intent to an Android activity.
12message AndroidActivity {
13  // The package name to send the intent to, for example, "com.google.weather".
14  string package_name = 1;
15
16  // The fully qualified class name (including the package) to send the intent
17  // to, for example, "com.google.weather.WeatherOverviewActivity".
18  string class_name = 2;
19}
20
21// An action used to launch another activity on the system. This can hold
22// multiple different underlying action types, which will be picked based on
23// what the underlying runtime believes to be suitable.
24message LaunchAction {
25  // An action to launch an Android activity.
26  AndroidActivity android_activity = 1;
27}
28
29// An action used to load (or reload) the tile contents.
30message LoadAction {
31  // The state to load the next tile with. This will be included in the
32  // TileRequest sent after this action is invoked by a Clickable.
33  State request_state = 1;
34}
35
36// An action that can be used by a layout element.
37message Action {
38  oneof value {
39    LaunchAction launch_action = 1;
40    LoadAction load_action = 2;
41  }
42}
43