blob: 4ddac3f8a451c308f8e9a76758f043620bed370d [file] [log] [blame] [view]
# ServiceProviderImpl class
*[<Null safety>](https://dart.dev/null-safety)*
<p>The <a href="../package-fuchsia_services_services/ServiceProviderImpl-class.md">ServiceProviderImpl</a> is a concrete implementation of the
<code>fidl_fuchsia_sys.ServiceProvider</code> interface.</p>
## Constructors
[ServiceProviderImpl](../package-fuchsia_services_services/ServiceProviderImpl/ServiceProviderImpl.md) ()
## Properties
##### [hashCode](../package-fuchsia_services_services/ServiceProviderImpl/hashCode.md) &#8594; int
The hash code for this object.
_<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_
##### [runtimeType](../package-fuchsia_services_services/ServiceProviderImpl/runtimeType.md) &#8594; Type
A representation of the runtime type of the object.
_<span class="feature read-only">read-only</span><span class="feature inherited">inherited</span>_
## Methods
##### [addServiceForName](../package-fuchsia_services_services/ServiceProviderImpl/addServiceForName.md)&lt;T>(void connector([InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md)&lt;T>), String serviceName) void
Registers the <code>connector</code> function with the given <code>serviceName</code>. The
<code>connector</code> function is invoked when the service provider is asked by
the framework to connect to the service in the <a href="../package-fuchsia_services_services/ServiceProviderImpl/connectToService.md">connectToService</a> method.
##### [bind](../package-fuchsia_services_services/ServiceProviderImpl/bind.md)([InterfaceRequest](../package-fidl_fidl/InterfaceRequest-class.md) interfaceRequest) void
Binds this object to the <code>interfaceRequest</code>.
##### [close](../package-fuchsia_services_services/ServiceProviderImpl/close.md)() void
Closes the connection to the underlying binding.
##### [connectToService](../package-fuchsia_services_services/ServiceProviderImpl/connectToService.md)(String serviceName, [Channel](../zircon/Channel-class.md)? channel) Future&lt;void>
See <code>fidl_fuchsia_sys.ServiceProvider#connectToService</code>.
##### [noSuchMethod](../package-fuchsia_services_services/ServiceProviderImpl/noSuchMethod.md)(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
_<span class="feature inherited">inherited</span>_
##### [toString](../package-fuchsia_services_services/ServiceProviderImpl/toString.md)() String
A string representation of this object.
_<span class="feature inherited">inherited</span>_
## Operators
##### [operator ==](../package-fuchsia_services_services/ServiceProviderImpl/operator_equals.md)(Object other) bool
The equality operator.
_<span class="feature inherited">inherited</span>_