GRPC Objective-C  1.73.0
Instance Methods | Properties
<GRPCProtoResponseHandler> Protocol Reference

An object can implement this protocol to receive responses from server from a call. More...

#import <ProtoRPC.h>

Instance Methods

(void) - didReceiveInitialMetadata:
 Issued when initial metadata is received from the server. More...
 
(void) - didReceiveProtoMessage:
 Issued when a message is received from the server. More...
 
(void) - didCloseWithTrailingMetadata:error:
 Issued when a call finished. More...
 
(void) - didWriteMessage
 Issued when flow control is enabled for the call and a message (written with writeMessage: method of GRPCStreamingProtoCall or the initializer of GRPCUnaryProtoCall) is passed to gRPC core with SEND_MESSAGE operation. More...
 

Properties

dispatch_queue_t dispatchQueue
 All the responses must be issued to a user-provided dispatch queue. More...
 

Detailed Description

An object can implement this protocol to receive responses from server from a call.

Method Documentation

◆ didCloseWithTrailingMetadata:error:

- (void) didCloseWithTrailingMetadata: (nullable NSDictionary *)  trailingMetadata
error: (nullable NSError *)  error 
optional

Issued when a call finished.

If the call finished successfully, error is nil and trailingMetadata consists any trailing metadata received from the server. Otherwise, error is non-nil and contains the corresponding error information, including gRPC error codes and error descriptions.

◆ didReceiveInitialMetadata:

- (void) didReceiveInitialMetadata: (nullable NSDictionary *)  initialMetadata
optional

Issued when initial metadata is received from the server.

◆ didReceiveProtoMessage:

- (void) didReceiveProtoMessage: (nullable GPBMessage *)  message
optional

Issued when a message is received from the server.

The message is the deserialized proto object.

◆ didWriteMessage

- (void) didWriteMessage
optional

Issued when flow control is enabled for the call and a message (written with writeMessage: method of GRPCStreamingProtoCall or the initializer of GRPCUnaryProtoCall) is passed to gRPC core with SEND_MESSAGE operation.

Property Documentation

◆ dispatchQueue

- (dispatch_queue_t) dispatchQueue
readrequiredatomicassign

All the responses must be issued to a user-provided dispatch queue.

This property specifies the dispatch queue to be used for issuing the notifications.


The documentation for this protocol was generated from the following file: