| Modifier and Type | Class and Description |
|---|---|
static interface |
HMEventTrigger.Block_addEventCompletionHandler |
static interface |
HMEventTrigger.Block_removeEventCompletionHandler |
static interface |
HMEventTrigger.Block_updateEndEventsCompletionHandler |
static interface |
HMEventTrigger.Block_updateEventsCompletionHandler |
static interface |
HMEventTrigger.Block_updateExecuteOnceCompletionHandler |
static interface |
HMEventTrigger.Block_updatePredicateCompletionHandler |
static interface |
HMEventTrigger.Block_updateRecurrencesCompletionHandler |
HMTrigger.Block_addActionSetCompletionHandler, HMTrigger.Block_enableCompletionHandler, HMTrigger.Block_removeActionSetCompletionHandler, HMTrigger.Block_updateNameCompletionHandlerNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
HMEventTrigger(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addEventCompletionHandler(HMEvent event,
HMEventTrigger.Block_addEventCompletionHandler completion)
Adds a new event to the event trigger.
|
static HMEventTrigger |
alloc() |
static HMEventTrigger |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
NSArray<? extends HMEvent> |
endEvents()
The events that correspond to executing the restore of the scene before the trigger was executed.
|
NSArray<? extends HMEvent> |
events()
The events associated with the trigger.
|
boolean |
executeOnce()
Specifies whether this trigger is executed only once after which the trigger is disabled.
|
static long |
hash_static() |
HMEventTrigger |
init() |
HMEventTrigger |
initWithNameEventsEndEventsRecurrencesPredicate(java.lang.String name,
NSArray<? extends HMEvent> events,
NSArray<? extends HMEvent> endEvents,
NSArray<? extends NSDateComponents> recurrences,
NSPredicate predicate)
Initializes a new event trigger object.
|
HMEventTrigger |
initWithNameEventsPredicate(java.lang.String name,
NSArray<? extends HMEvent> events,
NSPredicate predicate)
Initializes a new event trigger object.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static HMEventTrigger |
new_objc() |
NSPredicate |
predicate()
The predicate to evaluate before executing the action sets associated with the trigger.
|
static NSPredicate |
predicateForEvaluatingTriggerOccurringAfterDateWithComponents(NSDateComponents dateComponents)
Creates a predicate that will evaluate whether the event occurred at or after the time specified.
|
static NSPredicate |
predicateForEvaluatingTriggerOccurringAfterSignificantEvent(HMSignificantTimeEvent significantEvent)
Creates a predicate that will evaluate whether the event occurred after a significant event.
|
static NSPredicate |
predicateForEvaluatingTriggerOccurringAfterSignificantEventApplyingOffset(java.lang.String significantEvent,
NSDateComponents offset)
Creates a predicate that will evaluate whether the event occurred after a significant event.
|
static NSPredicate |
predicateForEvaluatingTriggerOccurringBeforeDateWithComponents(NSDateComponents dateComponents)
Creates a predicate that will evaluate whether the event occurred before the time specified.
|
static NSPredicate |
predicateForEvaluatingTriggerOccurringBeforeSignificantEvent(HMSignificantTimeEvent significantEvent)
Creates a predicate that will evaluate whether the event occurred before a significant event.
|
static NSPredicate |
predicateForEvaluatingTriggerOccurringBeforeSignificantEventApplyingOffset(java.lang.String significantEvent,
NSDateComponents offset)
Creates a predicate that will evaluate whether the event occurred before a significant event.
|
static NSPredicate |
predicateForEvaluatingTriggerOccurringBetweenDateWithComponentsSecondDateWithComponents(NSDateComponents firstDateComponents,
NSDateComponents secondDateWithComponents)
Creates a predicate that will evaluate whether the event occurred between two times.
|
static NSPredicate |
predicateForEvaluatingTriggerOccurringBetweenSignificantEventSecondSignificantEvent(HMSignificantTimeEvent firstSignificantEvent,
HMSignificantTimeEvent secondSignificantEvent)
Creates a predicate that will evaluate whether the event occurred between two significant events.
|
static NSPredicate |
predicateForEvaluatingTriggerOccurringOnDateWithComponents(NSDateComponents dateComponents)
Creates a predicate that will evaluate whether the event occurred at the time specified.
|
static NSPredicate |
predicateForEvaluatingTriggerWithCharacteristicRelatedByToValue(HMCharacteristic characteristic,
long operatorType,
java.lang.Object value)
Creates a predicate that will evaluate whether a characteristic value is related to the specified value.
|
static NSPredicate |
predicateForEvaluatingTriggerWithPresence(HMPresenceEvent presenceEvent)
Creates a predicate that will evaluate based on the presence event.
|
NSArray<? extends NSDateComponents> |
recurrences()
recurrences Specifies the recurrences for when the trigger is evaluated.
|
void |
removeEventCompletionHandler(HMEvent event,
HMEventTrigger.Block_removeEventCompletionHandler completion)
Removes the specified event from the event trigger.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
long |
triggerActivationState()
Specifies the current activation state of the trigger.
|
void |
updateEndEventsCompletionHandler(NSArray<? extends HMEvent> endEvents,
HMEventTrigger.Block_updateEndEventsCompletionHandler completion)
Updates the set of events in the event trigger.
|
void |
updateEventsCompletionHandler(NSArray<? extends HMEvent> events,
HMEventTrigger.Block_updateEventsCompletionHandler completion)
Updates the set of events in the event trigger.
|
void |
updateExecuteOnceCompletionHandler(boolean executeOnce,
HMEventTrigger.Block_updateExecuteOnceCompletionHandler completion)
This method is used to update whether the event trigger repeats or not.
|
void |
updatePredicateCompletionHandler(NSPredicate predicate,
HMEventTrigger.Block_updatePredicateCompletionHandler completion)
This method replaces the predicate used to evaluate execution of the action sets associated with the trigger.
|
void |
updateRecurrencesCompletionHandler(NSArray<? extends NSDateComponents> recurrences,
HMEventTrigger.Block_updateRecurrencesCompletionHandler completion)
This method replaces the recurrences which secifies the days of the week when the trigger is to be evaluated.
|
static long |
version_static() |
actionSets, addActionSetCompletionHandler, enableCompletionHandler, isEnabled, lastFireDate, name, removeActionSetCompletionHandler, uniqueIdentifier, updateNameCompletionHandleraccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static HMEventTrigger alloc()
public static HMEventTrigger allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static HMEventTrigger new_objc()
public static NSPredicate predicateForEvaluatingTriggerOccurringAfterDateWithComponents(NSDateComponents dateComponents)
dateComponents - Date components representing the time to compare against when the event occurs.public static NSPredicate predicateForEvaluatingTriggerOccurringAfterSignificantEventApplyingOffset(java.lang.String significantEvent, NSDateComponents offset)
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.public static NSPredicate predicateForEvaluatingTriggerOccurringBeforeDateWithComponents(NSDateComponents dateComponents)
dateComponents - Date components representing the time to compare against when the event occurs.public static NSPredicate predicateForEvaluatingTriggerOccurringBeforeSignificantEventApplyingOffset(java.lang.String significantEvent, NSDateComponents offset)
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.public static NSPredicate predicateForEvaluatingTriggerOccurringOnDateWithComponents(NSDateComponents dateComponents)
dateComponents - Date components representing the time to compare against when the event occurs.public static NSPredicate predicateForEvaluatingTriggerWithCharacteristicRelatedByToValue(HMCharacteristic characteristic, long operatorType, java.lang.Object value)
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.public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public void addEventCompletionHandler(HMEvent event, HMEventTrigger.Block_addEventCompletionHandler completion)
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.public HMEventTrigger init()
public HMEventTrigger initWithNameEventsPredicate(java.lang.String name, NSArray<? extends HMEvent> events, NSPredicate predicate)
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.public NSPredicate predicate()
public void removeEventCompletionHandler(HMEvent event, HMEventTrigger.Block_removeEventCompletionHandler completion)
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.public void updatePredicateCompletionHandler(NSPredicate predicate, HMEventTrigger.Block_updatePredicateCompletionHandler completion)
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.public NSArray<? extends HMEvent> endEvents()
public boolean executeOnce()
public HMEventTrigger initWithNameEventsEndEventsRecurrencesPredicate(java.lang.String name, NSArray<? extends HMEvent> events, NSArray<? extends HMEvent> endEvents, NSArray<? extends NSDateComponents> recurrences, NSPredicate predicate)
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.public static NSPredicate predicateForEvaluatingTriggerOccurringAfterSignificantEvent(HMSignificantTimeEvent significantEvent)
significantEvent - The significant event to compare against.public static NSPredicate predicateForEvaluatingTriggerOccurringBeforeSignificantEvent(HMSignificantTimeEvent significantEvent)
significantEvent - The significant event to compare against.public static NSPredicate predicateForEvaluatingTriggerOccurringBetweenDateWithComponentsSecondDateWithComponents(NSDateComponents firstDateComponents, NSDateComponents secondDateWithComponents)
firstDateComponents - The first date component.secondDateWithComponents - The second date component.public static NSPredicate predicateForEvaluatingTriggerOccurringBetweenSignificantEventSecondSignificantEvent(HMSignificantTimeEvent firstSignificantEvent, HMSignificantTimeEvent secondSignificantEvent)
firstSignificantEvent - The first significant event.secondSignificantEvent - The second significant event.public static NSPredicate predicateForEvaluatingTriggerWithPresence(HMPresenceEvent presenceEvent)
presenceEvent - The presenceEvent that is evaluated as part of the predicate.public NSArray<? extends NSDateComponents> recurrences()
public long triggerActivationState()
public void updateEndEventsCompletionHandler(NSArray<? extends HMEvent> endEvents, HMEventTrigger.Block_updateEndEventsCompletionHandler completion)
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.public void updateEventsCompletionHandler(NSArray<? extends HMEvent> events, HMEventTrigger.Block_updateEventsCompletionHandler completion)
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.public void updateExecuteOnceCompletionHandler(boolean executeOnce,
HMEventTrigger.Block_updateExecuteOnceCompletionHandler completion)
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.public void updateRecurrencesCompletionHandler(NSArray<? extends NSDateComponents> recurrences, HMEventTrigger.Block_updateRecurrencesCompletionHandler completion)
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.