Contents

getState(_:)

Gets the state of the credential identity store.

Declaration

func getState(_ completion: @escaping  @Sendable (ASCredentialIdentityStoreState) -> Void)
func state() async -> ASCredentialIdentityStoreState

Parameters

  • completion:

    A block the method calls to return the current identity store state.

Discussion

Call this method to find out the current state of the store before attempting to call other store methods. Examine the ASCredentialIdentityStoreState value passed to your completion handler to find out whether the store is enabled and whether it supports incremental updates.

See Also

Checking the state of the store