GRPC Objective-C  1.26.0
Class Methods
GRPCCall2(Interceptor) Category Reference

The interface for gRPC global interceptor. More...

#import <GRPCCall+Interceptor.h>

Class Methods

(void) + registerGlobalInterceptor:
 Register a global interceptor's factory in the current process. More...
 
(nullable id< GRPCInterceptorFactory >) + globalInterceptorFactory
 Get the global interceptor's factory object. More...
 

Detailed Description

The interface for gRPC global interceptor.

See also
GRPCInterceptor

Method Documentation

◆ globalInterceptorFactory

+ (nullable id<GRPCInterceptorFactory>) globalInterceptorFactory

Get the global interceptor's factory object.

Extends class GRPCCall2.

◆ registerGlobalInterceptor:

+ (void) registerGlobalInterceptor: (nonnull id< GRPCInterceptorFactory >)  interceptorFactory

Register a global interceptor's factory in the current process.

Only one interceptor can be registered in a process. If another one attempts to be registered, an exception will be raised.

Parameters
[in]interceptorFactoryThe factory object that generates the global interceptor for each call.

Extends class GRPCCall2.


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