Updated property types in MPPGestureRecognizerResult

This commit is contained in:
Prianka Liz Kariat 2023-05-17 21:50:11 +05:30
parent 4f8520af10
commit ae2901459d
2 changed files with 9 additions and 9 deletions

View File

@ -25,7 +25,7 @@ NS_SWIFT_NAME(GestureRecognizerResult)
@interface MPPGestureRecognizerResult : MPPTaskResult @interface MPPGestureRecognizerResult : MPPTaskResult
/** Hand landmarks of detected hands. */ /** Hand landmarks of detected hands. */
@property(nonatomic, readonly) NSArray<NSArray<MPPLandmark *> *> *landmarks; @property(nonatomic, readonly) NSArray<NSArray<MPPNormalizedLandmark *> *> *landmarks;
/** Hand landmarks in world coordniates of detected hands. */ /** Hand landmarks in world coordniates of detected hands. */
@property(nonatomic, readonly) NSArray<NSArray<MPPLandmark *> *> *worldLandmarks; @property(nonatomic, readonly) NSArray<NSArray<MPPLandmark *> *> *worldLandmarks;
@ -54,10 +54,10 @@ NS_SWIFT_NAME(GestureRecognizerResult)
* landmarks, handedness and gestures. * landmarks, handedness and gestures.
* *
*/ */
- (instancetype)initWithLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)landmarks - (instancetype)initWithGestures:(NSArray<NSArray<MPPCategory *> *> *)gestures
worldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
handedness:(NSArray<NSArray<MPPCategory *> *> *)handedness handedness:(NSArray<NSArray<MPPCategory *> *> *)handedness
gestures:(NSArray<NSArray<MPPCategory *> *> *)gestures landmarks:(NSArray<NSArray<MPPNormalizedLandmark *> *> *)landmarks
worldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
timestampInMilliseconds:(NSInteger)timestampInMilliseconds; timestampInMilliseconds:(NSInteger)timestampInMilliseconds;
@end @end

View File

@ -16,10 +16,10 @@
@implementation MPPGestureRecognizerResult @implementation MPPGestureRecognizerResult
- (instancetype)initWithLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)landmarks - (instancetype)initWithGestures:(NSArray<NSArray<MPPCategory *> *> *)gestures
worldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
handedness:(NSArray<NSArray<MPPCategory *> *> *)handedness handedness:(NSArray<NSArray<MPPCategory *> *> *)handedness
gestures:(NSArray<NSArray<MPPCategory *> *> *)gestures landmarks:(NSArray<NSArray<MPPNormalizedLandmark *> *> *)landmarks
worldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
timestampInMilliseconds:(NSInteger)timestampInMilliseconds { timestampInMilliseconds:(NSInteger)timestampInMilliseconds {
self = [super initWithTimestampInMilliseconds:timestampInMilliseconds]; self = [super initWithTimestampInMilliseconds:timestampInMilliseconds];
if (self) { if (self) {