PlayHapticCommand
public struct PlayHapticCommand : CommandRequest
                Command to request the Gear plays a haptic pattern.
Note that the only gear Components (not the tag Component) support haptics.
See also
Commands
See also
Components and Gear
- 
                  
                  
Available haptic patterns.
See moreDeclaration
Swift
public enum HapticPatternType : Int - 
                  
                  
Errors that can occur when playing Haptic patterns.
See moreDeclaration
 - 
                  
                  
PlayHapticCommand response value is an empty Void to indicate success.
Declaration
Swift
public typealias Response = Void - 
                  
                  
Creates a
PlayHapticCommandinstance.Throws
if the component does not support haptic.Declaration
Swift
public init(frame: HapticFrame, component: Component) throwsParameters
frameConfiguration to play a haptic on the Gear.
componentAn object that holds information of a Tag or Interposser.
 - 
                  
                  
Configuration for haptic frame.
See moreDeclaration
Swift
public struct HapticFrame 
            View on GitHub
          
      PlayHapticCommand Structure Reference