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;
29 bool IsValid()
const override;
32 bool IsValidAfterAssetManagerChange()
const override;
38 std::unique_ptr<fml::Mapping> GetAsMapping(
39 const std::string& asset_name)
const override;
42 std::vector<std::unique_ptr<fml::Mapping>> GetAsMappings(
43 const std::string& asset_pattern,
44 const std::optional<std::string>& subdir)
const override;
AssetResolverType
Identifies the type of AssetResolver an instance is.
DirectoryAssetBundle(fml::UniqueFD descriptor, bool is_valid_after_asset_manager_change)
~DirectoryAssetBundle() override