Package apple.homekit
Class HMEventTrigger
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.homekit.HMTrigger
-
- apple.homekit.HMEventTrigger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHMEventTrigger.Block_addEventCompletionHandlerstatic interfaceHMEventTrigger.Block_removeEventCompletionHandlerstatic interfaceHMEventTrigger.Block_updateEndEventsCompletionHandlerstatic interfaceHMEventTrigger.Block_updateEventsCompletionHandlerstatic interfaceHMEventTrigger.Block_updateExecuteOnceCompletionHandlerstatic interfaceHMEventTrigger.Block_updatePredicateCompletionHandlerstatic interfaceHMEventTrigger.Block_updateRecurrencesCompletionHandler-
Nested classes/interfaces inherited from class apple.homekit.HMTrigger
HMTrigger.Block_addActionSetCompletionHandler, HMTrigger.Block_enableCompletionHandler, HMTrigger.Block_removeActionSetCompletionHandler, HMTrigger.Block_updateNameCompletionHandler
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHMEventTrigger(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()voidaddEventCompletionHandler(@NotNull HMEvent event, @NotNull HMEventTrigger.Block_addEventCompletionHandler completion)Deprecated.static HMEventTriggeralloc()static HMEventTriggerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()@NotNull NSArray<? extends HMEvent>endEvents()The events that correspond to executing the restore of the scene before the trigger was executed.@NotNull NSArray<? extends HMEvent>events()The events associated with the trigger.booleanexecuteOnce()Specifies whether this trigger is executed only once after which the trigger is disabled.static longhash_static()HMEventTriggerinit()HMEventTriggerinitWithNameEventsEndEventsRecurrencesPredicate(@NotNull java.lang.String name, @NotNull NSArray<? extends HMEvent> events, @Nullable NSArray<? extends HMEvent> endEvents, @Nullable NSArray<? extends NSDateComponents> recurrences, @Nullable NSPredicate predicate)Initializes a new event trigger object.HMEventTriggerinitWithNameEventsPredicate(@NotNull java.lang.String name, @NotNull NSArray<? extends HMEvent> events, @Nullable NSPredicate predicate)Initializes a new event trigger object.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static HMEventTriggernew_objc()@Nullable NSPredicatepredicate()The predicate to evaluate before executing the action sets associated with the trigger.static @NotNull NSPredicatepredicateForEvaluatingTriggerOccurringAfterDateWithComponents(@NotNull NSDateComponents dateComponents)Creates a predicate that will evaluate whether the event occurred at or after the time specified.static @NotNull NSPredicatepredicateForEvaluatingTriggerOccurringAfterSignificantEvent(@NotNull HMSignificantTimeEvent significantEvent)Creates a predicate that will evaluate whether the event occurred after a significant event.static @NotNull NSPredicatepredicateForEvaluatingTriggerOccurringAfterSignificantEventApplyingOffset(@NotNull java.lang.String significantEvent, @Nullable NSDateComponents offset)Deprecated.static @NotNull NSPredicatepredicateForEvaluatingTriggerOccurringBeforeDateWithComponents(@NotNull NSDateComponents dateComponents)Creates a predicate that will evaluate whether the event occurred before the time specified.static @NotNull NSPredicatepredicateForEvaluatingTriggerOccurringBeforeSignificantEvent(@NotNull HMSignificantTimeEvent significantEvent)Creates a predicate that will evaluate whether the event occurred before a significant event.static @NotNull NSPredicatepredicateForEvaluatingTriggerOccurringBeforeSignificantEventApplyingOffset(@NotNull java.lang.String significantEvent, @Nullable NSDateComponents offset)Deprecated.static @NotNull NSPredicatepredicateForEvaluatingTriggerOccurringBetweenDateWithComponentsSecondDateWithComponents(@NotNull NSDateComponents firstDateComponents, @NotNull NSDateComponents secondDateWithComponents)Creates a predicate that will evaluate whether the event occurred between two times.static @NotNull NSPredicatepredicateForEvaluatingTriggerOccurringBetweenSignificantEventSecondSignificantEvent(@NotNull HMSignificantTimeEvent firstSignificantEvent, @NotNull HMSignificantTimeEvent secondSignificantEvent)Creates a predicate that will evaluate whether the event occurred between two significant events.static @NotNull NSPredicatepredicateForEvaluatingTriggerOccurringOnDateWithComponents(@NotNull NSDateComponents dateComponents)Creates a predicate that will evaluate whether the event occurred at the time specified.static @NotNull NSPredicatepredicateForEvaluatingTriggerWithCharacteristicRelatedByToValue(@NotNull HMCharacteristic characteristic, long operatorType, @NotNull java.lang.Object value)Creates a predicate that will evaluate whether a characteristic value is related to the specified value.static @NotNull NSPredicatepredicateForEvaluatingTriggerWithPresence(@NotNull HMPresenceEvent presenceEvent)Creates a predicate that will evaluate based on the presence event.@Nullable NSArray<? extends NSDateComponents>recurrences()recurrences Specifies the recurrences for when the trigger is evaluated.voidremoveEventCompletionHandler(@NotNull HMEvent event, @NotNull HMEventTrigger.Block_removeEventCompletionHandler completion)Deprecated.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()longtriggerActivationState()Specifies the current activation state of the trigger.voidupdateEndEventsCompletionHandler(@NotNull NSArray<? extends HMEvent> endEvents, @NotNull HMEventTrigger.Block_updateEndEventsCompletionHandler completion)Updates the set of events in the event trigger.voidupdateEventsCompletionHandler(@NotNull NSArray<? extends HMEvent> events, @NotNull HMEventTrigger.Block_updateEventsCompletionHandler completion)Updates the set of events in the event trigger.voidupdateExecuteOnceCompletionHandler(boolean executeOnce, @NotNull HMEventTrigger.Block_updateExecuteOnceCompletionHandler completion)This method is used to update whether the event trigger repeats or not.voidupdatePredicateCompletionHandler(@Nullable NSPredicate predicate, @NotNull HMEventTrigger.Block_updatePredicateCompletionHandler completion)This method replaces the predicate used to evaluate execution of the action sets associated with the trigger.voidupdateRecurrencesCompletionHandler(@Nullable NSArray<? extends NSDateComponents> recurrences, @NotNull HMEventTrigger.Block_updateRecurrencesCompletionHandler completion)This method replaces the recurrences which secifies the days of the week when the trigger is to be evaluated.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.homekit.HMTrigger
actionSets, addActionSetCompletionHandler, enableCompletionHandler, isEnabled, lastFireDate, name, removeActionSetCompletionHandler, uniqueIdentifier, updateNameCompletionHandler
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static HMEventTrigger alloc()
-
allocWithZone
public static HMEventTrigger 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()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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)
-
new_objc
public static HMEventTrigger new_objc()
-
predicateForEvaluatingTriggerOccurringAfterDateWithComponents
@NotNull public static @NotNull NSPredicate predicateForEvaluatingTriggerOccurringAfterDateWithComponents(@NotNull @NotNull NSDateComponents dateComponents)
Creates a predicate that will evaluate whether the event occurred at or after the time specified.- Parameters:
dateComponents- Date components representing the time to compare against when the event occurs.- Returns:
- Predicate object representing a condition to evaluate before executing the action set.
-
predicateForEvaluatingTriggerOccurringAfterSignificantEventApplyingOffset
@NotNull @Deprecated public static @NotNull NSPredicate predicateForEvaluatingTriggerOccurringAfterSignificantEventApplyingOffset(@NotNull @NotNull java.lang.String significantEvent, @Nullable @Nullable NSDateComponents offset)
Deprecated.Creates a predicate that will evaluate whether the event occurred after a significant event.- Parameters:
significantEvent- The significant event to compare against. The valid values are: HMSignificantEventSunrise and HMSignificantEventSunset.offset- An offset from the time of the signficant event. To specify an offset after the significant event, the properties of the NSDateComponents must be positive value. e.g. To specify 30 mins after sunset, the 'minute' property must be set to 30.- Returns:
- Predicate object representing a condition to evaluate before executing the action set. API-Since: 9.0 Deprecated-Since: 11.0 Deprecated-Message: Use predicateForEvaluatingTriggerOccurringAfterSignificantEvent: instead
-
predicateForEvaluatingTriggerOccurringBeforeDateWithComponents
@NotNull public static @NotNull NSPredicate predicateForEvaluatingTriggerOccurringBeforeDateWithComponents(@NotNull @NotNull NSDateComponents dateComponents)
Creates a predicate that will evaluate whether the event occurred before the time specified.- Parameters:
dateComponents- Date components representing the time to compare against when the event occurs.- Returns:
- Predicate object representing a condition to evaluate before executing the action set.
-
predicateForEvaluatingTriggerOccurringBeforeSignificantEventApplyingOffset
@NotNull @Deprecated public static @NotNull NSPredicate predicateForEvaluatingTriggerOccurringBeforeSignificantEventApplyingOffset(@NotNull @NotNull java.lang.String significantEvent, @Nullable @Nullable NSDateComponents offset)
Deprecated.Creates a predicate that will evaluate whether the event occurred before a significant event.- Parameters:
significantEvent- The significant event to compare against. The valid values are: HMSignificantEventSunrise and HMSignificantEventSunset.offset- An offset from the time of the signficant event. To specify an offset before the significant event, the properties of the NSDateComponents must be negative value. e.g. To specify 30 mins before sunset, the 'minute' property must be set to -30.- Returns:
- Predicate object representing a condition to evaluate before executing the action set. API-Since: 9.0 Deprecated-Since: 11.0 Deprecated-Message: Use predicateForEvaluatingTriggerOccurringBeforeSignificantEvent: instead
-
predicateForEvaluatingTriggerOccurringOnDateWithComponents
@NotNull public static @NotNull NSPredicate predicateForEvaluatingTriggerOccurringOnDateWithComponents(@NotNull @NotNull NSDateComponents dateComponents)
Creates a predicate that will evaluate whether the event occurred at the time specified.- Parameters:
dateComponents- Date components representing the time to compare against when the event occurs.- Returns:
- Predicate object representing a condition to evaluate before executing the action set.
-
predicateForEvaluatingTriggerWithCharacteristicRelatedByToValue
@NotNull public static @NotNull NSPredicate predicateForEvaluatingTriggerWithCharacteristicRelatedByToValue(@NotNull @NotNull HMCharacteristic characteristic, long operatorType, @NotNull @NotNull java.lang.Object value)
Creates a predicate that will evaluate whether a characteristic value is related to the specified value.- Parameters:
characteristic- The characteristic that is evaluated as part of the predicate.operatorType- The relation between the characteristic and the target value. This can be either Less Than, Greater Than, Less Than or Equal, Greater Than or Equal, Equal, or Not Equal. Anything else will cause an exception to be thrown.value- The value of the characteristic to compare when evaluating the predicate.- Returns:
- Predicate object representing a condition to evaluate before executing the action set.
-
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()
-
addEventCompletionHandler
@Deprecated public void addEventCompletionHandler(@NotNull @NotNull HMEvent event, @NotNull @NotNull HMEventTrigger.Block_addEventCompletionHandler completion)Deprecated.Adds a new event to the event trigger.- Parameters:
event- Event to add to the event trigger.completion- Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success. API-Since: 9.0 Deprecated-Since: 11.0 Deprecated-Message: Use updateEvents:completionHandler: instead
-
events
@NotNull public @NotNull NSArray<? extends HMEvent> events()
The events associated with the trigger.
-
init
public HMEventTrigger init()
-
initWithNameEventsPredicate
public HMEventTrigger initWithNameEventsPredicate(@NotNull @NotNull java.lang.String name, @NotNull @NotNull NSArray<? extends HMEvent> events, @Nullable @Nullable NSPredicate predicate)
Initializes a new event trigger object.- Parameters:
name- Name of the event trigger.events- Array of events that can trigger the evaluation of the trigger. Note: The trigger will be evaluated if any one of the events is true.predicate- The predicate to evaluate before executing any of the actions sets associated to this event.- Returns:
- Instance object representing the event trigger.
-
predicate
@Nullable public @Nullable NSPredicate predicate()
The predicate to evaluate before executing the action sets associated with the trigger.
-
removeEventCompletionHandler
@Deprecated public void removeEventCompletionHandler(@NotNull @NotNull HMEvent event, @NotNull @NotNull HMEventTrigger.Block_removeEventCompletionHandler completion)Deprecated.Removes the specified event from the event trigger.- Parameters:
event- Event to remove from the event trigger.completion- Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success. API-Since: 9.0 Deprecated-Since: 11.0 Deprecated-Message: Use updateEvents:completionHandler: instead
-
updatePredicateCompletionHandler
public void updatePredicateCompletionHandler(@Nullable @Nullable NSPredicate predicate, @NotNull @NotNull HMEventTrigger.Block_updatePredicateCompletionHandler completion)This method replaces the predicate used to evaluate execution of the action sets associated with the trigger.- Parameters:
predicate- The new predicate for the event trigger.completion- Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success.
-
endEvents
@NotNull public @NotNull NSArray<? extends HMEvent> endEvents()
The events that correspond to executing the restore of the scene before the trigger was executed. E.g. Execute the scene for 10 mins and restore original state is achieved by specifying a corresponding HMDurationEvent in the list of endEvents. API-Since: 11.0
-
executeOnce
public boolean executeOnce()
Specifies whether this trigger is executed only once after which the trigger is disabled. API-Since: 11.0
-
initWithNameEventsEndEventsRecurrencesPredicate
public HMEventTrigger initWithNameEventsEndEventsRecurrencesPredicate(@NotNull @NotNull java.lang.String name, @NotNull @NotNull NSArray<? extends HMEvent> events, @Nullable @Nullable NSArray<? extends HMEvent> endEvents, @Nullable @Nullable NSArray<? extends NSDateComponents> recurrences, @Nullable @Nullable NSPredicate predicate)
Initializes a new event trigger object.- Parameters:
name- Name of the event trigger.events- Array of events that can trigger the evaluation of the trigger. Note: The trigger will be evaluated if any one of the events is true.endEvents- Array of end events that can trigger the restoration to the state before the scene was run.recurrences- Specifies the days of the week when the trigger is to be evaluated. Only the 'weekday' property is honored in NSDateComponents.predicate- The predicate to evaluate before executing any of the actions sets associated to this event.- Returns:
- Instance object representing the event trigger. API-Since: 11.0
-
predicateForEvaluatingTriggerOccurringAfterSignificantEvent
@NotNull public static @NotNull NSPredicate predicateForEvaluatingTriggerOccurringAfterSignificantEvent(@NotNull @NotNull HMSignificantTimeEvent significantEvent)
Creates a predicate that will evaluate whether the event occurred after a significant event.- Parameters:
significantEvent- The significant event to compare against.- Returns:
- Predicate object representing a condition to evaluate before executing the action set. API-Since: 11.0
-
predicateForEvaluatingTriggerOccurringBeforeSignificantEvent
@NotNull public static @NotNull NSPredicate predicateForEvaluatingTriggerOccurringBeforeSignificantEvent(@NotNull @NotNull HMSignificantTimeEvent significantEvent)
Creates a predicate that will evaluate whether the event occurred before a significant event.- Parameters:
significantEvent- The significant event to compare against.- Returns:
- Predicate object representing a condition to evaluate before executing the action set. API-Since: 11.0
-
predicateForEvaluatingTriggerOccurringBetweenDateWithComponentsSecondDateWithComponents
@NotNull public static @NotNull NSPredicate predicateForEvaluatingTriggerOccurringBetweenDateWithComponentsSecondDateWithComponents(@NotNull @NotNull NSDateComponents firstDateComponents, @NotNull @NotNull NSDateComponents secondDateWithComponents)
Creates a predicate that will evaluate whether the event occurred between two times.- Parameters:
firstDateComponents- The first date component.secondDateWithComponents- The second date component.- Returns:
- Predicate object representing a condition to evaluate before executing the action set. API-Since: 11.0
-
predicateForEvaluatingTriggerOccurringBetweenSignificantEventSecondSignificantEvent
@NotNull public static @NotNull NSPredicate predicateForEvaluatingTriggerOccurringBetweenSignificantEventSecondSignificantEvent(@NotNull @NotNull HMSignificantTimeEvent firstSignificantEvent, @NotNull @NotNull HMSignificantTimeEvent secondSignificantEvent)
Creates a predicate that will evaluate whether the event occurred between two significant events.- Parameters:
firstSignificantEvent- The first significant event.secondSignificantEvent- The second significant event.- Returns:
- Predicate object representing a condition to evaluate before executing the action set. API-Since: 11.0
-
predicateForEvaluatingTriggerWithPresence
@NotNull public static @NotNull NSPredicate predicateForEvaluatingTriggerWithPresence(@NotNull @NotNull HMPresenceEvent presenceEvent)
Creates a predicate that will evaluate based on the presence event.- Parameters:
presenceEvent- The presenceEvent that is evaluated as part of the predicate.- Returns:
- Predicate object representing a condition to evaluate before executing the action set. API-Since: 11.0
-
recurrences
@Nullable public @Nullable NSArray<? extends NSDateComponents> recurrences()
recurrences Specifies the recurrences for when the trigger is evaluated. This only supports days of the week. API-Since: 11.0
-
triggerActivationState
public long triggerActivationState()
Specifies the current activation state of the trigger. API-Since: 11.0
-
updateEndEventsCompletionHandler
public void updateEndEventsCompletionHandler(@NotNull @NotNull NSArray<? extends HMEvent> endEvents, @NotNull @NotNull HMEventTrigger.Block_updateEndEventsCompletionHandler completion)Updates the set of events in the event trigger.- Parameters:
endEvents- Events to update in the event triggercompletion- Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success. API-Since: 11.0
-
updateEventsCompletionHandler
public void updateEventsCompletionHandler(@NotNull @NotNull NSArray<? extends HMEvent> events, @NotNull @NotNull HMEventTrigger.Block_updateEventsCompletionHandler completion)Updates the set of events in the event trigger.- Parameters:
events- Events to update in the event triggercompletion- Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success. API-Since: 11.0
-
updateExecuteOnceCompletionHandler
public void updateExecuteOnceCompletionHandler(boolean executeOnce, @NotNull @NotNull HMEventTrigger.Block_updateExecuteOnceCompletionHandler completion)This method is used to update whether the event trigger repeats or not.- Parameters:
executeOnce- Specifies whether the event trigger is repeated or not.completion- Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success. API-Since: 11.0
-
updateRecurrencesCompletionHandler
public void updateRecurrencesCompletionHandler(@Nullable @Nullable NSArray<? extends NSDateComponents> recurrences, @NotNull @NotNull HMEventTrigger.Block_updateRecurrencesCompletionHandler completion)This method replaces the recurrences which secifies the days of the week when the trigger is to be evaluated.- Parameters:
recurrences- The new recurrences for the event trigger.completion- Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success. API-Since: 11.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-