From 51daf8e194d6d5660c29736f6dd1dc07d2ad24ee Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Tue, 31 May 2016 13:37:45 +0530 Subject: [PATCH] add docs --- docs/api/web-contents.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 89d7e1245d77..941879b7f746 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -373,6 +373,22 @@ The `editFlags` is an object with the following properties: Emitted when there is a new context menu that needs to be handled. +### Event: 'select-bluetooth-device' + +Returns: + +* `event` Event +* `devices` [Objects] + * `deviceName` String + * `deviceId` String +* `callback` Function + * `deviceId` String + +Emitted when bluetooth device needs to be selected on call to +`navigator.bluetooth.requestDevice`. If `event.preventDefault` is not called, +first available device will be selected. `callback` should be called with `deviceId` +to be selected. + ## Instance Methods The `webContents` object has the following instance methods: