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/apps/instanceID
(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/apps/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/apps/instanceID#method-deleteID.
(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/apps/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/apps/instanceID#method-deleteToken.
(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/apps/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/apps/instanceID#method-getCreationTime.
(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.
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/apps/instanceID#method-getID.
(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/apps/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/apps/instanceID#method-getToken.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.instance-id namespace.
Taps all valid non-deprecated events in chromex.app.instance-id namespace.
(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/apps/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/apps/instanceID#event-onTokenRefresh.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close