SeamUnlockEvent

public enum SeamUnlockEvent

Represents the stages of a door unlock operation performed by the Seam SDK.

Use the sequence of events to update your UI in response to connection status, success, timeouts, and errors.

Example (Async/Await):

do {
    let credentialId = "some_credential_id"
    let stream = try Seam.shared.unlock(using: credentialId).values
    for await event in stream {
        // Handle each unlock event
    }
} catch {
    // Handle error
}

See Also: Seam.unlock(using:timeout:)

  • The unlock operation has started scanning for a lock.

    Declaration

    Swift

    case launched
  • The lock granted access; entry is allowed.

    Declaration

    Swift

    case grantedAccess
  • The unlock operation timed out.

    Declaration

    Swift

    case timedOut
  • The unlock operation failed to connect.

    Declaration

    Swift

    case connectionFailed(debugDescription: String?)

    Parameters

    debugDescription

    Optional debug message providing failure details.