Google celebrates Hispanic Heritage Month. See how.

request method

InterfaceRequest<T> request ()

Creates an interface request whose peer is bound to this interface proxy.

Creates a channel pair, binds one of the channels to this object, and returns the other channel. Calls to the proxy will be encoded as messages and sent to the returned channel.

The proxy must not already have been bound.


InterfaceRequest<T> request() {
  ChannelPair pair = ChannelPair();
  assert(pair.status == ZX.OK);

  final callback = onBind;
  if (callback != null) {

  return InterfaceRequest<T>(pair.second);