Merge pull request #5658 from danhp/handoff-fallback

Add fallback URL to handoff
This commit is contained in:
Cheng Zhao 2016-05-25 01:13:03 +00:00
commit f34cd8767c
5 changed files with 24 additions and 11 deletions

View file

@ -496,11 +496,13 @@ app.on('ready', () => {
});
```
### `app.setUserActivity(type, userInfo)` _OS X_
### `app.setUserActivity(type, userInfo[, webpageURL])` _OS X_
* `type` String - Uniquely identifies the activity. Maps to
[`NSUserActivity.activityType`][activity-type].
* `userInfo` Object - App-specific state to store for use by another device.
* `webpageURL` String - The webpage to load in a browser if no suitable app is
installed on the resuming device. The scheme must be `http` or `https`.
Creates an `NSUserActivity` and sets it as the current activity. The activity
is eligible for [Handoff][handoff] to another device afterward.