4.1. StarIoExt

ヒューマンリーダブルなコマンド生成や周辺機器操作などの機能を提供します。

4.1.1. StarIoExtEmulation

エミュレーション指定定数です。

  • 宣言

    public enum StarIoExtEmulation : Int {
        case none
        case starPRNT
        case starLine
        case starGraphic
        case escPos
        case escPosMobile
        case starDotImpact
        case starPRNTL
    }
    
  • 定数

    名称

    説明

    starPRNT

    StarPRNT エミュレーション

    starPRNTL

    StarPRNTL エミュレーション

    starLine

    STAR Line Mode エミュレーション

    starGraphic

    STAR Graphic Mode エミュレーション

    escPos

    ESC/POS エミュレーション

    escPosMobile

    ESC/POS Mobile エミュレーション

    starDotImpact

    STAR ドットインパクト エミュレーション

  1. StarPRNTL エミュレーションについて

    ラスターイメージ印字コマンドを生成する appendBitmap 系メソッドでコマンドサイズを削減したStarPRNTエミュレーションです。 ラスターイメージコマンド送信に掛かる時間が短縮されます。

    StarPRNT エミュレーションをサポートするモデルのうち、一部モデルのみ選択可能です。 使用可能なモデルは 対応プリンター を参照ください。

各モデルに対して適用すべきEmulation定数は以下のとおりです。

モデル

エミュレーション

定数

mC-Print2 StarPRNT

starPRNT

mC-Print3 StarPRNT

starPRNT

mC-Label3 StarPRNT

starPRNT

mPOP StarPRNT

starPRNT

FVP10 StarLine

starLine

TSP100IV StarPRNT

starPRNT

TSP100IV SK StarPRNT

starPRNT

TSP100IIIW StarGraphic

starGraphic

TSP100IIILAN StarGraphic

starGraphic

TSP100IIIBI StarGraphic

starGraphic

TSP100IIIU StarGraphic

starGraphic

TSP100IIU+ StarGraphic

starGraphic

TSP100ECO StarGraphic

starGraphic

TSP100U StarGraphic

starGraphic

TSP100GT StarGraphic

starGraphic

TSP100LAN StarGraphic

starGraphic

TSP650II StarLine

starLine

TSP650IISK StarLine

starLine

TSP700II StarLine

starLine

TSP800II StarLine

starLine

BSC10 StarLine

escPos

SM-S210i StarPRNT

starPRNT

EscPosMobile

escPosMobile

SM-S220i StarPRNT

starPRNT

EscPosMobile

escPosMobile

SM-S230i StarPRNT

starPRNT

EscPosMobile

escPosMobile

SM-T300i/T300 StarPRNT

starPRNT

EscPosMobile

escPosMobile

SM-T400i StarPRNT

starPRNT

EscPosMobile

escPosMobile

SM-L200 StarPRNT

starPRNT

starPRNTL

SM-L300 StarPRNT

starPRNT

starPRNTL

SP700 StarDotImpact

starDotImpact

4.1.2. StarIoExtCharacterCode

文字コード指定定数です。

  • 宣言

    public enum StarIoExtCharacterCode : Int {
        case none
        case standard
        case japanese
        case simplifiedChinese
        case traditionalChinese
    }
    
  • 定数

    名称

    説明

    standard

    スタンダード

    japanese

    日本語

    simplifiedChinese

    簡体字中国語

    traditionalChinese

    繁体字中国語

4.1.3. StarIoExtBcrModel

バーコードリーダーモデル指定定数です。

  • 宣言

    public enum StarIoExtBcrModel : Int {
        case none
        case POP1
        case DS9208
    }
    
  • 定数

    名称

    説明

    ライブラリバージョン

    POP1

    バーコードリーダー BCR-POP1

    USB HIDクラス(キーボードモード)

    1.3.0+

    DS9208

    バーコードリーダー DS9208

    1.12.0+

4.1.4. StarIoExtDisplayModel

