Set watch face ID
Function table
__IDO_FUNCTABLE__.funcTable18Model.watchDial
Description of Dial ID Model
- IDOSetWatchDiaInfoBluetoothModel
Parameter | Description | Remark |
---|---|---|
dialId | Dial ID | int |
Command code
Objc:
IDOSetWatchDiaInfoBluetoothModel * model = [IDOSetWatchDiaInfoBluetoothModel currentModel];
[IDOFoundationCommand setWatchDiaCommand:model
callback:^(int errorCode) {
if (errorCode == 0) {
//Set successfully
}else if (errorCode == 6) {
//Device not supported
}else {
//Setup failed
}
}];
Swift:
let model = IDOSetWatchDiaInfoBluetoothModel.current();
IDOFoundationCommand.setWatchDia(model) { (errorCode) in
if errorCode == 0 {
//Set successfully
}else if errorCode == 6{
//Device does not support this method
}else {
//Wrong setting
}
};