class LifecycleController
Defined at line 12655 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/hlcpp/fuchsia/sys2/cpp/fidl.h
Mutates the component instance state in a realm.
Public Members
static const char[] Name_
Public Methods
void ~LifecycleController ()
void StartInstance (::std::stringmoniker,::fidl::InterfaceRequest< ::fuchsia::component::Binder>binder,StartInstanceCallbackcallback)
Starts the instance identified by the given moniker. Relative
monikers must start with "./".
The client can pass in the server end of a channel
for the fuchsia.component.Binder protocol. This protocol
will notify the client when the instance has stopped.
The function returns once the instance has been started. Calling
StartInstance() when the instance is already running is a no-op, but
it will connect the Binder channel if a valid handle is provided.
void StartInstanceWithArgs (::std::stringmoniker,::fidl::InterfaceRequest< ::fuchsia::component::Binder>binder,::fuchsia::component::StartChildArgsargs,StartInstanceWithArgsCallbackcallback)
void StopInstance (::std::string moniker, StopInstanceCallback callback)
Stops the instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the instance has been stopped.
void ResolveInstance (::std::string moniker, ResolveInstanceCallback callback)
Resolves the instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the instance has been resolved.
void UnresolveInstance (::std::string moniker, UnresolveInstanceCallback callback)
Unresolves the component designated by the provided moniker. Relative
monikers must start with "./".
The function returns once the instance has been unresolved.
void CreateInstance (::std::stringparent_moniker,::fuchsia::component::decl::CollectionRefcollection,::fuchsia::component::decl::Childdecl,::fuchsia::component::CreateChildArgsargs,CreateInstanceCallbackcallback)
Creates a new child instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the child instance has been added to the topology.
void DestroyInstance (::std::stringparent_moniker,::fuchsia::component::decl::ChildRefchild,DestroyInstanceCallbackcallback)
Destroys the instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the child instance no longer exists in the topology.