BookOpeningPolicy

public enum BookOpeningPolicy : Equatable, Sendable

The policy to pass back to the callback from the willOpenBook(_:currentPolicy:callback:) method.

  • allow: Allow opening of this book
  • deny: Deny opening of this book
  • Additional explanation about the reason of book opening denial.

    • noAccess: The token was expired, revoked, malformed, or invalid for other reasons.
    • noEntitlements: The token was valid, but the user does not have access to this content.
    • noToken: Book access check couldn’t be performed because the token wasn’t provided by the TokenProvider.
    • networkError: Book access check couldn’t be performed because of a network error (e.g. offline mode).
    • deniedByHost: The implementor of BookOpening protocol decided to deny access to this book for any reason.
    See more

    Declaration

    Swift

    public enum DenialReason : Sendable
  • Undocumented

    Declaration

    Swift

    case allow
  • Undocumented

    Declaration

    Swift

    case deny(DenialReason)