Platforms to show: All Mac Windows Linux Cross-Platform

NSUserActivityMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Handoff MBS MacFrameworks Plugin 24.4 ✅ Yes ❌ No ❌ No ✅ Yes All
A representation of the state of your app at a moment in time.
Example
userActivity = New NSUserActivityMBS("de.monkeybreadsoftware.example.handoff")
userActivity.title = "Example"
userActivity.EligibleForHandoff = True

An NSUserActivity object provides a lightweight way to capture the state of your app and put it to use later. Create this object to capture information about what a person was doing, such as viewing app content, editing a document, viewing a web page, or watching a video. When the system launches your app and an activity object is available, your app can use the information in that object to restore itself to an appropriate state. Spotlight also uses these objects to improve search results for people.

see also
https://developer.apple.com/documentation/foundation/nsuseractivity?language=objc
and
https://developer.apple.com/documentation/foundation/nsuseractivity/creating_a_user_activity_object?language=objc

This class has no sub classes.

Blog Entries

Release notes

Some methods using this class:

Some events using this class:

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS MacFrameworks Plugin.


NSUserActivityEventsMBS   -   NSUserAppleScriptTaskMBS


The biggest plugin in space...