@@ -149,6 +149,53 @@ ID as the activity's source app and that supports the activity's type.
149149Supported activity types are specified in the app's ` Info.plist ` under the
150150` NSUserActivityTypes ` key.
151151
152+ ### Event: 'will-continue-activity' _ macOS_
153+
154+ Returns:
155+
156+ * ` event ` Event
157+ * ` type ` String - A string identifying the activity. Maps to
158+ [ ` NSUserActivity.activityType ` ] [ activity-type ] .
159+
160+ Emitted during [ Handoff] [ handoff ] before an activity from a different device wants
161+ to be resumed. You should call ` event.preventDefault() ` if you want to handle
162+ this event.
163+
164+ ### Event: 'continue-activity-error' _ macOS_
165+
166+ Returns:
167+
168+ * ` event ` Event
169+ * ` type ` String - A string identifying the activity. Maps to
170+ [ ` NSUserActivity.activityType ` ] [ activity-type ] .
171+ * ` error ` String - A string with the error's localized description.
172+
173+ Emitted during [ Handoff] [ handoff ] when an activity from a different device
174+ fails to be resumed.
175+
176+ ### Event: 'activity-was-continued' _ macOS_
177+
178+ Returns:
179+
180+ * ` event ` Event
181+ * ` type ` String - A string identifying the activity. Maps to
182+ [ ` NSUserActivity.activityType ` ] [ activity-type ] .
183+ * ` userInfo ` Object - Contains app-specific state stored by the activity.
184+
185+ Emitted during [ Handoff] [ handoff ] after an activity from this device was successfully
186+ resumed.
187+
188+ ### Event: 'update-activity-state' _ macOS_
189+
190+ Returns:
191+
192+ * ` event ` Event
193+ * ` type ` String - A string identifying the activity. Maps to
194+ [ ` NSUserActivity.activityType ` ] [ activity-type ] .
195+ * ` userInfo ` Object - Contains app-specific state stored by the activity.
196+
197+ Emitted during [ Handoff] [ handoff ] when its user info should be updated before resuming.
198+
152199### Event: 'new-window-for-tab' _ macOS_
153200
154201Returns:
@@ -748,6 +795,25 @@ is eligible for [Handoff][handoff] to another device afterward.
748795
749796Returns ` String ` - The type of the currently running activity.
750797
798+ ### ` app.invalidateCurrentActivity() ` _ macOS_
799+
800+ * ` type ` String - Uniquely identifies the activity. Maps to
801+ [ ` NSUserActivity.activityType ` ] [ activity-type ] .
802+ * ` userInfo ` Object - App-specific state to store for use by another device.
803+ * ` webpageURL ` String (optional) - The webpage to load in a browser if no suitable app is
804+ installed on the resuming device. The scheme must be ` http ` or ` https ` .
805+
806+ Invalidates de current Handoff user activity.
807+
808+ ### ` app.updateCurrentActivity(type, userInfo[, webpageURL]) ` _ macOS_
809+
810+ * ` type ` String - Uniquely identifies the activity. Maps to
811+ [ ` NSUserActivity.activityType ` ] [ activity-type ] .
812+ * ` userInfo ` Object - App-specific state to store for use by another device.
813+
814+ Updates the current ` NSUserActivity ` if its type matches ` type ` , merging the entries from
815+ ` userInfo ` into its current userInfo dictionary.
816+
751817### ` app.setAppUserModelId(id) ` _ Windows_
752818
753819* ` id ` String
0 commit comments