Marked designated initializers

This commit is contained in:
Prianka Liz Kariat 2022-12-22 00:49:24 +05:30
parent ff901a80a5
commit ae28948ca1
2 changed files with 3 additions and 2 deletions

View File

@ -55,7 +55,7 @@ NS_ASSUME_NONNULL_BEGIN
outputStreams:(NSArray<NSString *> *)outputStreams
taskOptions:(id<MPPTaskOptionsProtocol>)taskOptions
enableFlowLimiting:(BOOL)enableFlowLimiting
error:(NSError **)error;
error:(NSError **)error NS_DESIGNATED_INITIALIZER;
/**
* Creates a MediaPipe Task protobuf message from the MPPTaskInfo instance.

View File

@ -24,6 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
* This class is used to create and call appropriate methods on the C++ Task Runner.
*/
@interface MPPTaskRunner : NSObject
/**
* Initializes a new `MPPTaskRunner` with the mediapipe task graph config proto.
*
@ -32,7 +33,7 @@ NS_ASSUME_NONNULL_BEGIN
* @return An instance of `MPPTaskRunner` initialized to the given graph config proto.
*/
- (instancetype)initWithCalculatorGraphConfig:(mediapipe::CalculatorGraphConfig)graphConfig
error:(NSError **)error;
error:(NSError **)error NS_DESIGNATED_INITIALIZER;
- (absl::StatusOr<mediapipe::tasks::core::PacketMap>)process:(const mediapipe::tasks::core::PacketMap&)packetMap error:(NSError **)error;