added in version 1.7.0

カスタマーディスプレイモデル指定定数です。

  • 宣言

    public enum StarIoExtDisplayModel : Int {
        case none
        case SCD222
    }
    
  • 定数

    名称

    説明

    SCD222

    カスタマーディスプレイ SCD222U

4.1.5. StarIoExtMelodySpeakerModel

added in version 1.12.0

メロディスピーカーモデル指定定数です。

  • 宣言

    public enum StarIoExtMelodySpeakerModel : UInt {
        case none
        case MCS10
        case FVP10
    }
    
  • 定数

    名称

    説明

    MCS10

    メロディスピーカー MCS10

    FVP10

    FVP10 内蔵スピーカー

4.1.6. createCommandBuilder

コマンド生成オブジェクトを生成します。

  • 宣言

    open class func createCommandBuilder(_ emulation: StarIoExtEmulation) -> ISCBBuilder!
    
  • 引数

    名称

    説明

    emulation

    エミュレーション指定

    StarIoExtEmulation

    各モデルに対して適用すべきEmulation定数は、 StarIoExtEmulation をご参照ください。

  • 戻り値

    説明

    ISCBBuilder オブジェクト

    ISCBBuilder

4.1.7. createDisplayCommandBuilder

added in version 1.7.0

カスタマーディスプレイコマンド生成オブジェクトを生成します。

  • 宣言

    open class func createDisplayCommandBuilder(_ model: StarIoExtDisplayModel) -> ISDCBBuilder!
    
  • 引数

    名称

    説明

    model

    カスタマーディスプレイモデル指定定数

    StarIoExtDisplayModel

  • 戻り値

    説明

    ISDCBBuilder オブジェクト

    ISDCBBuilder

4.1.8. createMelodySpeakerCommandBuilder

added in version 1.12.0

メロディスピーカーコマンド生成オブジェクトを生成します。

  • 宣言

    open class func createMelodySpeakerCommandBuilder(_ model: StarIoExtMelodySpeakerModel) -> ISMCBBuilder!
    
  • 引数

    名称

    説明

    model

    メロディスピーカーモデル指定定数

    StarIoExtMelodySpeakerModel

  • 戻り値

    説明

    ISMCBBuilder オブジェクト

    ISMCBBuilder

4.1.9. createBcrConnectParser

バーコードリーダー接続確認コマンド応答解析オブジェクトを生成します。

  • 宣言

    open class func createBcrConnectParser(_ model: StarIoExtBcrModel) -> ISCPConnectParser!
    
  • 引数

    名称

    説明

    model

    バーコードリーダーモデル指定定数

    StarIoExtBcrModel

  • 戻り値

    説明

    ISCPConnectParser オブジェクト

    ISCPConnectParser

4.1.10. createDisplayConnectParser

added in version 1.7.0

カスタマーディスプレイ接続確認コマンド応答解析オブジェクトを生成します。

  • 宣言

    open class func createDisplayConnectParser(_ model: StarIoExtDisplayModel) -> ISCPConnectParser!
    
  • 引数

    名称

    説明

    model

    カスタマーディスプレイモデル指定定数

    StarIoExtDisplayModel

  • 戻り値

    説明

    ISCPConnectParser オブジェクト

    ISCPConnectParser

4.1.11. createMelodySpeakerConnectParser

added in version 1.12.0

メロディスピーカー接続確認コマンド応答解析オブジェクトを生成します。

  • 宣言

    open class func createMelodySpeakerConnectParser(_ model: StarIoExtMelodySpeakerModel) throws -> ISCPConnectParser
    
  • 引数

    名称

    説明

    model

    メロディスピーカーモデル指定定数

    StarIoExtMelodySpeakerModel

  • 戻り値

    説明

    ISCPConnectParser オブジェクト

    ISCPConnectParser

  • エラーコード

    説明

    StarIoExtErrorInvalidOperation

    FVP10 指定時に本メソッドが呼ばれた場合