class PersistentStatus
Defined at line 17 of file ../../src/lib/analytics/cpp/core_dev_tools/persistent_status.h
Manages persistent statuses (states written to files) related to analytics, such as:
- opt-in/out status of analytics collection
- first-run status of a tool
This class does not provide an in-memory cache for the statuses.
Public Methods
void PersistentStatus (std::string_view tool_name)
Defined at line 20 of file ../../src/lib/analytics/cpp/core_dev_tools/persistent_status.cc
void Enable ()
Manage the persistent opt-in/out status. Will also manage other properties associated with the
enable/disable action, such as the UUID, as specified in the PDD of Fuchsia host tools.
Defined at line 23 of file ../../src/lib/analytics/cpp/core_dev_tools/persistent_status.cc
void Disable ()
Defined at line 28 of file ../../src/lib/analytics/cpp/core_dev_tools/persistent_status.cc
bool IsEnabled ()
Defined at line 33 of file ../../src/lib/analytics/cpp/core_dev_tools/persistent_status.cc
std::string GetUuid ()
Get UUID of the user
Defined at line 49 of file ../../src/lib/analytics/cpp/core_dev_tools/persistent_status.cc
bool IsFirstLaunchOfFirstTool ()
Indicates whether it is the very first launch of the first tool among core developer tools.
Defined at line 39 of file ../../src/lib/analytics/cpp/core_dev_tools/persistent_status.cc
void MarkAsDirectlyLaunched ()
Manage the persistent status indicating whether a tool has been launched.
Defined at line 43 of file ../../src/lib/analytics/cpp/core_dev_tools/persistent_status.cc
bool IsFirstDirectLaunch ()
Defined at line 45 of file ../../src/lib/analytics/cpp/core_dev_tools/persistent_status.cc