This command is for testing if we can enable the hidden Quicktime device config
(device screencapture.IosDevice)
| 315 | |
| 316 | // This command is for testing if we can enable the hidden Quicktime device config |
| 317 | func activate(device screencapture.IosDevice) { |
| 318 | log.Debugf("Enabling device: %v", device) |
| 319 | var err error |
| 320 | device, err = screencapture.EnableQTConfig(device) |
| 321 | if err != nil { |
| 322 | printErrJSON(err, "Error enabling QT config") |
| 323 | return |
| 324 | } |
| 325 | |
| 326 | printJSON(map[string]interface{}{ |
| 327 | "device_activated": device.DetailsMap(), |
| 328 | }) |
| 329 | } |
| 330 | |
| 331 | func deactivate(device screencapture.IosDevice) { |
| 332 | log.Debugf("Disabling device: %v", device) |
no test coverage detected