binder

Function add_service

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

Register a new service with the default service manager.

Registers the given binder object with the given identifier. If successful, this service can then be retrieved using that identifier.

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