Updated delegate method to be optional
This commit is contained in:
parent
8284732874
commit
0225139a98
|
@ -29,11 +29,10 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
*
|
||||
* The delegate of `MPPImageClassifier` must adopt `MPPImageClassifierDelegate` protocol.
|
||||
* The methods in this protocol are optional.
|
||||
* TODO: Add parameter `MPPImage` in the callback.
|
||||
*/
|
||||
NS_SWIFT_NAME(ImageClassifierDelegate)
|
||||
@protocol MPPImageClassifierDelegate <NSObject>
|
||||
@required
|
||||
@optional
|
||||
- (void)imageClassifier:(MPPImageClassifier *)imageClassifier
|
||||
didFinishClassificationWithResult:(nullable MPPImageClassifierResult *)result
|
||||
timestampInMilliseconds:(NSInteger)timestampInMilliseconds
|
||||
|
|
|
@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
* TODO: Add parameter `MPPImage` in the callback.
|
||||
*/
|
||||
@protocol MPPObjectDetectorDelegate <NSObject>
|
||||
@required
|
||||
@optional
|
||||
- (void)objectDetector:(MPPObjectDetector *)objectDetector
|
||||
didFinishDetectionWithResult:(nullable MPPObjectDetectionResult *)result
|
||||
timestampInMilliseconds:(NSInteger)timestampInMilliseconds
|
||||
|
|
Loading…
Reference in New Issue
Block a user