class LifecycleController

Defined at line 12611 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::string moniker, ::fidl::InterfaceRequest< ::fuchsia::component::Binder> binder, StartInstanceCallback callback)

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::string moniker, ::fidl::InterfaceRequest< ::fuchsia::component::Binder> binder, ::fuchsia::component::StartChildArgs args, StartInstanceWithArgsCallback callback)
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::string parent_moniker, ::fuchsia::component::decl::CollectionRef collection, ::fuchsia::component::decl::Child decl, ::fuchsia::component::CreateChildArgs args, CreateInstanceCallback callback)

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::string parent_moniker, ::fuchsia::component::decl::ChildRef child, DestroyInstanceCallback callback)

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.