Liking cljdoc? Tell your friends :D

chromex.app.system-indicator

clj

Manages an app's system indicator icon, an image displayed in the system's menubar, system tray, or other visible area provided by the OS. This is modelled after the other extension action APIs, such as chrome.browserAction and chrome.pageAction.

Manages an app's system indicator icon, an image displayed in the system's
menubar, system tray, or other visible area provided by the OS.
This is modelled after the other extension action APIs, such as
chrome.browserAction and chrome.pageAction.

  * available since Chrome 87
  * https://developer.chrome.com/apps/systemIndicator
raw docstring

api-tableclj

source

disableclj/smacro

(disable)
Hide the icon from the status tray.

https://developer.chrome.com/apps/systemIndicator#method-disable.
sourceraw docstring

disable*cljs

(disable* config)
source

enableclj/smacro

(enable)
Show the icon in the status tray.

https://developer.chrome.com/apps/systemIndicator#method-enable.
sourceraw docstring

enable*cljs

(enable* config)
source

gen-callclj

source

gen-wrapclj/smacro

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

on-clicked*cljs

(on-clicked* config channel & args)
source

set-iconclj/smacro

(set-icon details)

Set the image to be used as an indicator icon, using a set of ImageData objects. These objects should have multiple resolutions so that an appropriate size can be selected for the given icon size and DPI scaling settings. Only square ImageData objects are accepted.

|details| - https://developer.chrome.com/apps/systemIndicator#property-setIcon-details.

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 [].

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/apps/systemIndicator#method-setIcon.

Set the image to be used as an indicator icon, using a set of ImageData objects. These objects should have multiple
resolutions so that an appropriate size can be selected for the given icon size and DPI scaling settings. Only square
ImageData objects are accepted.

  |details| - https://developer.chrome.com/apps/systemIndicator#property-setIcon-details.

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 [].

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/apps/systemIndicator#method-setIcon.
sourceraw docstring

set-icon*cljs

(set-icon* config details)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.app.system-indicator namespace.

Taps all valid non-deprecated events in chromex.app.system-indicator namespace.
sourceraw docstring

tap-on-clicked-eventsclj/smacro

(tap-on-clicked-events channel & args)

Fired only when a click on the icon does not result in a menu being shown.

Events will be put on the |channel| with signature [::on-clicked []].

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

https://developer.chrome.com/apps/systemIndicator#event-onClicked.

Fired only when a click on the icon does not result in a menu being shown.

Events will be put on the |channel| with signature [::on-clicked []].

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

https://developer.chrome.com/apps/systemIndicator#event-onClicked.
sourceraw docstring

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

× close