Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter_runner::IsolateConfigurator Class Referencefinal

#include <isolate_configurator.h>

Public Member Functions

 IsolateConfigurator (UniqueFDIONS fdio_ns, zx::channel directory_request, zx::eventpair view_ref)
 
 ~IsolateConfigurator ()
 
bool ConfigureCurrentIsolate ()
 

Detailed Description

Definition at line 18 of file isolate_configurator.h.

Constructor & Destructor Documentation

◆ IsolateConfigurator()

flutter_runner::IsolateConfigurator::IsolateConfigurator ( UniqueFDIONS  fdio_ns,
zx::channel  directory_request,
zx::eventpair  view_ref 
)

Definition at line 16 of file isolate_configurator.cc.

19 : fdio_ns_(std::move(fdio_ns)),
20 directory_request_(std::move(directory_request)),
21 view_ref_(std::move(view_ref)) {}

◆ ~IsolateConfigurator()

flutter_runner::IsolateConfigurator::~IsolateConfigurator ( )
default

Member Function Documentation

◆ ConfigureCurrentIsolate()

bool flutter_runner::IsolateConfigurator::ConfigureCurrentIsolate ( )

Definition at line 25 of file isolate_configurator.cc.

25 {
26 if (used_) {
27 return false;
28 }
29 used_ = true;
30
31 BindFuchsia();
32 BindZircon();
33 BindDartIO();
34
35 // This is now owned by the Dart bindings. So relinquish our ownership of the
36 // handle.
37 (void)fdio_ns_.release();
38
39 return true;
40}

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