Interface CHHapticDeviceCapability


  • public interface CHHapticDeviceCapability
    [@protocol] CHHapticDeviceCapability A protocol which defines properties describing haptics and audio capabilities for a particular device. These properties include limitations and ranges of parameters.
    • Method Detail

      • attributesForDynamicParameterError

        CHHapticParameterAttributes attributesForDynamicParameterError​(java.lang.String inParameter,
                                                                       org.moe.natj.general.ptr.Ptr<NSError> outError)
        attributesForEventParameter: Return information about the given CHHapticDynamicParameter. These values may vary across different device types.
        Parameters:
        inParameter - A CHHapticDynamicParameter to be queried.
        outError - If the operation fails, this will be set to a valid NSError describing the error.
      • attributesForEventParameterEventTypeError

        CHHapticParameterAttributes attributesForEventParameterEventTypeError​(java.lang.String inParameter,
                                                                              java.lang.String type,
                                                                              org.moe.natj.general.ptr.Ptr<NSError> outError)
        attributesForEventParameter: Return information about the given CHHapticEventParameter as it applies to the specified event type. These values may vary across different device types.
        Parameters:
        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.
      • supportsAudio

        boolean supportsAudio()
        [@property] supportsAudio Returns YES if the hardware supports audio event playback.
      • supportsHaptics

        boolean supportsHaptics()
        [@property] supportsHaptics Returns YES if the hardware supports haptic event playback.