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. API-Since: 13.0
    • Method Detail

      • attributesForDynamicParameterError

        @Nullable
        @Nullable CHHapticParameterAttributes attributesForDynamicParameterError​(@NotNull
                                                                                 @NotNull java.lang.String inParameter,
                                                                                 @Nullable
                                                                                 @Nullable 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

        @Nullable
        @Nullable CHHapticParameterAttributes attributesForEventParameterEventTypeError​(@NotNull
                                                                                        @NotNull java.lang.String inParameter,
                                                                                        @NotNull
                                                                                        @NotNull java.lang.String type,
                                                                                        @Nullable
                                                                                        @Nullable 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.