Flutter Engine
flutter::DirectoryAssetBundle Class Reference

#include <directory_asset_bundle.h>

Inheritance diagram for flutter::DirectoryAssetBundle:
flutter::AssetResolver

Public Member Functions

 DirectoryAssetBundle (fml::UniqueFD descriptor, bool is_valid_after_asset_manager_change)
 
 ~DirectoryAssetBundle () override
 
- Public Member Functions inherited from flutter::AssetResolver
 AssetResolver ()=default
 
virtual ~AssetResolver ()=default
 

Additional Inherited Members

- Public Types inherited from flutter::AssetResolver
enum  AssetResolverType {
  kAssetManager,
  kApkAssetProvider,
  kDirectoryAssetBundle
}
 Identifies the type of AssetResolver an instance is. More...
 

Detailed Description

Definition at line 16 of file directory_asset_bundle.h.

Constructor & Destructor Documentation

◆ DirectoryAssetBundle()

flutter::DirectoryAssetBundle::DirectoryAssetBundle ( fml::UniqueFD  descriptor,
bool  is_valid_after_asset_manager_change 
)

Definition at line 17 of file directory_asset_bundle.cc.

References FML_DLOG, FML_LOG, fml::IsDirectory(), fml::kRead, fml::OpenFile(), fml::OpenFileReadOnly(), TRACE_EVENT0, fml::VisitFiles(), fml::VisitFilesRecursively(), and ~DirectoryAssetBundle().

20  : descriptor_(std::move(descriptor)) {
21  if (!fml::IsDirectory(descriptor_)) {
22  return;
23  }
24  is_valid_after_asset_manager_change_ = is_valid_after_asset_manager_change;
25  is_valid_ = true;
26 }
bool IsDirectory(const fml::UniqueFD &directory)
Definition: file_posix.cc:126

◆ ~DirectoryAssetBundle()

flutter::DirectoryAssetBundle::~DirectoryAssetBundle ( )
overridedefault

Referenced by DirectoryAssetBundle().


The documentation for this class was generated from the following files: