Set display mode
Function table
__IDO_FUNCTABLE__.funcTable13Model.displayMode
Display Mode Model Description
- IDOSetDisplayModeInfoBluetoothModel
Parameter | Description | Remark |
---|---|---|
modeType | Display mode | 0:Default,1:Horizontal screen,2:Vertical screen,3:Rotate 180 degrees |
Command code
Objc:
IDOSetDisplayModeInfoBluetoothModel * model = [IDOSetDisplayModeInfoBluetoothModel currentModel];
[IDOFoundationCommand setDisplayModeCommand:model
callback:^(int errorCode) {
if (errorCode == 0) {
//Set successfully
}else if (errorCode == 6) {
//Device not supported
}else {
//Setup failed
}
}];
Swift:
let model = IDOSetDisplayModeInfoBluetoothModel.current();
IDOFoundationCommand.setDisplayMode(model) { (errorCode) in
if errorCode == 0 {
//Set successfully
}else if errorCode == 6{
//Device does not support this method
}else {
//Wrong setting
}
};