Use the chrome.usersPrivate API to manage users.
Use the chrome.usersPrivate API to manage users. * available since Chrome master
(add-user email)
Adds a new user with the given email to the user list. The callback is called with true if the user was added succesfully, or with false if not (e.g. because the user was already present, or the current user isn't the owner).
|email| - ?
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 [success] where:
|success| - ?
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.
Adds a new user with the given email to the user list. The callback is called with true if the user was added succesfully, or with false if not (e.g. because the user was already present, or the current user isn't the owner). |email| - ? 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 [success] where: |success| - ? 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-current-user)
Returns the current user.
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 [user] where:
|user| - ?
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.
Returns the current user. 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 [user] where: |user| - ? 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-login-status)
Get login status.
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 [status] where:
|status| - ?
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 login status. 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 [status] where: |status| - ? 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-users)
Gets a list of known users.
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 [users] where:
|users| - ?
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 a list of known users. 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 [users] where: |users| - ? 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.
(is-user-in-list email)
Checks to see if the user is already present in the user list.
|email| - ?
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 [found] where:
|found| - ?
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.
Checks to see if the user is already present in the user list. |email| - ? 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 [found] where: |found| - ? 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.
(is-user-list-managed)
Whether the user list is managed by enterprise.
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 [managed] where:
|managed| - ?
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.
Whether the user list is managed by enterprise. 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 [managed] where: |managed| - ? 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.
(remove-user email)
Removes the user with the given email from the user list. The callback is called with true if the user was removed succesfully, or with false if not (e.g. because the user was not already present, or the current user isn't the owner).
|email| - ?
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 [success] where:
|success| - ?
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.
Removes the user with the given email from the user list. The callback is called with true if the user was removed succesfully, or with false if not (e.g. because the user was not already present, or the current user isn't the owner). |email| - ? 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 [success] where: |success| - ? 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.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.users-private namespace.
Taps all valid non-deprecated events in chromex.ext.users-private namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close