* available since Chrome 27
(get-offer-info id)
Check in Local State for the offer info.
|id| - The service id of the offer eligibility check.
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 [result] where:
|result| - The returned offer info. If the offer info is not available, api will raise error.
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.
Check in Local State for the offer info. |id| - The service id of the offer eligibility check. 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 [result] where: |result| - The returned offer info. If the offer info is not available, api will raise error. 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.
(get-oobe-timestamp)
Get the OOBE timestamp.
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 [result] where:
|result| - The OOBE timestamp.
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.
Get the OOBE timestamp. 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 [result] where: |result| - The OOBE timestamp. 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.
(get-registration-code type)
Get the group or coupon code from underlying storage.
|type| - Type of coupon code requested to be read (coupon or group).
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 [result] where:
|result| - The coupon code.
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.
Get the group or coupon code from underlying storage. |type| - Type of coupon code requested to be read (coupon or group). 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 [result] where: |result| - The coupon code. 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.
(get-user-consent consent-requester)
If device policy allows user to redeem offer, displays a native dialog asking user for a consent to verify device's eligibility for the offer. If the device policy forbids user to redeem offers, displays a native dialog informing user the offer redeeming is disabled.
|consent-requester| - Information about the service requesting user consent.
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 [result] where:
|result| - Whether the user consent was given.
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.
If device policy allows user to redeem offer, displays a native dialog asking user for a consent to verify device's eligibility for the offer. If the device policy forbids user to redeem offers, displays a native dialog informing user the offer redeeming is disabled. |consent-requester| - Information about the service requesting user consent. 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 [result] where: |result| - Whether the user consent was given. 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.
(set-offer-info id offer-info)
Sets the offer info in Local State.
|id| - The service id of the echo offer. |offer-info| - The offer info.
Sets the offer info in Local State. |id| - The service id of the echo offer. |offer-info| - The offer info.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.echo-private namespace.
Taps all valid non-deprecated events in chromex.app.echo-private namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close