主权项 |
1. A method comprising:
sending, by an accessory to a portable device having a camera, a request to register for camera status notifications; receiving, by the accessory from the portable device, a first camera status notification identifying a current camera mode from a plurality of camera modes, the plurality of camera modes including a still-image mode in which the camera of the portable device is ready to capture a still image and a video mode in which the camera of the portable device is ready to record a video; receiving, by the accessory, a first user input indicating that the current camera mode should be changed; in response to the first user input, sending, by the accessory, a mode change command to the portable device; receiving, by the accessory from the portable device, a second camera status notification identifying an updated camera mode; receiving, by the accessory, a second user input indicating that an image capture operation should be performed; in response to the second user input, sending, by the accessory, an image capture command to the portable device; and receiving, by the accessory, a third camera status notification indicating that an image capture operation has been performed, wherein the third camera status notification includes either an indication that a still image has been captured or an indication that recording of a video has been started. |