Package apple.foundation
Class NSUserActivity
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSUserActivity
-
- All Implemented Interfaces:
NSItemProviderReading,NSItemProviderWriting,NSObject
public class NSUserActivity extends NSObject implements NSItemProviderReading, NSItemProviderWriting
NSUserActivity encapsulates the state of a user activity in an application on a particular device, in a way that allows the same activity to be continued on another device in a corresponding application from the same developer. Examples of user user activities include editing a document, viewing a web page, or watching a video. API-Since: 8.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNSUserActivity.Block_deleteAllSavedUserActivitiesWithCompletionHandlerstatic interfaceNSUserActivity.Block_deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandlerstatic interfaceNSUserActivity.Block_getContinuationStreamsWithCompletionHandler-
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
-
Nested classes/interfaces inherited from interface apple.foundation.protocol.NSItemProviderWriting
NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSUserActivity(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long_itemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull java.lang.String typeIdentifier)@Nullable NSUserActivity_objectWithItemProviderDataTypeIdentifierError(@NotNull NSData data, @NotNull java.lang.String typeIdentifier, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)@NotNull NSArray<java.lang.String>_readableTypeIdentifiersForItemProvider()@NotNull NSArray<java.lang.String>_writableTypeIdentifiersForItemProvider_static()static booleanaccessInstanceVariablesDirectly()@NotNull java.lang.StringactivityType()The activityType the user activity was created with.voidaddUserInfoEntriesFromDictionary(@NotNull NSDictionary<?,?> otherDictionary)Adds to the userInfo dictionary the entries from otherDictionary.static NSUserActivityalloc()static NSUserActivityallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@Nullable APActivationPayloadappClipActivationPayload()[@property] appClipActivationPayload The activation payload object that triggers the app clip launch.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)voidbecomeCurrent()Marks the receiver as the activity currently in use by the user, for example, the activity associated with the active window.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()@Nullable CSSearchableItemAttributeSetcontentAttributeSet()@Nullable NSArray<java.lang.String>contextIdentifierPath()Returns the context identifier path you should deep link to.static java.lang.StringdebugDescription_static()@Nullable NSUserActivityDelegatedelegate()The user activity delegate is informed when the activity is being saved or continued (see NSUserActivityDelegate, below)static voiddeleteAllSavedUserActivitiesWithCompletionHandler(@NotNull NSUserActivity.Block_deleteAllSavedUserActivitiesWithCompletionHandler handler)API-Since: 12.0static voiddeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(@NotNull NSArray<java.lang.String> persistentIdentifiers, @NotNull NSUserActivity.Block_deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler handler)API-Since: 12.0static java.lang.Stringdescription_static()@Nullable CIBarcodeDescriptordetectedBarcodeDescriptor()The scanned code in the user activity passed in by system scanner.@Nullable NSDateexpirationDate()If non-nil, then an absolute date after which this activity is no longer eligible to be indexed or handed off.@Nullable java.lang.StringexternalMediaContentIdentifier()A unique identifier relative to the app's media content catalog for the displayed media item.voidgetContinuationStreamsWithCompletionHandler(@NotNull NSUserActivity.Block_getContinuationStreamsWithCompletionHandler completionHandler)When an app is launched for a continuation event it can request streams back to the originating side.static longhash_static()NSUserActivityinit()Deprecated.NSUserActivityinitWithActivityType(@NotNull java.lang.String activityType)Initializes and returns a newly created NSUserActivity with the given activityType.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)@Nullable INInteractioninteraction()API-Since: 10.0voidinvalidate()Invalidate an activity when it's no longer eligible for continuation, for example, when the window associated with an activity is closed.booleanisClassKitDeepLink()Returns whether the user activity is a ClassKit deep link.booleanisEligibleForHandoff()Set to YES if this user activity should be eligible to be handed off to another device API-Since: 9.0booleanisEligibleForPrediction()API-Since: 12.0booleanisEligibleForPublicIndexing()Set to YES if this user activity should be eligible for indexing for any user of this application, on any device, or NO if the activity contains private or sensitive information or which would not be useful to other users if indexed.booleanisEligibleForSearch()Set to YES if this user activity should be indexed by App History API-Since: 9.0static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)longitemProviderVisibilityForRepresentationWithTypeIdentifier(@NotNull java.lang.String typeIdentifier)static longitemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull java.lang.String typeIdentifier)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@NotNull NSSet<java.lang.String>keywords()A set of NSString* keywords, representing words or phrases in the current user's language that might help the user to find this activity in the application history.@Nullable NSProgressloadDataWithTypeIdentifierForItemProviderCompletionHandler(@NotNull java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)One of writableTypeIdentifiersForItemProviderMKMapItemmapItem()API-Since: 10.0@NotNull NFCNDEFMessagendefMessagePayload()[@property] ndefMessagePayload The NFC NDEF message with an Universial Link object that triggers the application launch.booleanneedsSave()If set to YES, then the delegate for this user activity will receive a userActivityWillSave: callback before being sent for continuation on another device.static NSUserActivitynew_objc()static @Nullable NSUserActivityobjectWithItemProviderDataTypeIdentifierError(@NotNull NSData data, @NotNull java.lang.String typeIdentifier, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)@Nullable java.lang.StringpersistentIdentifier()API-Since: 12.0static @NotNull NSArray<java.lang.String>readableTypeIdentifiersForItemProvider()@Nullable NSURLreferrerURL()The URL of the webpage that referred (linked to) webpageURL.@Nullable NSSet<java.lang.String>requiredUserInfoKeys()The keys from the userInfo property which represent the minimal information about this user activity that should be stored for later restoration.voidresignCurrent()If this activity is the current activity, it should stop being so and set the current activity to nothing.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetContentAttributeSet(@Nullable CSSearchableItemAttributeSet value)voidsetDelegate(@Nullable NSUserActivityDelegate value)The user activity delegate is informed when the activity is being saved or continued (see NSUserActivityDelegate, below)voidsetDelegate_unsafe(@Nullable NSUserActivityDelegate value)The user activity delegate is informed when the activity is being saved or continued (see NSUserActivityDelegate, below)voidsetEligibleForHandoff(boolean value)Set to YES if this user activity should be eligible to be handed off to another device API-Since: 9.0voidsetEligibleForPrediction(boolean value)API-Since: 12.0voidsetEligibleForPublicIndexing(boolean value)Set to YES if this user activity should be eligible for indexing for any user of this application, on any device, or NO if the activity contains private or sensitive information or which would not be useful to other users if indexed.voidsetEligibleForSearch(boolean value)Set to YES if this user activity should be indexed by App History API-Since: 9.0voidsetExpirationDate(@Nullable NSDate value)If non-nil, then an absolute date after which this activity is no longer eligible to be indexed or handed off.voidsetExternalMediaContentIdentifier(@Nullable java.lang.String value)A unique identifier relative to the app's media content catalog for the displayed media item.voidsetKeywords(@NotNull NSSet<java.lang.String> value)A set of NSString* keywords, representing words or phrases in the current user's language that might help the user to find this activity in the application history.voidsetMapItem(MKMapItem value)API-Since: 10.0voidsetNeedsSave(boolean value)If set to YES, then the delegate for this user activity will receive a userActivityWillSave: callback before being sent for continuation on another device.voidsetPersistentIdentifier(@Nullable java.lang.String value)API-Since: 12.0voidsetReferrerURL(@Nullable NSURL value)The URL of the webpage that referred (linked to) webpageURL.voidsetRequiredUserInfoKeys(@Nullable NSSet<java.lang.String> value)The keys from the userInfo property which represent the minimal information about this user activity that should be stored for later restoration.voidsetShortcutAvailability(long value)Defines additional contexts in which this user activity is relevant to be suggested to the user.voidsetSuggestedInvocationPhrase(@Nullable java.lang.String value)A human-understandable string that can be used to suggest a voice shortcut phrase to the user API-Since: 12.0voidsetSupportsContinuationStreams(boolean value)When used for continuation, the user activity can allow the continuing side to connect back for more information using streams.voidsetTargetContentIdentifier(@Nullable java.lang.String value)A string that identifies the content of this NSUserActivity, for matching against existing documents when re-opening to see if they are the same.voidsetTitle(@Nullable java.lang.String value)An optional, user-visible title for this activity, such as a document name or web page title.voidsetUserInfo(@Nullable NSDictionary<?,?> value)The userInfo dictionary contains application-specific state needed to continue an activity on another device.static voidsetVersion_static(long aVersion)voidsetWebpageURL(@Nullable NSURL value)When no suitable application is installed on a resuming device and the webpageURL is set, the user activity will instead be continued in a web browser by loading this resource.longshortcutAvailability()Defines additional contexts in which this user activity is relevant to be suggested to the user.@Nullable java.lang.StringsuggestedInvocationPhrase()A human-understandable string that can be used to suggest a voice shortcut phrase to the user API-Since: 12.0static org.moe.natj.objc.Classsuperclass_static()booleansupportsContinuationStreams()When used for continuation, the user activity can allow the continuing side to connect back for more information using streams.@Nullable java.lang.StringtargetContentIdentifier()A string that identifies the content of this NSUserActivity, for matching against existing documents when re-opening to see if they are the same.@Nullable java.lang.Stringtitle()An optional, user-visible title for this activity, such as a document name or web page title.@Nullable NSDictionary<?,?>userInfo()The userInfo dictionary contains application-specific state needed to continue an activity on another device.static booleanuseStoredAccessor()Deprecated.static longversion_static()@Nullable NSURLwebpageURL()When no suitable application is installed on a resuming device and the webpageURL is set, the user activity will instead be continued in a web browser by loading this resource.@NotNull NSArray<java.lang.String>writableTypeIdentifiersForItemProvider()static @NotNull NSArray<java.lang.String>writableTypeIdentifiersForItemProvider_static()-
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 NSUserActivity alloc()
-
allocWithZone
public static NSUserActivity 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 NSUserActivity new_objc()
-
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()
-
activityType
@NotNull public @NotNull java.lang.String activityType()
The activityType the user activity was created with.
-
addUserInfoEntriesFromDictionary
public void addUserInfoEntriesFromDictionary(@NotNull @NotNull NSDictionary<?,?> otherDictionary)Adds to the userInfo dictionary the entries from otherDictionary. The keys and values must be of the types allowed in the userInfo
-
becomeCurrent
public void becomeCurrent()
Marks the receiver as the activity currently in use by the user, for example, the activity associated with the active window. A newly created activity is eligible for continuation on another device after the first time it becomes current.
-
contentAttributeSet
@Nullable public @Nullable CSSearchableItemAttributeSet contentAttributeSet()
-
delegate
@Nullable public @Nullable NSUserActivityDelegate delegate()
The user activity delegate is informed when the activity is being saved or continued (see NSUserActivityDelegate, below)
-
expirationDate
@Nullable public @Nullable NSDate expirationDate()
If non-nil, then an absolute date after which this activity is no longer eligible to be indexed or handed off. API-Since: 9.0
-
getContinuationStreamsWithCompletionHandler
public void getContinuationStreamsWithCompletionHandler(@NotNull @NotNull NSUserActivity.Block_getContinuationStreamsWithCompletionHandler completionHandler)When an app is launched for a continuation event it can request streams back to the originating side. Streams can only be successfully retrieved from the NSUserActivity in the NS/UIApplication delegate that is called for a continuation event. This functionality is optional and is not expected to be needed in most continuation cases. The streams returned in the completion handler will be in an unopened state. The streams should be opened immediately to start requesting information from the other side.
-
init
@Deprecated public NSUserActivity init()
Deprecated.Initializes and returns a newly created NSUserActivity with the first activityType from the NSUserActivityTypes key in the application’s Info.plist. API-Since: 8.0 Deprecated-Since: 10.0 Deprecated-Message: Use initWithActivityType: with a specific activity type string
-
initWithActivityType
public NSUserActivity initWithActivityType(@NotNull @NotNull java.lang.String activityType)
Initializes and returns a newly created NSUserActivity with the given activityType. A user activity may be continued only in an application that (1) has the same developer Team ID as the activity's source application and (2) supports the activity's type. Supported activity types are specified in the application's Info.plist under the NSUserActivityTypes key. When receiving a user activity for continuation, the system locates the appropriate application to launch by finding applications with the target Team ID, then filtering on the incoming activity's type identifier.
-
interaction
@Nullable public @Nullable INInteraction interaction()
API-Since: 10.0
-
invalidate
public void invalidate()
Invalidate an activity when it's no longer eligible for continuation, for example, when the window associated with an activity is closed. An invalid activity cannot become current.
-
isEligibleForHandoff
public boolean isEligibleForHandoff()
Set to YES if this user activity should be eligible to be handed off to another device API-Since: 9.0
-
setEligibleForHandoff
public void setEligibleForHandoff(boolean value)
Set to YES if this user activity should be eligible to be handed off to another device API-Since: 9.0
-
isEligibleForPublicIndexing
public boolean isEligibleForPublicIndexing()
Set to YES if this user activity should be eligible for indexing for any user of this application, on any device, or NO if the activity contains private or sensitive information or which would not be useful to other users if indexed. The activity must also have requiredUserActivityKeys or a webpageURL API-Since: 9.0
-
setEligibleForPublicIndexing
public void setEligibleForPublicIndexing(boolean value)
Set to YES if this user activity should be eligible for indexing for any user of this application, on any device, or NO if the activity contains private or sensitive information or which would not be useful to other users if indexed. The activity must also have requiredUserActivityKeys or a webpageURL API-Since: 9.0
-
isEligibleForSearch
public boolean isEligibleForSearch()
Set to YES if this user activity should be indexed by App History API-Since: 9.0
-
setEligibleForSearch
public void setEligibleForSearch(boolean value)
Set to YES if this user activity should be indexed by App History API-Since: 9.0
-
keywords
@NotNull public @NotNull NSSet<java.lang.String> keywords()
A set of NSString* keywords, representing words or phrases in the current user's language that might help the user to find this activity in the application history. API-Since: 9.0
-
mapItem
public MKMapItem mapItem()
API-Since: 10.0
-
needsSave
public boolean needsSave()
If set to YES, then the delegate for this user activity will receive a userActivityWillSave: callback before being sent for continuation on another device.
-
requiredUserInfoKeys
@Nullable public @Nullable NSSet<java.lang.String> requiredUserInfoKeys()
The keys from the userInfo property which represent the minimal information about this user activity that should be stored for later restoration. A nil value means all keys in .userInfo are required. API-Since: 9.0
-
resignCurrent
public void resignCurrent()
If this activity is the current activity, it should stop being so and set the current activity to nothing. API-Since: 9.0
-
setContentAttributeSet
public void setContentAttributeSet(@Nullable @Nullable CSSearchableItemAttributeSet value)
-
setDelegate_unsafe
public void setDelegate_unsafe(@Nullable @Nullable NSUserActivityDelegate value)The user activity delegate is informed when the activity is being saved or continued (see NSUserActivityDelegate, below)
-
setDelegate
public void setDelegate(@Nullable @Nullable NSUserActivityDelegate value)The user activity delegate is informed when the activity is being saved or continued (see NSUserActivityDelegate, below)
-
setExpirationDate
public void setExpirationDate(@Nullable @Nullable NSDate value)If non-nil, then an absolute date after which this activity is no longer eligible to be indexed or handed off. API-Since: 9.0
-
setKeywords
public void setKeywords(@NotNull @NotNull NSSet<java.lang.String> value)A set of NSString* keywords, representing words or phrases in the current user's language that might help the user to find this activity in the application history. API-Since: 9.0
-
setMapItem
public void setMapItem(MKMapItem value)
API-Since: 10.0
-
setNeedsSave
public void setNeedsSave(boolean value)
If set to YES, then the delegate for this user activity will receive a userActivityWillSave: callback before being sent for continuation on another device.
-
setRequiredUserInfoKeys
public void setRequiredUserInfoKeys(@Nullable @Nullable NSSet<java.lang.String> value)The keys from the userInfo property which represent the minimal information about this user activity that should be stored for later restoration. A nil value means all keys in .userInfo are required. API-Since: 9.0
-
setSupportsContinuationStreams
public void setSupportsContinuationStreams(boolean value)
When used for continuation, the user activity can allow the continuing side to connect back for more information using streams. This value is set to NO by default. It can be dynamically set to YES to selectively support continuation streams based on the state of the user activity.
-
setTitle
public void setTitle(@Nullable @Nullable java.lang.String value)An optional, user-visible title for this activity, such as a document name or web page title.
-
setUserInfo
public void setUserInfo(@Nullable @Nullable NSDictionary<?,?> value)The userInfo dictionary contains application-specific state needed to continue an activity on another device. Each key and value must be of the following types: NSArray, NSData, NSDate, NSDictionary, NSNull, NSNumber, NSSet, NSString, NSURL, or NSUUID. File scheme URLs which refer to iCloud documents may be translated to valid file URLs on a receiving device.
-
setWebpageURL
public void setWebpageURL(@Nullable @Nullable NSURL value)When no suitable application is installed on a resuming device and the webpageURL is set, the user activity will instead be continued in a web browser by loading this resource.
-
supportsContinuationStreams
public boolean supportsContinuationStreams()
When used for continuation, the user activity can allow the continuing side to connect back for more information using streams. This value is set to NO by default. It can be dynamically set to YES to selectively support continuation streams based on the state of the user activity.
-
title
@Nullable public @Nullable java.lang.String title()
An optional, user-visible title for this activity, such as a document name or web page title.
-
userInfo
@Nullable public @Nullable NSDictionary<?,?> userInfo()
The userInfo dictionary contains application-specific state needed to continue an activity on another device. Each key and value must be of the following types: NSArray, NSData, NSDate, NSDictionary, NSNull, NSNumber, NSSet, NSString, NSURL, or NSUUID. File scheme URLs which refer to iCloud documents may be translated to valid file URLs on a receiving device.
-
webpageURL
@Nullable public @Nullable NSURL webpageURL()
When no suitable application is installed on a resuming device and the webpageURL is set, the user activity will instead be continued in a web browser by loading this resource.
-
externalMediaContentIdentifier
@Nullable public @Nullable java.lang.String externalMediaContentIdentifier()
A unique identifier relative to the app's media content catalog for the displayed media item. API-Since: 10.1
-
referrerURL
@Nullable public @Nullable NSURL referrerURL()
The URL of the webpage that referred (linked to) webpageURL. API-Since: 11.0
-
setExternalMediaContentIdentifier
public void setExternalMediaContentIdentifier(@Nullable @Nullable java.lang.String value)A unique identifier relative to the app's media content catalog for the displayed media item. API-Since: 10.1
-
setReferrerURL
public void setReferrerURL(@Nullable @Nullable NSURL value)The URL of the webpage that referred (linked to) webpageURL. API-Since: 11.0
-
deleteAllSavedUserActivitiesWithCompletionHandler
public static void deleteAllSavedUserActivitiesWithCompletionHandler(@NotNull @NotNull NSUserActivity.Block_deleteAllSavedUserActivitiesWithCompletionHandler handler)API-Since: 12.0
-
deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler
public static void deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(@NotNull @NotNull NSArray<java.lang.String> persistentIdentifiers, @NotNull @NotNull NSUserActivity.Block_deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler handler)API-Since: 12.0
-
detectedBarcodeDescriptor
@Nullable public @Nullable CIBarcodeDescriptor detectedBarcodeDescriptor()
The scanned code in the user activity passed in by system scanner. API-Since: 11.3
-
isEligibleForPrediction
public boolean isEligibleForPrediction()
API-Since: 12.0
-
itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull @NotNull java.lang.String typeIdentifier)
-
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public long _itemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull @NotNull java.lang.String typeIdentifier)- Specified by:
_itemProviderVisibilityForRepresentationWithTypeIdentifier_staticin interfaceNSItemProviderWriting
-
itemProviderVisibilityForRepresentationWithTypeIdentifier
public long itemProviderVisibilityForRepresentationWithTypeIdentifier(@NotNull @NotNull java.lang.String typeIdentifier)
-
loadDataWithTypeIdentifierForItemProviderCompletionHandler
@Nullable public @Nullable NSProgress loadDataWithTypeIdentifierForItemProviderCompletionHandler(@NotNull @NotNull java.lang.String typeIdentifier, @NotNull NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
Description copied from interface:NSItemProviderWritingOne of writableTypeIdentifiersForItemProvider- Specified by:
loadDataWithTypeIdentifierForItemProviderCompletionHandlerin interfaceNSItemProviderWriting
-
objectWithItemProviderDataTypeIdentifierError
@Nullable public static @Nullable NSUserActivity objectWithItemProviderDataTypeIdentifierError(@NotNull @NotNull NSData data, @NotNull @NotNull java.lang.String typeIdentifier, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
-
_objectWithItemProviderDataTypeIdentifierError
@Nullable public @Nullable NSUserActivity _objectWithItemProviderDataTypeIdentifierError(@NotNull @NotNull NSData data, @NotNull @NotNull java.lang.String typeIdentifier, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
- Specified by:
_objectWithItemProviderDataTypeIdentifierErrorin interfaceNSItemProviderReading
-
persistentIdentifier
@Nullable public @Nullable java.lang.String persistentIdentifier()
API-Since: 12.0
-
readableTypeIdentifiersForItemProvider
@NotNull public static @NotNull NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
-
_readableTypeIdentifiersForItemProvider
@NotNull public @NotNull NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
- Specified by:
_readableTypeIdentifiersForItemProviderin interfaceNSItemProviderReading
-
setEligibleForPrediction
public void setEligibleForPrediction(boolean value)
API-Since: 12.0
-
setPersistentIdentifier
public void setPersistentIdentifier(@Nullable @Nullable java.lang.String value)API-Since: 12.0
-
setSuggestedInvocationPhrase
public void setSuggestedInvocationPhrase(@Nullable @Nullable java.lang.String value)A human-understandable string that can be used to suggest a voice shortcut phrase to the user API-Since: 12.0
-
setTargetContentIdentifier
public void setTargetContentIdentifier(@Nullable @Nullable java.lang.String value)A string that identifies the content of this NSUserActivity, for matching against existing documents when re-opening to see if they are the same. Setting this property is optional and does not automatically set .needsSave to YES. API-Since: 13.0
-
suggestedInvocationPhrase
@Nullable public @Nullable java.lang.String suggestedInvocationPhrase()
A human-understandable string that can be used to suggest a voice shortcut phrase to the user API-Since: 12.0
-
targetContentIdentifier
@Nullable public @Nullable java.lang.String targetContentIdentifier()
A string that identifies the content of this NSUserActivity, for matching against existing documents when re-opening to see if they are the same. Setting this property is optional and does not automatically set .needsSave to YES. API-Since: 13.0
-
writableTypeIdentifiersForItemProvider_static
@NotNull public static @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
-
_writableTypeIdentifiersForItemProvider_static
@NotNull public @NotNull NSArray<java.lang.String> _writableTypeIdentifiersForItemProvider_static()
- Specified by:
_writableTypeIdentifiersForItemProvider_staticin interfaceNSItemProviderWriting
-
writableTypeIdentifiersForItemProvider
@NotNull public @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
-
contextIdentifierPath
@Nullable public @Nullable NSArray<java.lang.String> contextIdentifierPath()
Returns the context identifier path you should deep link to. For example for the context identifier path @c @["swift-programming-book", @c "chapter1"], your app should direct the user to @em chapter1 in @em swift-programming-book. API-Since: 11.3
-
isClassKitDeepLink
public boolean isClassKitDeepLink()
Returns whether the user activity is a ClassKit deep link. API-Since: 11.3
-
ndefMessagePayload
@NotNull public @NotNull NFCNDEFMessage ndefMessagePayload()
[@property] ndefMessagePayload The NFC NDEF message with an Universial Link object that triggers the application launch. API-Since: 12.0
-
setShortcutAvailability
public void setShortcutAvailability(long value)
Defines additional contexts in which this user activity is relevant to be suggested to the user. API-Since: 14.0
-
shortcutAvailability
public long shortcutAvailability()
Defines additional contexts in which this user activity is relevant to be suggested to the user. API-Since: 14.0
-
appClipActivationPayload
@Nullable public @Nullable APActivationPayload appClipActivationPayload()
[@property] appClipActivationPayload The activation payload object that triggers the app clip launch. API-Since: 14.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-