register_lazy_service

Function register_lazy_service 

Source
pub fn register_lazy_service(
    identifier: &str,
    binder: SpIBinder,
) -> Result<(), StatusCode>
Expand description

Register a dynamic service via the LazyServiceRegistrar.

Registers the given binder object with the given identifier. If successful, this service can then be retrieved using that identifier. The service process will be shut down once all registered services are no longer in use.

If any service in the process is registered as lazy, all should be, otherwise the process may be shut down while a service is in use.

This function will panic if the identifier contains a 0 byte (NUL).