Liking cljdoc? Tell your friends :D

chromex.ext.instance-id

clj

Use chrome.instanceID to access the Instance ID service.

Use chrome.instanceID to access the Instance ID service.

* available since Chrome 46
* https://developer.chrome.com/extensions/instanceID
raw docstring

api-tableclj

source

delete-idclj/smacro

(delete-id)

Resets the app instance identifier and revokes all tokens associated with it.

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/extensions/instanceID#method-deleteID.

Resets the app instance identifier and revokes all tokens associated with it.

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/extensions/instanceID#method-deleteID.
sourceraw docstring

delete-id*cljs

(delete-id* config)
source

delete-tokenclj/smacro

(delete-token delete-token-params)

Revokes a granted token.

|delete-token-params| - Parameters for deleteToken.

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/extensions/instanceID#method-deleteToken.

Revokes a granted token.

  |delete-token-params| - Parameters for deleteToken.

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/extensions/instanceID#method-deleteToken.
sourceraw docstring

delete-token*cljs

(delete-token* config delete-token-params)
source

gen-callclj

source

gen-wrapclj/smacro

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

get-creation-timeclj/smacro

(get-creation-time)

Retrieves the time when the InstanceID has been generated. The creation time will be returned by the callback.

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 [creation-time] where:

|creation-time| - The time when the Instance ID has been generated, represented in milliseconds since the epoch.

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/instanceID#method-getCreationTime.

Retrieves the time when the InstanceID has been generated. The creation time will be returned by the callback.

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 [creation-time] where:

  |creation-time| - The time when the Instance ID has been generated, represented in milliseconds since the epoch.

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/instanceID#method-getCreationTime.
sourceraw docstring

get-creation-time*cljs

(get-creation-time* config)
source

get-idclj/smacro

(get-id)

Retrieves an identifier for the app instance. The instance ID will be returned by the callback. The same ID will be returned as long as the application identity has not been revoked or expired.

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 [instance-id] where:

|instance-id| - An Instance ID assigned to the app instance.

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/instanceID#method-getID.

Retrieves an identifier for the app instance. The instance ID will be returned by the callback. The same ID will be
returned as long as the application identity has not been revoked or expired.

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 [instance-id] where:

  |instance-id| - An Instance ID assigned to the app instance.

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/instanceID#method-getID.
sourceraw docstring

get-id*cljs

(get-id* config)
source

get-tokenclj/smacro

(get-token get-token-params)

Return a token that allows the authorized entity to access the service defined by scope.

|get-token-params| - Parameters for getToken.

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 [token] where:

|token| - A token assigned by the requested service.

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/instanceID#method-getToken.

Return a token that allows the authorized entity to access the service defined by scope.

  |get-token-params| - Parameters for getToken.

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 [token] where:

  |token| - A token assigned by the requested service.

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/instanceID#method-getToken.
sourceraw docstring

get-token*cljs

(get-token* config get-token-params)
source

on-token-refresh*cljs

(on-token-refresh* config channel & args)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.instance-id namespace.

Taps all valid non-deprecated events in chromex.ext.instance-id namespace.
sourceraw docstring

tap-on-token-refresh-eventsclj/smacro

(tap-on-token-refresh-events channel & args)

Fired when all the granted tokens need to be refreshed.

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

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

https://developer.chrome.com/extensions/instanceID#event-onTokenRefresh.

Fired when all the granted tokens need to be refreshed.

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

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

https://developer.chrome.com/extensions/instanceID#event-onTokenRefresh.
sourceraw docstring

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

× close