Overview
Instance Properties
credentials
A published list of current credentials, automatically synchronized in the background. Subscribe to updates to refresh your UI or business logic.
isActive
A published Boolean indicating whether the SDK is active. Use this to enable or disable UI or logic based on the SDK’s activation state.
Instance Methods
activate()
Starts the SDK to begin credential synchronization and processing.
deactivate(deintegrate:)
Stops the SDK and releases resources, optionally removing device association.
| Parameter | Description |
|---|---|
deintegrate | If true, performs a full deintegration; if false, logs out and retains device endpoints. Defaults to false. |
refresh()
Requests the latest credential list and updates the published credentials property.
unlock(using:proximity:timeout:)
Unlocks a door or device using the given credential ID.
| Parameter | Description |
|---|---|
credentialId | The identifier of the credential to use for unlocking. |
proximity | The required proximity for this unlock attempt. If nil, the SDK uses the credential’s default (the first value in supportedUnlockProximities). |
timeout | The maximum time, in seconds, to wait for the unlock operation. Defaults to 10. |
Type Properties
shared
The shared singleton instance of Seam.
Type Methods
initialize(clientSessionToken:)
Sets up the SDK using the provided client session token.
| Parameter | Description |
|---|---|
clientSessionToken | Optional - A valid client session token string. |