chrome.easyUnlockPrivate API that provides hooks to Chrome to be used by Easy Unlock component app.
chrome.easyUnlockPrivate API that provides hooks to Chrome to be used by Easy Unlock component app. * available since Chrome 38
(find-setup-connection setup-service-uuid time-out)
Finds and connects the remote BLE device that is advertising: |setupServiceUUID|. Returns when a connection is found or |timeOut| seconds have elapsed.
|setup-service-uuid| - ? |time-out| - ?
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 [connection-id] where:
|connection-id| - The identifier of the connection found. To be used in future calls refering to this connection.
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.
Finds and connects the remote BLE device that is advertising: |setupServiceUUID|. Returns when a connection is found or |timeOut| seconds have elapsed. |setup-service-uuid| - ? |time-out| - ? 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 [connection-id] where: |connection-id| - The identifier of the connection found. To be used in future calls refering to this connection. 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-strings)
Gets localized strings required to render the API.
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 [strings] where:
|strings| - ?
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.
Gets localized strings required to render the API. 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 [strings] where: |strings| - ? 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.
(hide-error-bubble)
Hides the currently visible error bubble, if there is one.
Hides the currently visible error bubble, if there is one.
(setup-connection-disconnect connection-id)
Disconnects the connection with |connectionId|.
|connection-id| - ?
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.
Disconnects the connection with |connectionId|. |connection-id| - ? 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.
(setup-connection-send connection-id data)
Sends |data| through the connection with |connnectionId|.
|connection-id| - ? |data| - ?
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.
Sends |data| through the connection with |connnectionId|. |connection-id| - ? |data| - ? 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.
(show-error-bubble message link-range link-target anchor-rect)
Shows an error bubble with the given |message|, anchored to an edge of the given |anchorRect| -- typically the right edge, but possibly a different edge if there is not space for the bubble to the right of the anchor rectangle. If the |link_range| is non-empty, renders the text within the |message| that is contained in the |link_range| as a link with the given |link_target| URL.
|message| - ? |link-range| - ? |link-target| - ? |anchor-rect| - ?
Shows an error bubble with the given |message|, anchored to an edge of the given |anchorRect| -- typically the right edge, but possibly a different edge if there is not space for the bubble to the right of the anchor rectangle. If the |link_range| is non-empty, renders the text within the |message| that is contained in the |link_range| as a link with the given |link_target| URL. |message| - ? |link-range| - ? |link-target| - ? |anchor-rect| - ?
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.easy-unlock-private namespace.
Taps all valid non-deprecated events in chromex.app.easy-unlock-private namespace.
(tap-on-connection-status-changed-events channel & args)
Event fired when |connectionId| change status.
Events will be put on the |channel| with signature [::on-connection-status-changed [connection-id old-status new-status]] where:
|connection-id| - ? |old-status| - ? |new-status| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Event fired when |connectionId| change status. Events will be put on the |channel| with signature [::on-connection-status-changed [connection-id old-status new-status]] where: |connection-id| - ? |old-status| - ? |new-status| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-data-received-events channel & args)
Event fired when |connectionId| receives |data|.
Events will be put on the |channel| with signature [::on-data-received [connection-id data]] where:
|connection-id| - ? |data| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Event fired when |connectionId| receives |data|. Events will be put on the |channel| with signature [::on-data-received [connection-id data]] where: |connection-id| - ? |data| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-send-completed-events channel & args)
Event fired when |connectionId| sends |data|. |success| is true if the send operation was successful.
Events will be put on the |channel| with signature [::on-send-completed [connection-id data success]] where:
|connection-id| - ? |data| - ? |success| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Event fired when |connectionId| sends |data|. |success| is true if the send operation was successful. Events will be put on the |channel| with signature [::on-send-completed [connection-id data success]] where: |connection-id| - ? |data| - ? |success| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close