4.10. SMBluetoothManagerFactory
added in version 1.7.0
エミュレーションを指定することで SMBluetoothManager オブジェクトを取得するためのクラスです。
メソッド
名称
説明
SMBluetoothManager クラスのインスタンスを取得します。
4.10.1. getManager
added in version 1.7.0
引数で渡すエミュレーション用の SMBluetoothManager クラスのオブジェクトを取得します。
宣言
open class func getManager(_ portName: String!, emulation: StarIoExtEmulation) -> Any!
引数
名称
説明
型
portName
getPort メソッドのportNameと同じです。
String
emulation
エミュレーション
各モデルに対して適用すべきemulation引数は、StarIoExtEmulation 定数を参照ください。
戻り値
説明
型
SMBluetoothManager オブジェクト
Bluetooth設定変更の手順は、 Bluetooth設定変更フロー を参照ください。