🍎 Add fallback URL to handoff.
This commit is contained in:
parent
407a5d4415
commit
eb0889de38
5 changed files with 24 additions and 11 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue