public class NSUserActivity extends NSObject implements NSItemProviderReading, NSItemProviderWriting
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSUserActivity.Block_deleteAllSavedUserActivitiesWithCompletionHandler |
static interface |
NSUserActivity.Block_deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler |
static interface |
NSUserActivity.Block_getContinuationStreamsWithCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retNSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler| Modifier | Constructor and Description |
|---|---|
protected |
NSUserActivity(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
long |
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier) |
NSUserActivity |
_objectWithItemProviderDataTypeIdentifierError(NSData data,
java.lang.String typeIdentifier,
org.moe.natj.general.ptr.Ptr<NSError> outError) |
NSArray<java.lang.String> |
_readableTypeIdentifiersForItemProvider() |
NSArray<java.lang.String> |
_writableTypeIdentifiersForItemProvider_static() |
static boolean |
accessInstanceVariablesDirectly() |
java.lang.String |
activityType()
The activityType the user activity was created with.
|
void |
addUserInfoEntriesFromDictionary(NSDictionary<?,?> otherDictionary)
Adds to the userInfo dictionary the entries from otherDictionary.
|
static NSUserActivity |
alloc() |
static NSUserActivity |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
APActivationPayload |
appClipActivationPayload()
[@property] appClipActivationPayload
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
void |
becomeCurrent()
Marks the receiver as the activity currently in use by the user, for example, the activity associated with the active window.
|
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() |
CSSearchableItemAttributeSet |
contentAttributeSet() |
NSArray<java.lang.String> |
contextIdentifierPath()
Returns the context identifier path you should deep link to.
|
static java.lang.String |
debugDescription_static() |
NSUserActivityDelegate |
delegate()
The user activity delegate is informed when the activity is being saved or continued (see NSUserActivityDelegate, below)
|
static void |
deleteAllSavedUserActivitiesWithCompletionHandler(NSUserActivity.Block_deleteAllSavedUserActivitiesWithCompletionHandler handler) |
static void |
deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(NSArray<java.lang.String> persistentIdentifiers,
NSUserActivity.Block_deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler handler) |
static java.lang.String |
description_static() |
CIBarcodeDescriptor |
detectedBarcodeDescriptor()
The scanned code in the user activity passed in by system scanner.
|
NSDate |
expirationDate()
If non-nil, then an absolute date after which this activity is no longer eligible to be indexed or handed off.
|
java.lang.String |
externalMediaContentIdentifier()
A unique identifier relative to the app's media content catalog for the displayed media item.
|
void |
getContinuationStreamsWithCompletionHandler(NSUserActivity.Block_getContinuationStreamsWithCompletionHandler completionHandler)
When an app is launched for a continuation event it can request streams back to the originating side.
|
static long |
hash_static() |
NSUserActivity |
init()
Initializes and returns a newly created NSUserActivity with the first activityType from the NSUserActivityTypes key in the application’s Info.plist.
|
NSUserActivity |
initWithActivityType(java.lang.String activityType)
Initializes and returns a newly created NSUserActivity with the given activityType.
|
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) |
INInteraction |
interaction() |
void |
invalidate()
Invalidate an activity when it's no longer eligible for continuation, for example, when the window associated with an activity is closed.
|
boolean |
isClassKitDeepLink()
Returns whether the user activity is a ClassKit deep link.
|
boolean |
isEligibleForHandoff()
Set to YES if this user activity should be eligible to be handed off to another device
|
boolean |
isEligibleForPrediction() |
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.
|
boolean |
isEligibleForSearch()
Set to YES if this user activity should be indexed by App History
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static long |
itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier) |
long |
itemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
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.
|
NSProgress |
loadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier,
NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
One of writableTypeIdentifiersForItemProvider
|
MKMapItem |
mapItem() |
NFCNDEFMessage |
ndefMessagePayload()
[@property] ndefMessagePayload
|
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.
|
static NSUserActivity |
new_objc() |
static NSUserActivity |
objectWithItemProviderDataTypeIdentifierError(NSData data,
java.lang.String typeIdentifier,
org.moe.natj.general.ptr.Ptr<NSError> outError) |
java.lang.String |
persistentIdentifier() |
static NSArray<java.lang.String> |
readableTypeIdentifiersForItemProvider() |
NSURL |
referrerURL()
The URL of the webpage that referred (linked to) webpageURL.
|
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.
|
void |
resignCurrent()
If this activity is the current activity, it should stop being so and set the current activity to nothing.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setContentAttributeSet(CSSearchableItemAttributeSet value) |
void |
setDelegate_unsafe(NSUserActivityDelegate value)
The user activity delegate is informed when the activity is being saved or continued (see NSUserActivityDelegate, below)
|
void |
setDelegate(NSUserActivityDelegate value)
The user activity delegate is informed when the activity is being saved or continued (see NSUserActivityDelegate, below)
|
void |
setEligibleForHandoff(boolean value)
Set to YES if this user activity should be eligible to be handed off to another device
|
void |
setEligibleForPrediction(boolean value) |
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.
|
void |
setEligibleForSearch(boolean value)
Set to YES if this user activity should be indexed by App History
|
void |
setExpirationDate(NSDate value)
If non-nil, then an absolute date after which this activity is no longer eligible to be indexed or handed off.
|
void |
setExternalMediaContentIdentifier(java.lang.String value)
A unique identifier relative to the app's media content catalog for the displayed media item.
|
void |
setKeywords(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.
|
void |
setMapItem(MKMapItem value) |
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.
|
void |
setPersistentIdentifier(java.lang.String value) |
void |
setReferrerURL(NSURL value)
The URL of the webpage that referred (linked to) webpageURL.
|
void |
setRequiredUserInfoKeys(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.
|
void |
setShortcutAvailability(long value)
Defines additional contexts in which this user activity is relevant to be suggested to the user.
|
void |
setSuggestedInvocationPhrase(java.lang.String value)
A human-understandable string that can be used to suggest a voice shortcut phrase to the user
|
void |
setSupportsContinuationStreams(boolean value)
When used for continuation, the user activity can allow the continuing side to connect back for more information using streams.
|
void |
setTargetContentIdentifier(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.
|
void |
setTitle(java.lang.String value)
An optional, user-visible title for this activity, such as a document name or web page title.
|
void |
setUserInfo(NSDictionary<?,?> value)
The userInfo dictionary contains application-specific state needed to continue an activity on another device.
|
static void |
setVersion_static(long aVersion) |
void |
setWebpageURL(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.
|
long |
shortcutAvailability()
Defines additional contexts in which this user activity is relevant to be suggested to the user.
|
java.lang.String |
suggestedInvocationPhrase()
A human-understandable string that can be used to suggest a voice shortcut phrase to the user
|
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
supportsContinuationStreams()
When used for continuation, the user activity can allow the continuing side to connect back for more information using streams.
|
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.
|
java.lang.String |
title()
An optional, user-visible title for this activity, such as a document name or web page title.
|
NSDictionary<?,?> |
userInfo()
The userInfo dictionary contains application-specific state needed to continue an activity on another device.
|
static long |
version_static() |
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.
|
static NSArray<java.lang.String> |
writableTypeIdentifiersForItemProvider_static() |
NSArray<java.lang.String> |
writableTypeIdentifiersForItemProvider() |
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 static NSUserActivity alloc()
public static NSUserActivity 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 NSUserActivity new_objc()
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 java.lang.String activityType()
public void addUserInfoEntriesFromDictionary(NSDictionary<?,?> otherDictionary)
public void becomeCurrent()
public CSSearchableItemAttributeSet contentAttributeSet()
public NSUserActivityDelegate delegate()
public NSDate expirationDate()
public void getContinuationStreamsWithCompletionHandler(NSUserActivity.Block_getContinuationStreamsWithCompletionHandler completionHandler)
public NSUserActivity init()
public NSUserActivity initWithActivityType(java.lang.String activityType)
public INInteraction interaction()
public void invalidate()
public boolean isEligibleForHandoff()
public void setEligibleForHandoff(boolean value)
public boolean isEligibleForPublicIndexing()
public void setEligibleForPublicIndexing(boolean value)
public boolean isEligibleForSearch()
public void setEligibleForSearch(boolean value)
public NSSet<java.lang.String> keywords()
public MKMapItem mapItem()
public boolean needsSave()
public NSSet<java.lang.String> requiredUserInfoKeys()
public void resignCurrent()
public void setContentAttributeSet(CSSearchableItemAttributeSet value)
public void setDelegate_unsafe(NSUserActivityDelegate value)
public void setDelegate(NSUserActivityDelegate value)
public void setExpirationDate(NSDate value)
public void setKeywords(NSSet<java.lang.String> value)
public void setMapItem(MKMapItem value)
public void setNeedsSave(boolean value)
public void setRequiredUserInfoKeys(NSSet<java.lang.String> value)
public void setSupportsContinuationStreams(boolean value)
public void setTitle(java.lang.String value)
public void setUserInfo(NSDictionary<?,?> value)
public void setWebpageURL(NSURL value)
public boolean supportsContinuationStreams()
public java.lang.String title()
public NSDictionary<?,?> userInfo()
public NSURL webpageURL()
public java.lang.String externalMediaContentIdentifier()
public NSURL referrerURL()
public void setExternalMediaContentIdentifier(java.lang.String value)
public void setReferrerURL(NSURL value)
public static void deleteAllSavedUserActivitiesWithCompletionHandler(NSUserActivity.Block_deleteAllSavedUserActivitiesWithCompletionHandler handler)
public static void deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(NSArray<java.lang.String> persistentIdentifiers, NSUserActivity.Block_deleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler handler)
public CIBarcodeDescriptor detectedBarcodeDescriptor()
public boolean isEligibleForPrediction()
public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
public long _itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static in interface NSItemProviderWritingpublic long itemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier)
public NSProgress loadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
NSItemProviderWritingloadDataWithTypeIdentifierForItemProviderCompletionHandler in interface NSItemProviderWritingpublic static NSUserActivity objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
public NSUserActivity _objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
_objectWithItemProviderDataTypeIdentifierError in interface NSItemProviderReadingpublic java.lang.String persistentIdentifier()
public static NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
public NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
_readableTypeIdentifiersForItemProvider in interface NSItemProviderReadingpublic void setEligibleForPrediction(boolean value)
public void setPersistentIdentifier(java.lang.String value)
public void setSuggestedInvocationPhrase(java.lang.String value)
public void setTargetContentIdentifier(java.lang.String value)
public java.lang.String suggestedInvocationPhrase()
public java.lang.String targetContentIdentifier()
public static NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
public NSArray<java.lang.String> _writableTypeIdentifiersForItemProvider_static()
_writableTypeIdentifiersForItemProvider_static in interface NSItemProviderWritingpublic NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
public NSArray<java.lang.String> contextIdentifierPath()
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.
public boolean isClassKitDeepLink()
public NFCNDEFMessage ndefMessagePayload()
The NFC NDEF message with an Universial Link object that triggers the application launch.
public void setShortcutAvailability(long value)
public long shortcutAvailability()
public APActivationPayload appClipActivationPayload()
The activation payload object that triggers the app clip launch.