MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / CustomAction

Class CustomAction

native/events/Preference.h:23–46  ·  view source on GitHub ↗

The class for describing the actions that user specified in preference file

Source from the content-addressed store, hash-verified

21
22 /// The class for describing the actions that user specified in preference file
23 class CustomAction : public Action {
24 public:
25 OperatePtr toOperate() const override;
26
27 CustomAction();
28
29 explicit CustomAction(ActionType act);
30
31 XpathPtr xpath;
32 std::string resourceID;
33 std::string contentDescription;
34 std::string text;
35 std::string classname;
36 std::string activity;
37 std::string command;
38 std::vector<float> bounds;
39 bool allowFuzzing{true};
40 bool clearText{};
41 int throttle{};
42 int waitTime{};
43 bool adbInput{};
44
45 ~CustomAction() override = default;
46 };
47
48 typedef std::shared_ptr<CustomAction> CustomActionPtr;
49 typedef std::vector<CustomActionPtr> CustomActionPtrVec;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected