Interim hand-authored reference. This page is authored from the SeamSDK public Swift sources. See the reference overview for context.
Overview
SeamUnlockEvent is a public enum representing the stages of a door unlock operation. The Seam.unlock(using:proximity:timeout:) method returns an AnyPublisher<SeamUnlockEvent, Never> that emits these events as the operation progresses.
Cases
| Case | Description |
|---|---|
launched | The unlock operation has started scanning for a lock. |
grantedAccess | The lock granted access; entry is allowed. |
timedOut | The unlock operation timed out before completing. |
connectionFailed(debugDescription: String?) | The unlock operation failed to connect. The associated debugDescription is an optional debug message with failure details. |
connectionFailed(debugDescription:)
debugDescription provides optional diagnostic details for debugging — do not display it directly to end users.
Example
Async/Await
Combine
Seam.unlock(using:proximity:timeout:), SeamUnlockProximity
