| Modifier and Type | Class and Description |
|---|---|
static interface |
CLSDataStore.Block_contextsMatchingIdentifierPathCompletion |
static interface |
CLSDataStore.Block_contextsMatchingPredicateCompletion |
static interface |
CLSDataStore.Block_fetchActivityForURLCompletion |
static interface |
CLSDataStore.Block_saveWithCompletion |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CLSDataStore(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
CLSContext |
activeContext()
Returns the context that is currently active.
|
static CLSDataStore |
alloc() |
static CLSDataStore |
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() |
void |
completeAllAssignedActivitiesMatching(NSArray<java.lang.String> contextPath)
Complete all assigned actvities.
|
void |
contextsMatchingIdentifierPathCompletion(NSArray<java.lang.String> identifierPath,
CLSDataStore.Block_contextsMatchingIdentifierPathCompletion completion)
Returns contexts matching a set of identifiers where each identifier is the parent of the following identifier.
|
void |
contextsMatchingPredicateCompletion(NSPredicate predicate,
CLSDataStore.Block_contextsMatchingPredicateCompletion completion)
Fetch contexts matching a predicate.
|
static java.lang.String |
debugDescription_static() |
CLSDataStoreDelegate |
delegate()
The data store delegate allows for easy population of the app's context hierarchy.
|
static java.lang.String |
description_static() |
void |
fetchActivityForURLCompletion(NSURL url,
CLSDataStore.Block_fetchActivityForURLCompletion completion)
Implement to fetch the current CLSActivity instance for your document to add progress to.
|
static long |
hash_static() |
CLSDataStore |
init() |
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) |
CLSContext |
mainAppContext()
Fetch the top level context for the current app.
|
static CLSDataStore |
new_objc() |
void |
removeContext(CLSContext context)
Mark a context for removal.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
CLSActivity |
runningActivity()
Returns the most recently started activity that is running.
|
void |
saveWithCompletion(CLSDataStore.Block_saveWithCompletion completion)
Save changes made in the data store.
|
void |
setDelegate_unsafe(CLSDataStoreDelegate value)
The data store delegate allows for easy population of the app's context hierarchy.
|
void |
setDelegate(CLSDataStoreDelegate value)
The data store delegate allows for easy population of the app's context hierarchy.
|
static void |
setVersion_static(long aVersion) |
static CLSDataStore |
shared()
The data store provides read/write access to your app's ClassKit data.
|
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
accessibilityActivate, 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 CLSContext activeContext()
public static CLSDataStore alloc()
public static CLSDataStore 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 void completeAllAssignedActivitiesMatching(NSArray<java.lang.String> contextPath)
Marks all of the currently active assigned activities for this contextPath as complete.
public void contextsMatchingIdentifierPathCompletion(NSArray<java.lang.String> identifierPath, CLSDataStore.Block_contextsMatchingIdentifierPathCompletion completion)
For example: @c@["math-game", @c"level1"] returns two contexts where @em math-game is the parent of @em level1. If there are any missing contexts, they will be filled in by calling the following method on the data store's delegate: [@code] -[CLSDataStoreDelegate createContextForIdentifier:parentContext:parentIdentifierPath:] @endcode If the dataStore does not have a delegate and there are missing contexts then an incomplete list of contexts will be passed to the completion handler. Completion block may be called on a background thread.
public void contextsMatchingPredicateCompletion(NSPredicate predicate, CLSDataStore.Block_contextsMatchingPredicateCompletion completion)
For example: NSPredicate
public static java.lang.String debugDescription_static()
public CLSDataStoreDelegate delegate()
public static java.lang.String description_static()
public static long hash_static()
public CLSDataStore init()
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 CLSContext mainAppContext()
The main context is automatically created. Add child contexts to this context to persist them in the data store.
public static CLSDataStore new_objc()
public void removeContext(CLSContext context)
Save to commit removal. Removal cascades and deletes all descendants.
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public CLSActivity runningActivity()
public void saveWithCompletion(CLSDataStore.Block_saveWithCompletion completion)
Save new/modified/removed contexts, activities, etc. to the local store. In case of an error -[NSError userInfo] will contain the object that caused the error under the CLSErrorObjectKey..
public void setDelegate_unsafe(CLSDataStoreDelegate value)
public void setDelegate(CLSDataStoreDelegate value)
public static void setVersion_static(long aVersion)
public static CLSDataStore shared()
Data written to the data store is automatically synced via iCloud across the user's devices.
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public void fetchActivityForURLCompletion(NSURL url, CLSDataStore.Block_fetchActivityForURLCompletion completion)
Gets the currently CLSActivity for the file. If no current activity exists, one will be created for you.
url - File url for the document.