Liking cljdoc? Tell your friends :D

chromex.ext.signed-in-devices

clj

Use the chrome.signedInDevices API to get a list of devices signed into chrome with the same account as the current profile.

Use the chrome.signedInDevices API to get a list of devices
signed into chrome with the same account as the current profile.

  * available since Chrome 81
  * https://developer.chrome.com/extensions/signedInDevices
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

getclj/smacro

(get)
(get is-local)

Gets the array of signed in devices, signed into the same account as the current profile.

|is-local| - If true only return the information for the local device. If false or omitted return the list of all devices including the local device.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [devices] where:

|devices| - https://developer.chrome.com/extensions/signedInDevices#property-callback-devices.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

https://developer.chrome.com/extensions/signedInDevices#method-get.

Gets the array of signed in devices, signed into the same account as the current profile.

  |is-local| - If true only return the information for the local device. If false or omitted return the list of all
               devices including the local device.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [devices] where:

  |devices| - https://developer.chrome.com/extensions/signedInDevices#property-callback-devices.

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.

https://developer.chrome.com/extensions/signedInDevices#method-get.
sourceraw docstring

get*cljs

(get* config is-local)
source

on-device-info-change*cljs

(on-device-info-change* config channel & args)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.signed-in-devices namespace.

Taps all valid non-deprecated events in chromex.ext.signed-in-devices namespace.
sourceraw docstring

tap-on-device-info-change-eventsclj/smacro

(tap-on-device-info-change-events channel & args)

Fired when the DeviceInfo object of any of the signed in devices changes, or when a device is added or removed.

Events will be put on the |channel| with signature [::on-device-info-change [devices]] where:

|devices| - The array of all signed in devices.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/extensions/signedInDevices#event-onDeviceInfoChange.

Fired when the DeviceInfo object of any of the signed in devices changes, or when a device is added or removed.

Events will be put on the |channel| with signature [::on-device-info-change [devices]] where:

  |devices| - The array of all signed in devices.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/extensions/signedInDevices#event-onDeviceInfoChange.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close