BNBHandTracker

Objective-C

@interface BNBHandTracker : NSObject

/**
 *Fabric method for hand creating.
 *@return created (hand_tracker).
 */
+ (nullable BNBHandTracker *)create;

/**
 *Sets hand to hand tracker.
 *@param hand (hand): hand asset
 */
- (void)setHand:(nullable BNBHand *)hand;

/**@return hand (hand): hand asset */
- (nullable BNBHand *)getHand;

/**@return tracker type. Can be hand_skelet or ring */
- (BNBHandTrackerType)getType;

/**@return tracker type. Can be hand_skelet or ring */
- (void)setType:(BNBHandTrackerType)type;

/**@return upcast to base type */
- (nullable BNBComponent *)asComponent;

@end

Swift

class BNBHandTracker : NSObject

Undocumented

  • Fabric method for hand creating.

    Declaration

    Objective-C

    + (nullable BNBHandTracker *)create;

    Swift

    class func create() -> BNBHandTracker?

    Return Value

    created (hand_tracker).

  • Sets hand to hand tracker.

    Declaration

    Objective-C

    - (void)setHand:(nullable BNBHand *)hand;

    Swift

    func setHand(_ hand: BNBHand?)

    Parameters

    hand

    (hand): hand asset

  • Declaration

    Objective-C

    - (nullable BNBHand *)getHand;

    Swift

    func getHand() -> BNBHand?

    Return Value

    hand (hand): hand asset

  • Declaration

    Objective-C

    - (BNBHandTrackerType)getType;

    Swift

    func getType() -> BNBHandTrackerType

    Return Value

    tracker type. Can be hand_skelet or ring

  • Declaration

    Objective-C

    - (void)setType:(BNBHandTrackerType)type;

    Swift

    func setType(_ type: BNBHandTrackerType)

    Return Value

    tracker type. Can be hand_skelet or ring

  • Declaration

    Objective-C

    - (nullable BNBComponent *)asComponent;

    Swift

    func asComponent() -> BNBComponent?

    Return Value

    upcast to base type