SDLHapticRect Class Reference

Section Contents

Overview

Defines spatial for each user control object for video streaming application

-initWithId:rect:

Convenience init with all parameters

Objective-C

- (nonnull instancetype)initWithId:(UInt32)id rect:(nonnull SDLRectangle *)rect;

Swift

init(id: UInt32, rect: SDLRectangle)

Parameters

id

A user control spatial identifier

rect

The position of the haptic rectangle to be highlighted. The center of this rectangle will be “touched” when a press occurs

Return Value

An SDLHapticRect object

id

A user control spatial identifier

Required, Integer, 0 - 2,000,000,000

Objective-C

@property (nonatomic, strong) NSNumber<SDLUInt> *_Nonnull id;

Swift

var id: NSNumber & SDLUInt { get set }

rect

The position of the haptic rectangle to be highlighted. The center of this rectangle will be “touched” when a press occurs.

Required

Objective-C

@property (nonatomic, strong) SDLRectangle *_Nonnull rect;

Swift

var rect: SDLRectangle { get set }