Structures

The following structures are available globally.

  • Represents a Seam access credential for display, selection, and management.

    • Example:

      let credential = SeamCredential(
        id: "123",
        name: "Main Door",
        location: "Lobby",
        expiry: Date().addingTimeInterval(3600),
        cardNumber: "0001",
        code: nil,
        errors: []
      )
      

    Note

    Instances are immutable snapshots; refresh by reading Seam.shared.credentials.

    See more

    Declaration

    Swift

    public struct SeamCredential : Equatable, Hashable

    Parameters

    id

    The unique identifier for this credential.

    name

    The display name for this credential.

    location

    The credential’s associated location.

    expiry

    The expiration date of the credential, if available.

    cardNumber

    The card number for this credential, if any.

    code

    The access code for this credential, if any.

    errors

    List of credential-specific errors in priority order.