Liking cljdoc? Tell your friends :D

chromex.app.app.runtime

clj

Use the chrome.app.runtime API to manage the app lifecycle. The app runtime manages app installation, controls the event page, and can shut down the app at anytime.

Use the chrome.app.runtime API to manage the app lifecycle.
The app runtime manages app installation, controls the event page, and can
shut down the app at anytime.

  * available since Chrome 36
  * https://developer.chrome.com/apps/app.runtime
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

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

on-embed-requested*cljs

(on-embed-requested* config channel & args)
source

on-launched*cljs

(on-launched* config channel & args)
source

on-restarted*cljs

(on-restarted* config channel & args)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

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

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

tap-on-embed-requested-eventsclj/smacro

(tap-on-embed-requested-events channel & args)

Fired when an embedding app requests to embed this app. This event is only available on dev channel with the flag --enable-app-view.

Events will be put on the |channel| with signature [::on-embed-requested [request]] where:

|request| - https://developer.chrome.com/apps/app.runtime#property-onEmbedRequested-request.

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

https://developer.chrome.com/apps/app.runtime#event-onEmbedRequested.

Fired when an embedding app requests to embed this app. This event is only available on dev channel with the flag
--enable-app-view.

Events will be put on the |channel| with signature [::on-embed-requested [request]] where:

  |request| - https://developer.chrome.com/apps/app.runtime#property-onEmbedRequested-request.

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

https://developer.chrome.com/apps/app.runtime#event-onEmbedRequested.
sourceraw docstring

tap-on-launched-eventsclj/smacro

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

Fired when an app is launched from the launcher.

Events will be put on the |channel| with signature [::on-launched [launch-data]] where:

|launch-data| - https://developer.chrome.com/apps/app.runtime#property-onLaunched-launchData.

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

https://developer.chrome.com/apps/app.runtime#event-onLaunched.

Fired when an app is launched from the launcher.

Events will be put on the |channel| with signature [::on-launched [launch-data]] where:

  |launch-data| - https://developer.chrome.com/apps/app.runtime#property-onLaunched-launchData.

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

https://developer.chrome.com/apps/app.runtime#event-onLaunched.
sourceraw docstring

tap-on-restarted-eventsclj/smacro

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

Fired at Chrome startup to apps that were running when Chrome last shut down, or when apps have been requested to restart from their previous state for other reasons (e.g. when the user revokes access to an app's retained files the runtime will restart the app). In these situations if apps do not have an onRestarted handler they will be sent an onLaunched event instead.

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

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

https://developer.chrome.com/apps/app.runtime#event-onRestarted.

Fired at Chrome startup to apps that were running when Chrome last shut down, or when apps have been requested to restart
from their previous state for other reasons (e.g. when the user revokes access to an app's retained files the runtime will
restart the app). In these situations if apps do not have an onRestarted handler they will be sent an onLaunched  event
instead.

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

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

https://developer.chrome.com/apps/app.runtime#event-onRestarted.
sourceraw docstring

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

× close