public interface CHHapticPatternPlayer
A protocol which defines operations for starting, stopping, and sending parameters to a pattern player.
Instances of these objects are created via the factory methods such as `CHHapticEngine(createPlayerWithPattern:error)`.
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelAndReturnError(org.moe.natj.general.ptr.Ptr<NSError> outError)
cancelAndReturnError:
|
boolean |
isMuted()
[@property] isMuted
|
boolean |
scheduleParameterCurveAtTimeError(CHHapticParameterCurve parameterCurve,
double time,
org.moe.natj.general.ptr.Ptr<NSError> outError)
scheduleParameterCurve:atTime:error
|
boolean |
sendParametersAtTimeError(NSArray<? extends CHHapticDynamicParameter> parameters,
double time,
org.moe.natj.general.ptr.Ptr<NSError> outError)
sendParameters:atTime:error
|
void |
setIsMuted(boolean value)
[@property] isMuted
|
boolean |
startAtTimeError(double time,
org.moe.natj.general.ptr.Ptr<NSError> outError)
startAtTime:error
|
boolean |
stopAtTimeError(double time,
org.moe.natj.general.ptr.Ptr<NSError> outError)
stopAtTime:error
|
boolean cancelAndReturnError(org.moe.natj.general.ptr.Ptr<NSError> outError)
Removes all pending commands and stops the player as soon as possible.
boolean isMuted()
When set to YES, the player's audio and haptic output will be silenced.
boolean scheduleParameterCurveAtTimeError(CHHapticParameterCurve parameterCurve, double time, org.moe.natj.general.ptr.Ptr<NSError> outError)
Schedule a CHHapticParameterCurve, starting at the specified time (see `CHHapticEngine(currentTime)`). If 'time' is set to `CHHapticTimeImmediate`, the parameter curve is scheduled as soon as possible.
This method overrides the relativeTime property of the passed-in CHHapticParameterCurve, setting it to this method's 'time' argument. All the curve's control point times will then be calculated relative to that time.
boolean sendParametersAtTimeError(NSArray<? extends CHHapticDynamicParameter> parameters, double time, org.moe.natj.general.ptr.Ptr<NSError> outError)
Send an array of CHHapticDynamicParameters, starting at the specified time (see `CHHapticEngine(currentTime)`). If 'time' is set to `CHHapticTimeImmediate`, the parameters are sent as soon as possible.
void setIsMuted(boolean value)
When set to YES, the player's audio and haptic output will be silenced.
boolean startAtTimeError(double time,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Start playing the pattern at the specified time (see `CHHapticEngine(currentTime)`). If 'time' is set to `CHHapticTimeImmediate`, the pattern is started as soon as possible.
boolean stopAtTimeError(double time,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Stop playing the pattern at the specified time (see `CHHapticEngine(currentTime)`). If 'time' is set to `CHHapticTimeImmediate`, the pattern is stopped as soon as possible.