# AsReaderInfo ## プロパティ | プロパティ名 | 属性 | 型 | 説明 | | --------------------- | ------------------ | ----------------- | ----------------------------------------------------------------------------------------------------------------- | | deviceName | nonatomic,readonly | NSString | デバイス名 | | deviceFirmware | nonatomic,readonly | NSString | デバイスのファームウェア | | deviceHardware | nonatomic,readonly | NSString | デバイスのハードウェア | | deviceID | nonatomic,readonly | NSString | デバイスID | | deviceManufacturer | nonatomic,readonly | NSString | デバイスの製造元 | | deviceModelNumber | nonatomic,readonly | NSString | デバイスのモデル番号 | | deviceSerialNumber | nonatomic,readonly | NSString | デバイスのシリアル番号 | | deviceProtocol | nonatomic,readonly | NSString | デバイスのプロトコル | | currentSelectDevice | readonly,assign | int | 現在選択されているデバイス | | isPowerOn | readonly,assign | BOOL | デバイスの電源供給 | | currentReaderMode | readonly,assign | ReaderMode | 現在選択されているデバイスのタイプ | | receiveDataType | nonatomic, assign | ReceiveDataType | 受信データのデータ型 | | isShowPrintNSLog | readonly, assign | BOOL | ログを出力するかどうか。
YES:出力する
NO:出力しない。 | | isBeep | readonly, assign | BOOL | ビープ音のオン・オフ。
YES:オン
NO:オフ | | isVibration | readonly, assign | BOOL | 振動のオン・オフ。
YES:オン
NO:オフ | | isLED | readonly, assign | BOOL | LEDのオン・オフ。
YES:オン
NO:オフ | | isIllumination | readonly, assign | BOOL | 照準光のオン・オフ。
YES:オン
NO:オフ | | isSymbologyPrefix | readonly, assign | BOOL | タグ先頭文字 | | isTriggerModeDefault | readonly, assign | BOOL | デフォルトトリガーモード | | isReadRSSIMode | readonly, assign | BOOL | RSSIを有効にするかどうか。
YES:有効
NO:無効。 | | rfidpower | readonly,assign | float | RFIDの出力 | | rfidPowerMax | readonly,assign | float | RFIDの最大出力 | | rfidPowerMin | readonly,assign | float | RFIDの最小出力 | | rfidOnTime | readonly,assign | int | RFIDのオン時間 | | rfidOffTime | readonly,assign | int | RFIDのオフ時間 | | rfidChannel | readonly,assign | int | RFIDのチャンネル | | count | readonly,assign | int | タグのカウント | | scanTime | readonly,assign | int | スキャン時間 | | cycle | readonly,assign | int | スキャン周期 | | carrierSenseTime | readonly,assign | int | キャリアセンス時間 | | targetRFPowerLevel | readonly,assign | int | RFエネルギーレベル | | rfidListenBeforeTalk | readonly,assign | int | LBT | | rfidFrequencyHopping | readonly,assign | int | RFIDの周波数ホッピング | | rfidContinuousWave | readonly,assign | int | RFIDの連続スキャン | | isSmartHopping | readonly,assign | BOOL | スマート周波数ホッピング | | rfidModuleVersion | nonatomic,readonly | NSString | RFIDモジュールのバージョン | | bundleIdentifier | nonatomic,readonly | NSString | バンドルID | | supportMode | readonly,assign | ReaderMode | 対応しているデバイスのタイプ | | isEnginePowerAlwaysOn | nonatomic,assign | BOOL | YES: setReaderPowerを呼び出す必要がない(ASR-M24D、ASR - M30S)
NO: setReaderPowerを呼び出す必要がある | ## `sharedInstance` AsReaderInfoオブジェクトを作成して初期化します(シングルトンパターン)。 アプリ全体で共通のインスタンスを使用するために呼び出します。 ```objectivec + (instancetype)sharedInstance; ``` ### 戻り値 ```{list-table} :align: left :class: list-table * - 型 - 説明 * - `instancetype` - AsReaderInfoクラスのインスタンス ``` ### サンプルコード ```objectivec AsReaderInfo *info = [AsReaderInfo sharedInstance]; ``` --- ## `isSupportType` 現在のデバイスが入力されたモジュールのタイプをサポートしているかどうかを取得します。 ```objectivec - (BOOL)isSupportType:(ReaderMode)supportType; ``` ### パラメータ ```{list-table} :align: left :class: list-table * - 項目名 - 型 - 説明 * - `ReaderMode` - `ReaderMode` - モジュールのタイプ(詳細 [`ReaderMode`](./12_AsReaderInfoDefine.md#readermode) を参照) ``` ### 戻り値 ```{list-table} :align: left :class: list-table * - 型 - 説明 * - `BOOL` - YES:サポートされている、NO:サポートされていない ``` ### サンプルコード ```objectivec BOOL status = [asReaderInfo isSupportType:ReaderModeBarcode]; if (status) { // サポートしている } else { // サポートしていない } ``` --- ## `getSupportTypeArray` 現在のデバイスがサポートするモジュールのタイプの配列を取得します。 ```objectivec - (NSArray *)getSupportTypeArray; ``` ### 戻り値 ```{list-table} :align: left :class: list-table * - 型 - 説明 * - `NSArray` - サポートされているモジュールタイプの配列([`ReaderMode`](./12_AsReaderInfoDefine.md#readermode)を参照) ``` ### サンプルコード ```objectivec NSArray *supportTypeArray = [asReaderInfo getSupportTypeArray]; ```