PrintState

public enum PrintState

This enum controls the state of printing and associated state / navigation updates

  • The default state of print

    Declaration

    Swift

    case initial
  • Set this state when printing has started to show printing progress

    • message: A string message you want to show in place of the textfields text while progress is happening.

    Declaration

    Swift

    case inProgress(message: String? = nil)
  • Set state to error when printing fails due to an error

    • message: A string message of the error that has occurred.

    Declaration

    Swift

    case error(message: String)
  • Set state to complete when printing has successfully completed

    • message: A string message you want to show in place of the textfields text when the operation succeeds.

    Declaration

    Swift

    case complete(message: String? = nil)