Abstract:
An electronic device displays a user interface object that corresponds to a first application. While displaying the user interface object, the device detects, via an input element, an input directed to the user interface object. In response: if the input meets an input threshold and includes less than a threshold amount of movement, the device generates a non-visual output corresponding to the input before detecting an end of the input, and after detecting an end of the input, displays a system user interface that includes information about the first application without displaying the first application; and, if the input does not meet the input threshold and includes less than the threshold amount of movement, the device forgoes generating a non-visual output corresponding to the input, and after detecting an end of the input, displays the first application on the display.
Abstract:
An electronic device, while displaying a user interface for a first application, receives at the first application information that describes a first touch detected at a location on the touch- sensitive surface that corresponds to a respective user interface object. In accordance with a determination that the first touch meets predefined criteria associated with initiating a respective type of interface operation, the device initiates a user interface operation of the respective type involving the respective user interface object. The first application receives instructions to ignore the first touch with respect to user interface operations other than the respective type of interface operation, and ignores the first touch with respect to user interface operations other than the respective type of interface operation. In some embodiments, the respective type of interface operation is a drag operation, for dragging an object in or from a view of the first application.
Abstract:
A device implementing drag and drop for touchscreen devices may include a processor configured to detect a drag gesture selecting an item in a first application. The processor may be further configured to detect a touch release at an end of the drag gesture for dropping the item in a second application, and send, in response to the detected touch release, a message to the second application, the message including information for a plurality of representations of the item. The processor may be further configured to receive, from the second application, a request for a representation of the item from among the plurality of representations. The processor may be further configured to send, to the first application, the request for the representation of the item. The processor may be further configured to initiate a data transfer of the representation of the item from the first application to the second application.
Abstract:
An electronic device, with a display and an input device, displays, on the display, a user interface for an application. While displaying the user interface, the device receives a user input. In response to the user input: the device provides to the application a first input event having a phase field with a first phase value, the first input event corresponding to an input proximate to but not in contact with a touch-sensitive surface. After providing the first input event, the device provides to the application a second input event having a phase field with a second phase value, the second input event corresponding to the user input being in contact with the touch-sensitive surface. The device displays, on the display, an update to the user interface for the application that is based at least in part on the first input event and the second input event.
Abstract:
An electronic device detects a change in intensity of an input at a location corresponding to a first user interface element associated with a user-interaction behavior model; generates, with an application-independent software module, output associated with the first user interface element determined in accordance with the change in intensity of the input and the user-interaction behavior model, including a first user-interaction component behavior and a second user-interaction component behavior; detects a change in intensity an input at a location corresponding to a second user interface element associated with a subset of the user-interaction component behaviors; obtains, from the application-independent software module, an indication of whether the change in intensity of the input has met conditions associated with the first user-interaction component behavior; and updates, based on the indication, an appearance of the second user interface element based on the first user-interaction component behavior.
Abstract:
An electronic device, with a display and an input device, displays, on the display, a user interface for an application. While displaying the user interface, the device receives a user input. In response to the user input: the device provides to the application a first input event having a phase field with a first phase value, the first input event corresponding to an input proximate to but not in contact with a touch-sensitive surface. After providing the first input event, the device provides to the application a second input event having a phase field with a second phase value, the second input event corresponding to the user input being in contact with the touch-sensitive surface. The device displays, on the display, an update to the user interface for the application that is based at least in part on the first input event and the second input event.