Unity Scopes API
|
Metadata passed to scopes for preview and activation. More...
#include <unity/scopes/ActionMetadata.h>
Public Member Functions | |
ActionMetadata (std::string const &locale, std::string const &form_factor) | |
Create ActionMetadata with given locale and form factor. More... | |
std::string | locale () const |
Get the locale string. More... | |
std::string | form_factor () const |
Get the form factor string. More... | |
void | set_scope_data (Variant const &data) |
Attach arbitrary data to this ActionMetadata. More... | |
Variant | scope_data () const |
Get data attached to this ActionMetadata. More... | |
Copy and assignment | |
Copy and assignment operators (move and non-move versions) have the usual value semantics. | |
ActionMetadata (ActionMetadata const &other) | |
ActionMetadata (ActionMetadata &&) | |
ActionMetadata & | operator= (ActionMetadata const &other) |
ActionMetadata & | operator= (ActionMetadata &&) |
Metadata passed to scopes for preview and activation.
unity::scopes::ActionMetadata::ActionMetadata | ( | std::string const & | locale, |
std::string const & | form_factor | ||
) |
Create ActionMetadata with given locale and form factor.
locale | locale string, eg. en_EN |
form_factor | form factor name, e.g. phone, desktop, phone-version etc. |
std::string unity::scopes::ActionMetadata::form_factor | ( | ) | const |
Get the form factor string.
std::string unity::scopes::ActionMetadata::locale | ( | ) | const |
Get the locale string.
Variant unity::scopes::ActionMetadata::scope_data | ( | ) | const |
Get data attached to this ActionMetadata.
void unity::scopes::ActionMetadata::set_scope_data | ( | Variant const & | data | ) |
Attach arbitrary data to this ActionMetadata.
data | The data value to attach. |