Asset¶
template<typename Id> class Asset
Amplitude Asset.
This is the base class for all Amplitude assets. An Amplitude asset is a .json
file with a specific format (definition) specified by the corresponding asset's flatbuffer schema.
- Template parameter
Id
- The type of the asset id.
Functions¶
Name | Description |
---|---|
~Asset | Destroys the asset and all related resources. |
GetId | Returns the unique ID of this asset. |
GetName | Gets the name of this asset. |
Function Details¶
GetId¶
[[nodiscard]] virtual Id GetId() const = 0
Returns the unique ID of this asset.
- Return
- The asset unique ID.
GetName¶
[[nodiscard]] virtual const AmString& GetName() const = 0
Gets the name of this asset.
- Return
- The asset name.
~Asset¶
virtual ~Asset() = default
Destroys the asset and all related resources.