Liking cljdoc? Tell your friends :D

chromex.app.quick-unlock-private

clj

Use the chrome.quickUnlockPrivate API to change whether the lock screen is enabled and which modes are allowed (active) for unlocking a Chrome OS device from the lock screen. The API is also used to set quick unlock credentials. Note: The API is named 'quickUnlock' for historical reasons but it should be used for all lock screen settings. Note: This API can not be used to actually unlock the device.

  • available since Chrome 53
Use the chrome.quickUnlockPrivate API to change whether the
lock screen is enabled and which modes are allowed (active) for unlocking a
Chrome OS device from the lock screen. The API is also used to set quick
unlock credentials.
Note: The API is named 'quickUnlock' for historical reasons but it should be
used for all lock screen settings.
Note: This API can not be used to actually unlock the device.

  * available since Chrome 53
raw docstring

api-tableclj

source

can-authenticate-pinclj/smacro

(can-authenticate-pin)

Tests wether it is currently possible to authenticate using PIN.

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

|value| - ?

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.

Tests wether it is currently possible to authenticate using PIN.

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

  |value| - ?

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.
sourceraw docstring

can-authenticate-pin*cljs

(can-authenticate-pin* config)
source

check-credentialclj/smacro

(check-credential mode credential)

Checks if the given credential can be used for the given unlock mode. Enterprise policy can change credential requirements.

|mode| - The quick unlock mode that is used. |credential| - The given credential.

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

|check| - ?

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 if the given credential can be used for the given unlock mode. Enterprise policy can change credential requirements.

  |mode| - The quick unlock mode that is used.
  |credential| - The given credential.

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

  |check| - ?

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.
sourceraw docstring

check-credential*cljs

(check-credential* config mode credential)
source

gen-callclj

source

gen-wrapclj/smacro

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

get-active-modesclj/smacro

(get-active-modes)

Returns the quick unlock modes that are currently enabled and usable on the lock screen.

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

|modes| - ?

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 quick unlock modes that are currently enabled and usable on the lock screen.

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

  |modes| - ?

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.
sourceraw docstring

get-active-modes*cljs

(get-active-modes* config)
source

get-auth-tokenclj/smacro

(get-auth-token account-password)

Returns a token that can be used for future operations and the number of seconds until the token expires.

|account-password| - The account password for the logged in 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 [result] where:

|result| - ?

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 a token that can be used for future operations and the number of seconds until the token expires.

  |account-password| - The account password for the logged in 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 [result] where:

  |result| - ?

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.
sourceraw docstring

get-auth-token*cljs

(get-auth-token* config account-password)
source

get-available-modesclj/smacro

(get-available-modes)

Returns the set of quick unlock modes that are available for the user to use. Some quick unlock modes may be disabled by policy.

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

|modes| - ?

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 set of quick unlock modes that are available for the user to use. Some quick unlock modes may be disabled by
policy.

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

  |modes| - ?

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.
sourceraw docstring

get-available-modes*cljs

(get-available-modes* config)
source

get-credential-requirementsclj/smacro

(get-credential-requirements mode)

Gets the credential requirements for the given unlock mode.

|mode| - The quick unlock mode that is used.

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

|requirements| - ?

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 the credential requirements for the given unlock mode.

  |mode| - The quick unlock mode that is used.

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

  |requirements| - ?

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.
sourceraw docstring

get-credential-requirements*cljs

(get-credential-requirements* config mode)
source

on-active-modes-changed*cljs

(on-active-modes-changed* config channel & args)
source

set-lock-screen-enabledclj/smacro

(set-lock-screen-enabled token enabled)

Sets the lock screen enabled state. NOTE: The lock enabled state is reflected in the settings.enable_screen_lock pref, which can be read but not written using the settings_private API (which also provides policy information). This API must be used to change the pref.

|token| - The token returned by 'getAuthToken'. |enabled| - Whether to enable the lock screen.

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.

Sets the lock screen enabled state. NOTE: The lock enabled state is reflected in the settings.enable_screen_lock pref,
which can be read but not written using the settings_private API (which also provides policy information). This API must be
used to change the pref.

  |token| - The token returned by 'getAuthToken'.
  |enabled| - Whether to enable the lock screen.

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.
sourceraw docstring

set-lock-screen-enabled*cljs

(set-lock-screen-enabled* config token enabled)
source

set-modesclj/smacro

(set-modes token modes credentials)

Update the set of quick unlock modes that are currently active/enabled.

|token| - The token returned by 'getAuthToken'. |modes| - The quick unlock modes that should be active. |credentials| - The associated credential for each mode. To keep the credential the same for the associated mode, pass an empty string.

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.

Update the set of quick unlock modes that are currently active/enabled.

  |token| - The token returned by 'getAuthToken'.
  |modes| - The quick unlock modes that should be active.
  |credentials| - The associated credential for each mode. To keep the     credential the same for the associated mode,
                  pass an empty string.

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.
sourceraw docstring

set-modes*cljs

(set-modes* config token modes credentials)
source

set-pin-autosubmit-enabledclj/smacro

(set-pin-autosubmit-enabled token pin enabled)

Sets the PIN auto submit enabled state. NOTE: The PIN autosubmit state is reflected in the pin_unlock_autosubmit_enabled pref, which can be read but not written using the settings_private API (which also provides policy information). This API must be used to change the pref.

|token| - The authentication token. |pin| - The PIN of the logged in user. |enabled| - Whether to enable PIN auto submit.

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

|value| - ?

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.

Sets the PIN auto submit enabled state. NOTE: The PIN autosubmit state is reflected in the pin_unlock_autosubmit_enabled
pref, which can be read but not written using the settings_private API (which also provides policy information). This API
must be used to change the pref.

  |token| - The authentication token.
  |pin| - The PIN of the logged in user.
  |enabled| - Whether to enable PIN auto submit.

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

  |value| - ?

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.
sourceraw docstring

set-pin-autosubmit-enabled*cljs

(set-pin-autosubmit-enabled* config token pin enabled)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.app.quick-unlock-private namespace.

Taps all valid non-deprecated events in chromex.app.quick-unlock-private namespace.
sourceraw docstring

tap-on-active-modes-changed-eventsclj/smacro

(tap-on-active-modes-changed-events channel & args)

Called after the active set of quick unlock modes has changed.

Events will be put on the |channel| with signature [::on-active-modes-changed [active-modes]] where:

|active-modes| - The set of quick unlock modes which are now active.

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

Called after the active set of quick unlock modes has changed.

Events will be put on the |channel| with signature [::on-active-modes-changed [active-modes]] where:

  |active-modes| - The set of quick unlock modes which are now active.

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

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

× close