Package apple.classkit
Class CLSContext
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.classkit.CLSObject
-
- apple.classkit.CLSContext
-
- All Implemented Interfaces:
NSCoding,NSSecureCoding,NSObject
public class CLSContext extends CLSObject
Contexts represent activities, documents, and areas within your app. Contexts have two major components. (1) Child contexts, used to model your app hierarchy. (2) Activity, holds user generated data that pertains to this context. API-Since: 11.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCLSContext.Block_descendantMatchingIdentifierPathCompletion-
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 protectedCLSContext(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()voidaddChildContext(@NotNull CLSContext child)Adds a child context.voidaddNavigationChildContext(@NotNull CLSContext child)Adds a child context to specify the user can navigate to the child from this context.voidaddProgressReportingCapabilities(@NotNull NSSet<? extends CLSProgressReportingCapability> capabilities)Add or replace additional progress reporting capabilities of the app for this context.static CLSContextalloc()static CLSContextallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)voidbecomeActive()Marks contexts as active.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()@NotNull CLSActivitycreateNewActivity()Creates a new activity Creates a new activity and sets it as the current activity.@Nullable CLSActivitycurrentActivity()Returns the current activity.@Nullable java.lang.StringcustomTypeName()An optional user-visible name for the context if its type is CLSContextTypeCustom.static java.lang.StringdebugDescription_static()voiddescendantMatchingIdentifierPathCompletion(@NotNull NSArray<java.lang.String> identifierPath, @NotNull CLSContext.Block_descendantMatchingIdentifierPathCompletion completion)Returns a descendant of this context matching the context path you provide.static java.lang.Stringdescription_static()longdisplayOrder()The displayOrder is by default sorted ascending.static longhash_static()@NotNull java.lang.Stringidentifier()App-assigned identifier.@NotNull NSArray<java.lang.String>identifierPath()Context identifier path of this context.CLSContextinit()CLSContextinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERCLSContextinitWithTypeIdentifierTitle(long type, @NotNull java.lang.String identifier, @NotNull java.lang.String title)Initialize and configure the type of content this context represents.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)booleanisActive()Returns true if self is the active context.booleanisAssignable()This property is true if the context can be assigned as an activity.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@NotNull NSArray<? extends CLSContext>navigationChildContexts()Child contexts that can be navigated to from this context.static CLSContextnew_objc()@Nullable CLSContextparent()Returns the parent of this context.@NotNull NSSet<? extends CLSProgressReportingCapability>progressReportingCapabilities()Specifies progress reporting capablities of the app for this context.voidremoveFromParent()Removes this child context from its parent.voidremoveNavigationChildContext(@NotNull CLSContext child)Removes the navigation path to the child context from this context.voidresetProgressReportingCapabilities()Clears CLSProgressReportingCapability objects added to the receiver.voidresignActive()Resign being active.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAssignable(boolean value)This property is true if the context can be assigned as an activity.voidsetCustomTypeName(@Nullable java.lang.String value)An optional user-visible name for the context if its type is CLSContextTypeCustom.voidsetDisplayOrder(long value)The displayOrder is by default sorted ascending.voidsetSuggestedAge(NSRange value)Suggested age range of students, expressed in years, for whom this context is suitable.voidsetSuggestedCompletionTime(NSRange value)Suggested time range, expressed in minutes, to complete the activity.voidsetSummary(@Nullable java.lang.String value)An optional user-visible summary describing the context limited to 4000 characters in length.voidsetThumbnail(@Nullable CGImageRef value)An optional thumbnail image associated with the context.voidsetTitle(@NotNull java.lang.String value)Title of this context.voidsetTopic(@Nullable java.lang.String value)Topic associated with this context.voidsetType(long type)Sets the type.voidsetUniversalLinkURL(@Nullable NSURL value)Alternative deep link URL using universal links.static voidsetVersion_static(long aVersion)NSRangesuggestedAge()Suggested age range of students, expressed in years, for whom this context is suitable.NSRangesuggestedCompletionTime()Suggested time range, expressed in minutes, to complete the activity.@Nullable java.lang.Stringsummary()An optional user-visible summary describing the context limited to 4000 characters in length.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()@Nullable CGImageRefthumbnail()An optional thumbnail image associated with the context.@NotNull java.lang.Stringtitle()Title of this context.@Nullable java.lang.Stringtopic()Topic associated with this context.longtype()Type of this context The type that best describes this context.@Nullable NSURLuniversalLinkURL()Alternative deep link URL using universal links.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.classkit.CLSObject
dateCreated, dateLastModified, encodeWithCoder
-
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()
-
addChildContext
public void addChildContext(@NotNull @NotNull CLSContext child)Adds a child context. A context can only have a single parent. [@note] objectID of child context may change after it's been added.
-
alloc
public static CLSContext alloc()
-
allocWithZone
public static CLSContext allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
becomeActive
public void becomeActive()
Marks contexts as active. If a context is already active, it will remain active. If another context is active, the other will resign active before this one becomes active.
-
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()
-
createNewActivity
@NotNull public @NotNull CLSActivity createNewActivity()
Creates a new activity Creates a new activity and sets it as the current activity.
-
currentActivity
@Nullable public @Nullable CLSActivity currentActivity()
Returns the current activity. Activity associated with a context. If no activity was ever created this is nil. See: @c -[CLSContext createNewActivity]; for more details.
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
descendantMatchingIdentifierPathCompletion
public void descendantMatchingIdentifierPathCompletion(@NotNull @NotNull NSArray<java.lang.String> identifierPath, @NotNull @NotNull CLSContext.Block_descendantMatchingIdentifierPathCompletion completion)Returns a descendant of this context matching the context path you provide. Context path must start with an identifier of a child context of the context to which this message is sent. If there are any missing contexts, they will be filled in by calling the following method on the context's 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 is called on a background thread.
-
description_static
public static java.lang.String description_static()
-
displayOrder
public long displayOrder()
The displayOrder is by default sorted ascending. Set the displayOrder if you want your contexts to be displayed in a particular order. The sort key is used as a way to sort sibling contexts in a particular order.
-
hash_static
public static long hash_static()
-
identifier
@NotNull public @NotNull java.lang.String identifier()
App-assigned identifier. This identifier should work across users and devices and be unique with regards to its siblings within its parent. The identifier could be used to embed information later used for deep linking. For example: @em hydrogen-element, or @em chapter-1.
-
init
public CLSContext init()
-
initWithCoder
public CLSContext initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classCLSObject
-
initWithTypeIdentifierTitle
public CLSContext initWithTypeIdentifierTitle(long type, @NotNull @NotNull java.lang.String identifier, @NotNull @NotNull java.lang.String title)
Initialize and configure the type of content this context represents.- Parameters:
identifier- App-assigned identifier for this context. 256 characters max length.type- The type of content this context represents.title- Title for what this context represents. 256 characters max length.
-
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)
-
isActive
public boolean isActive()
Returns true if self is the active context.
-
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 CLSContext new_objc()
-
parent
@Nullable public @Nullable CLSContext parent()
Returns the parent of this context.
-
removeFromParent
public void removeFromParent()
Removes this child context from its parent. If you remove a context from its parent and do not add it as a child of another context, it will be deleted when you call -save on the dataStore.
-
resignActive
public void resignActive()
Resign being active. This method does nothing if the reciever of the message is not active.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setDisplayOrder
public void setDisplayOrder(long value)
The displayOrder is by default sorted ascending. Set the displayOrder if you want your contexts to be displayed in a particular order. The sort key is used as a way to sort sibling contexts in a particular order.
-
setTitle
public void setTitle(@NotNull @NotNull java.lang.String value)Title of this context. For example: @em Level 1 @em.
-
setTopic
public void setTopic(@Nullable @Nullable java.lang.String value)Topic associated with this context. See above for valid, predefined topics.
-
setUniversalLinkURL
public void setUniversalLinkURL(@Nullable @Nullable NSURL value)Alternative deep link URL using universal links. If your app supports universal links, you can supply them here to link the content this context represents. API-Since: 11.4
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding- Overrides:
_supportsSecureCodingin classCLSObject
-
title
@NotNull public @NotNull java.lang.String title()
Title of this context. For example: @em Level 1 @em.
-
topic
@Nullable public @Nullable java.lang.String topic()
Topic associated with this context. See above for valid, predefined topics.
-
type
public long type()
Type of this context The type that best describes this context.
-
universalLinkURL
@Nullable public @Nullable NSURL universalLinkURL()
Alternative deep link URL using universal links. If your app supports universal links, you can supply them here to link the content this context represents. API-Since: 11.4
-
version_static
public static long version_static()
-
customTypeName
@Nullable public @Nullable java.lang.String customTypeName()
An optional user-visible name for the context if its type is CLSContextTypeCustom. This property is relevant only if the type is CLSContextTypeCustom. This string should be localized. If this property is not set for a context of type CLSContextTypeCustom, Schoolwork app will use a default localized string ‘Custom’ as the name of the activity representing this context. API-Since: 13.4
-
identifierPath
@NotNull public @NotNull NSArray<java.lang.String> identifierPath()
Context identifier path of this context. The identifier path starts with the main app context object and finishes with the identifier of this context. This is the identifier path that one would use in @code -[CLSDataStore contextsMatchingIdintifierPath:completion:] @endcode to find `this' context. API-Since: 13.4
-
setCustomTypeName
public void setCustomTypeName(@Nullable @Nullable java.lang.String value)An optional user-visible name for the context if its type is CLSContextTypeCustom. This property is relevant only if the type is CLSContextTypeCustom. This string should be localized. If this property is not set for a context of type CLSContextTypeCustom, Schoolwork app will use a default localized string ‘Custom’ as the name of the activity representing this context. API-Since: 13.4
-
setSummary
public void setSummary(@Nullable @Nullable java.lang.String value)An optional user-visible summary describing the context limited to 4000 characters in length. This may be used to provide information about the types of activities available under a given context or the context itself. This string should be localized. API-Since: 13.4
-
setThumbnail
public void setThumbnail(@Nullable @Nullable CGImageRef value)An optional thumbnail image associated with the context. The size of this image should be equal to or larger than 80x80 pixels and equal to or smaller than 330x330 pixels. Images larger than 330x330 pixels will be scaled down. Images with both dimensions smaller than 80x80 pixels will not be accepted. API-Since: 13.4
-
summary
@Nullable public @Nullable java.lang.String summary()
An optional user-visible summary describing the context limited to 4000 characters in length. This may be used to provide information about the types of activities available under a given context or the context itself. This string should be localized. API-Since: 13.4
-
thumbnail
@Nullable public @Nullable CGImageRef thumbnail()
An optional thumbnail image associated with the context. The size of this image should be equal to or larger than 80x80 pixels and equal to or smaller than 330x330 pixels. Images larger than 330x330 pixels will be scaled down. Images with both dimensions smaller than 80x80 pixels will not be accepted. API-Since: 13.4
-
addProgressReportingCapabilities
public void addProgressReportingCapabilities(@NotNull @NotNull NSSet<? extends CLSProgressReportingCapability> capabilities)Add or replace additional progress reporting capabilities of the app for this context. If this parameter contains multiple items with the same value for kind, then one of them will be arbitrarily selected and used. If this parameter contains a capability of kind CLSProgressReportingCapabilityKindDuration, it will be ignored.- Parameters:
capabilities- Progress reporting capabilities to add or replace existing capabilties. API-Since: 14.0
-
isAssignable
public boolean isAssignable()
This property is true if the context can be assigned as an activity. The default value of this property is true. This should be set to false for a context that is used as a container for other contexts, but by itself, is not an assignable activity. API-Since: 14.0
-
progressReportingCapabilities
@NotNull public @NotNull NSSet<? extends CLSProgressReportingCapability> progressReportingCapabilities()
Specifies progress reporting capablities of the app for this context. This information is intended to help teachers as they choose activities for their students. By default a CLSContext will have one CLSProgressReportingCapability instance of kind CLSProgressReportingCapabilityKindDuration. More progress reporting capabilities can be specified via '-addProgressReportingCapabilities:' to customize this set. API-Since: 14.0
-
resetProgressReportingCapabilities
public void resetProgressReportingCapabilities()
Clears CLSProgressReportingCapability objects added to the receiver. Removes all capabilities added via '-addProgressReportingCapabilities:'. The context will have the default progress reporting capability of kind CLSProgressReportingCapabilityKindDuration. API-Since: 14.0
-
setAssignable
public void setAssignable(boolean value)
This property is true if the context can be assigned as an activity. The default value of this property is true. This should be set to false for a context that is used as a container for other contexts, but by itself, is not an assignable activity. API-Since: 14.0
-
setSuggestedAge
public void setSuggestedAge(NSRange value)
Suggested age range of students, expressed in years, for whom this context is suitable. This information is intended to help teachers to choose age-appropriate activities for their students. The default value is [0, NSIntegerMax - 1]. This is @em NSRange(0...Int.max-1) in @em Swift or @em NSMakeRange(0,NSIntegerMax) in @em Objective-C. Set the lower bound to 0 to specify no minimum age limit and set the upper bound to NSIntegerMax - 1 to specify no maximum age limit. [@example] An age range of 4 to 6 years is expressed by @em NSRange(4...6) in @em Swift or by @em NSMakeRange(4,3) in @Objective-C. [@example] An age range of up 10 years is expressed by @em NSRange(0...10) in @em Swift or by @em NSMakeRange(0,11) in @Objective-C. [@example] An age range of 18 years or above is expressed by @em NSRange(18...Int.max-1) in @em Swift or by @em NSMakeRange(18,NSIntegerMax-18) in @Objective-C. API-Since: 14.0
-
setSuggestedCompletionTime
public void setSuggestedCompletionTime(NSRange value)
Suggested time range, expressed in minutes, to complete the activity. This information will help teachers as they choose activities for their students. The default value is [0, NSIntegerMax - 1]. This is @em NSRange(0...Int.max-1) in @em Swift or @em NSMakeRange(0,NSIntegerMax) in @em Objective-C. Set the lower bound value to 0 to specify no minimum time limit and set the upper bound to NSIntegerMax - 1 to specify no maximum time limit. [@example] An time range of 10 to 15 minutes is expressed by @em NSRange(10...15) in @em Swift or by @em NSMakeRange(10,6) in @Objective-C. [@example] An time range of up to 10 minutes is expressed by @em NSRange(0...10) in @em Swift or by @em NSMakeRange(0,11) in @Objective-C. [@example] An time range of at least 20 minutes is expressed by @em NSRange(20...Int.max-1) in @em Swift or by @em NSMakeRange(20,NSIntegerMax-20) in @Objective-C. API-Since: 14.0
-
setType
public void setType(long type)
Sets the type. Use this to update a previously saved context. API-Since: 14.0
-
suggestedAge
public NSRange suggestedAge()
Suggested age range of students, expressed in years, for whom this context is suitable. This information is intended to help teachers to choose age-appropriate activities for their students. The default value is [0, NSIntegerMax - 1]. This is @em NSRange(0...Int.max-1) in @em Swift or @em NSMakeRange(0,NSIntegerMax) in @em Objective-C. Set the lower bound to 0 to specify no minimum age limit and set the upper bound to NSIntegerMax - 1 to specify no maximum age limit. [@example] An age range of 4 to 6 years is expressed by @em NSRange(4...6) in @em Swift or by @em NSMakeRange(4,3) in @Objective-C. [@example] An age range of up 10 years is expressed by @em NSRange(0...10) in @em Swift or by @em NSMakeRange(0,11) in @Objective-C. [@example] An age range of 18 years or above is expressed by @em NSRange(18...Int.max-1) in @em Swift or by @em NSMakeRange(18,NSIntegerMax-18) in @Objective-C. API-Since: 14.0
-
suggestedCompletionTime
public NSRange suggestedCompletionTime()
Suggested time range, expressed in minutes, to complete the activity. This information will help teachers as they choose activities for their students. The default value is [0, NSIntegerMax - 1]. This is @em NSRange(0...Int.max-1) in @em Swift or @em NSMakeRange(0,NSIntegerMax) in @em Objective-C. Set the lower bound value to 0 to specify no minimum time limit and set the upper bound to NSIntegerMax - 1 to specify no maximum time limit. [@example] An time range of 10 to 15 minutes is expressed by @em NSRange(10...15) in @em Swift or by @em NSMakeRange(10,6) in @Objective-C. [@example] An time range of up to 10 minutes is expressed by @em NSRange(0...10) in @em Swift or by @em NSMakeRange(0,11) in @Objective-C. [@example] An time range of at least 20 minutes is expressed by @em NSRange(20...Int.max-1) in @em Swift or by @em NSMakeRange(20,NSIntegerMax-20) in @Objective-C. API-Since: 14.0
-
addNavigationChildContext
public void addNavigationChildContext(@NotNull @NotNull CLSContext child)Adds a child context to specify the user can navigate to the child from this context. Used only for presentation purpose. Unlike @code -[CLSContext addChildContext:] @endcode, this method does not affect the identifierPath. API-Since: 14.5
-
navigationChildContexts
@NotNull public @NotNull NSArray<? extends CLSContext> navigationChildContexts()
Child contexts that can be navigated to from this context. Returns all the child contexts added via @code -[CLSContext addNavigationChildContext:] @endcode API-Since: 14.5
-
removeNavigationChildContext
public void removeNavigationChildContext(@NotNull @NotNull CLSContext child)Removes the navigation path to the child context from this context. Used only for presentation purpose. Unlike @code -[CLSContext removeFromParent:] @endcode, this method does not affect the identiferPath. API-Since: 14.5
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-