Class CHHapticPattern

  • All Implemented Interfaces:
    NSObject

    public class CHHapticPattern
    extends NSObject
    CHHapticPattern A set of one or more haptic events and/or Dynamic parameters/parameter curves. The passed-in arrays' contents are not owned by the pattern object. Changes made to those arrays after a CHHapticPattern object is created have no effect on that object. API-Since: 13.0
    • Constructor Detail

      • CHHapticPattern

        protected CHHapticPattern​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CHHapticPattern allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • duration

        public double duration()
        [@property] duration Pattern duration is calculated as the start time of the pattern's last event or parameter, plus that event's duration if present.
      • exportDictionaryAndReturnError

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> exportDictionaryAndReturnError​(@Nullable
                                                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        exportDictionaryAndReturnError:error Returns a NSDictionary representation of the contents of the pattern. Patterns containing custom audio resource IDs cannot be exported and will return nil with the error code set to CHHapticErrorCodeOperationNotPermitted.
      • hash_static

        public static long hash_static()
      • initWithDictionaryError

        public CHHapticPattern initWithDictionaryError​(@NotNull
                                                       @NotNull NSDictionary<java.lang.String,​?> patternDict,
                                                       @Nullable
                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        initWithDictionary:error Initialize a new CHHapticPattern using the passed-in NSDictionary.
        Parameters:
        patternDict - NSDictionary containing a pattern property list.
      • initWithEventsParameterCurvesError

        public CHHapticPattern initWithEventsParameterCurvesError​(@NotNull
                                                                  @NotNull NSArray<? extends CHHapticEvent> events,
                                                                  @NotNull
                                                                  @NotNull NSArray<? extends CHHapticParameterCurve> parameterCurves,
                                                                  @Nullable
                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        initWithEvents:parameterCurves:error Initialize a new CHHapticPattern with parameters modulated by parameter curves.
        Parameters:
        events - An NSArray of CHHapticEvents. Can be empty.
        parameterCurves - An NSArray of CHHapticParameterCurves. Can be empty.
      • initWithEventsParametersError

        public CHHapticPattern initWithEventsParametersError​(@NotNull
                                                             @NotNull NSArray<? extends CHHapticEvent> events,
                                                             @NotNull
                                                             @NotNull NSArray<? extends CHHapticDynamicParameter> parameters,
                                                             @Nullable
                                                             @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        initWithEvents:parameters:error Initialize a new CHHapticPattern.
        Parameters:
        events - An NSArray of CHHapticEvents. Can be empty.
        parameters - An NSArray of CHHapticDynamicParameters. Can be empty.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • initWithContentsOfURLError

        public CHHapticPattern initWithContentsOfURLError​(@NotNull
                                                          @NotNull NSURL ahapURL,
                                                          @Nullable
                                                          @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        initWithContentsOfURL:error Initialize a new CHHapticPattern using the contents of the passed-in NSURL. This URL must reference a valid AHAP file. API-Since: 16.0
        Parameters:
        ahapURL - NSURL of an ahap file.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.