Struct StoreCapabilities
Properties of one credential store that can affect application behavior.
struct StoreCapabilities;
Read capabilities when choosing a store, presenting storage options to the user, or deciding where an operation should run.
Fields
| Name | Type | Description |
|---|---|---|
blocking
|
StoreBlocking | Whether normal operations can block or ask the user to interact. |
concurrency
|
StoreConcurrency | How one store instance may be shared between threads. |
confirmsLogicalDeletion
|
bool | Whether successful remove() means this store will no longer return the credential. |
mobility
|
StoreMobility | Where saved credentials may become available. |
persistent
|
bool | Whether saved credentials are intended to survive application restart. |
protection
|
StoreProtection | Where protection of saved credentials is provided. |
unlockModel
|
StoreUnlockModel | Who controls unlocking before saved credentials can be used. |
Examples
const caps = store .capabilities;
if (caps .blocking == StoreBlocking .mayPrompt)
{
// Run the operation away from the render/UI thread.
}