public interface CHHapticDeviceCapability
A protocol which defines properties describing haptics and audio capabilities for a particular device. These properties include limitations and ranges of parameters.
| Modifier and Type | Method and Description |
|---|---|
CHHapticParameterAttributes |
attributesForDynamicParameterError(java.lang.String inParameter,
org.moe.natj.general.ptr.Ptr<NSError> outError)
attributesForEventParameter:
|
CHHapticParameterAttributes |
attributesForEventParameterEventTypeError(java.lang.String inParameter,
java.lang.String type,
org.moe.natj.general.ptr.Ptr<NSError> outError)
attributesForEventParameter:
|
boolean |
supportsAudio()
[@property] supportsAudio
|
boolean |
supportsHaptics()
[@property] supportsHaptics
|
CHHapticParameterAttributes attributesForDynamicParameterError(java.lang.String inParameter, org.moe.natj.general.ptr.Ptr<NSError> outError)
Return information about the given CHHapticDynamicParameter.
These values may vary across different device types.
inParameter - A CHHapticDynamicParameter to be queried.outError - If the operation fails, this will be set to a valid NSError describing the error.CHHapticParameterAttributes attributesForEventParameterEventTypeError(java.lang.String inParameter, java.lang.String type, org.moe.natj.general.ptr.Ptr<NSError> outError)
Return information about the given CHHapticEventParameter as it applies to the specified event type.
These values may vary across different device types.
inParameter - A CHHapticEventParameter to be queried.type - A CHHapticEventType to be queried.outError - If the operation fails, this will be set to a valid NSError describing the error.boolean supportsAudio()
Returns YES if the hardware supports audio event playback.
boolean supportsHaptics()
Returns YES if the hardware supports haptic event playback.