This API is experimental. It is only available to Chrome users on the
dev channel.
chrome.signedInDevices
| Description: |
Use the chrome.signedInDevices API to get a list of devices
signed into chrome with the same account as the current profile.
|
| Availability: |
Dev channel only.
|
| Permissions: |
"signedInDevices"
|
Types
DeviceInfo
| properties |
| string |
name |
Name of the device. This name is usually set by the user when setting up a device.
|
| string |
id |
Unique Id for this device. Note: The id is meaningful only in the current device. This id cannot be used to refer to the same device from another device or extension.
|
enum of "win", "mac", "linux", "chrome_os", "android", "ios", or "unknown" |
os |
The OS of the device.
|
enum of "desktop_or_laptop", "phone", "tablet", or "unknown" |
type |
Device Type.
|
| string |
chromeVersion |
Version of chrome running in this device.
|
Methods
get
chrome.signedInDevices.get(boolean isLocal, function callback)
Gets the array of signed in devices, signed into the same account as the current profile.
| Parameters |
| boolean |
(optional)
isLocal |
If true only return the information for the local device. If false or omitted return the list of all devices including the local device.
|
| function |
callback |
The callback to be invoked with the array of DeviceInfo objects.
The callback parameter should be a function
that looks like this:
function(array of DeviceInfo devices) {...};
|
Events
onDeviceInfoChange
Fired if the DeviceInfo object of any of the signed in devices change or a new device is added or a device removed.
addListener
chrome.signedInDevices.onDeviceInfoChange.addListener(function callback)
| Parameters |
| function |
callback |
The callback parameter should be a function
that looks like this:
function(array of DeviceInfo devices) {...};
|
|