Google is committed to advancing racial equity for Black communities. See how.

addPublicService<T> method

*[<Null safety>](*

int addPublicService <T>(Connector<T> connector, String serviceName)

Add and publish a public service. Will return ZX_OK if successful, else will return error status.


int addPublicService<T>(vfs.Connector<T> connector, String serviceName) {
  var service = vfs.Service.withConnector(connector);
  int status = _public.addNode(serviceName, service);
  return status;