5#ifndef FLUTTER_ASSETS_DIRECTORY_ASSET_BUNDLE_H_
6#define FLUTTER_ASSETS_DIRECTORY_ASSET_BUNDLE_H_
9#include "flutter/assets/asset_resolver.h"
10#include "flutter/fml/macros.h"
11#include "flutter/fml/memory/ref_counted.h"
12#include "flutter/fml/unique_fd.h"
19 bool is_valid_after_asset_manager_change);
25 bool is_valid_ =
false;
26 bool is_valid_after_asset_manager_change_ =
false;
39 const std::string& asset_name)
const override;
43 const std::string& asset_pattern,
44 const std::optional<std::string>& subdir)
const override;
AssetResolverType
Identifies the type of AssetResolver an instance is.
std::vector< std::unique_ptr< fml::Mapping > > GetAsMappings(const std::string &asset_pattern, const std::optional< std::string > &subdir) const override
Same as GetAsMapping() but returns mappings for all files who's name matches a given pattern....
std::unique_ptr< fml::Mapping > GetAsMapping(const std::string &asset_name) const override
~DirectoryAssetBundle() override
bool operator==(const AssetResolver &other) const override
bool IsValidAfterAssetManagerChange() const override
Certain asset resolvers are still valid after the asset manager is replaced before a hot reload,...
AssetResolver::AssetResolverType GetType() const override
Gets the type of AssetResolver this is. Types are defined in AssetResolverType.
const DirectoryAssetBundle * as_directory_asset_bundle() const override
bool IsValid() const override
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)