UniPRT SDK v1.0.0.0
 
載入中...
搜尋中...
無符合項目
<IMaxicodeMsgStructured> 協定 參考文件

Maxicode 條形碼數據。Maxicode 自由格式承載消息。僅適用於模式2和模式3。模式2和3的“結構化承載消息”需要郵政編碼、國家代碼和服務類別字段。 更多...

#include <IMaxicodeMsgStructured.h>

類別<IMaxicodeMsgStructured>的繼承圖:
<IMaxicodeData> AMaxicodeMsgStructured MaxicodeMsgStructured PglMaxicodeMsgStructured

屬性(properties)

NSString * postalCode
 
NSString * countryCode
 
NSString * serviceClass
 
NSString * remainingMsg
 
- 屬性(properties) 繼承自 <IMaxicodeData>
MaxicodeModeEnum mode
 用於指定條碼數據格式的模式。請參閱 MaxicodeModeEnum 以了解可能支持的模式。
 
NSString * data
 包含要編碼在條碼中的主消息和次消息的條碼數據。
 

詳細描述

Maxicode 條形碼數據。Maxicode 自由格式承載消息。僅適用於模式2和模式3。

模式2和3的“結構化承載消息”需要郵政編碼、國家代碼和服務類別字段。

消息格式通常編碼如下:

  • <primaryMsg><secondaryMsg> = <postalCode>Gs<countryCode>Gs<serviceClass>Gs<secondaryMsg>EOT

郵政編碼(6-9個字符),國家代碼(3位數字),服務類別(3位數字)

  • 模式2 = 美國:最多9位郵政編碼(全數字)
  • 模式3 = 加拿大:6位郵政編碼(字母數字混合)其中:
  • Gs:組分隔符(0x1D)
  • EOT:傳輸結束(0x04)

屬性(property)說明文件

◆ countryCode

- (NSString*) countryCode
readwritenonatomiccopy

◆ postalCode

- (NSString*) postalCode
readwritenonatomiccopy

◆ remainingMsg

- (NSString*) remainingMsg
readwritenonatomiccopy

◆ serviceClass

- (NSString*) serviceClass
readwritenonatomiccopy

此協定(protocol) 文件是由下列檔案中產生: