System and method for manipulating written content
By introducing additional modes for formatting and positioning handwritten content into electronic devices, combined with touch-sensitive displays and intensity sensors, the problem of low efficiency in manipulating handwritten content during user interaction is solved, achieving efficient user interaction and precise control.
Patent Information
- Application Number
- CN202610681189.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2026-05-04
- Filing Date
- 2026-05-18
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the manipulation of handwritten content by users when interacting with electronic devices is inefficient and cannot meet users' needs for efficient input and editing.
It offers additional modes for formatting and positioning handwritten content, enhancing the efficiency of user interaction with electronic devices. It detects the pressure and position of handwritten content through a touch-sensitive display and intensity sensor, and improves control precision by combining haptic feedback.
It improves the efficiency of user interaction with electronic devices, enhances the precision and flexibility of handwritten content manipulation, and meets users' needs for efficient input and editing.
Smart Images

Figure CN123137540A_ABST
Abstract
Description
Cross-references to related applications
[0001] This application claims the benefit of U.S. Provisional Application No. 63 / 808,584, filed May 19, 2025, and U.S. Patent Application No. 19 / 667,359, filed May 4, 2026, the contents of which are incorporated herein by reference in their entirety for all purposes. Technical Field
[0002] This disclosure relates in its entirety to electronic devices that present a user interface for manipulating handwritten content. Background Technology
[0003] In recent years, user interaction with electronic devices has increased significantly. These devices can include computers, tablets, televisions, multimedia devices, and mobile devices. In some cases, users may want to input and edit content, including handwritten content. Therefore, users may expect efficient ways to interact with handwritten content. Summary of the Invention
[0004] Enhance user interaction with electronic devices by providing additional modes for formatting and / or locating handwritten content, offering an efficient way to manipulate handwritten content.
[0005] The accompanying drawings and detailed descriptions provide a full description of the embodiments. It should be understood that the above-described invention does not limit the scope of this disclosure in any way.
[0006] As is widely recognized, the use of personally identifiable information should comply with privacy policies and measures that are generally accepted to meet or exceed industry or governmental requirements for protecting user privacy. Specifically, personally identifiable information data should be managed and processed to minimize the risk of unintentional or unauthorized access or use, and the nature of authorized use should be clearly explained to users. Attached Figure Description
[0007] To better understand the various described embodiments, reference should be made to the following detailed description in conjunction with the accompanying drawings, wherein similar reference numerals in all the drawings indicate the corresponding parts.
[0008] Figure 1A This is a block diagram illustrating a portable multi-functional device with a touch-sensitive display according to some implementation schemes.
[0009] Figure 1B This is a block diagram illustrating exemplary components for event handling according to some implementation schemes.
[0010] Figure 2 Examples of portable multi-functional devices with touchscreens according to some implementation schemes are shown.
[0011] Figures 3A to 3G This is a block diagram of an exemplary multifunctional device having a display and a touch-sensitive surface according to some implementation schemes.
[0012] Figure 4A An exemplary user interface for an application menu on a portable multifunction device according to some implementations is shown.
[0013] Figure 4B An exemplary user interface of a multifunctional device having a touch-sensitive surface separate from the display is illustrated according to some embodiments.
[0014] Figure 5A Examples of personal electronic devices according to some implementation schemes are shown.
[0015] Figure 5B This is a block diagram illustrating a personal electronic device according to some implementation schemes.
[0016] Figures 5C to 5D Exemplary components of a personal electronic device having a touch-sensitive display and an intensity sensor according to some embodiments are illustrated.
[0017] Figures 5E to 5H Exemplary components and user interfaces of a personal electronic device according to some implementation schemes are illustrated.
[0018] Figures 6A to 6DD Exemplary ways in which electronic devices, according to some implementation schemes, facilitate the manipulation of handwritten content are illustrated.
[0019] Figure 7 A flowchart illustrating a method for facilitating the manipulation of handwritten content using an electronic device according to some embodiments of the present disclosure is provided. Detailed Implementation
[0020] The accompanying drawings, which form part of the following description of the embodiments and illustrate specific embodiments of alternative implementations by way of example, will be referenced in the description of the embodiments below. It should be understood that other embodiments and structural changes may be optionally used without departing from the scope of the disclosed embodiments.
[0021] Enhance user interaction with electronic devices by providing additional modes for formatting and / or locating handwritten content, offering an efficient way to manipulate handwritten content.
[0022] Although the following description uses the terms "first," "second," etc., to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, a first touch may be named a second touch and similarly, a second touch may be named a first touch, without departing from the scope of the various described embodiments. Both the first touch and the second touch are touches, but they are not the same touch.
[0023] The terminology used in the description of the various described embodiments herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used in the description of the various described embodiments and in the appended claims, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term “and / or” as used herein refers to and covers any and all possible combinations of one or more of the items listed in connection with the description. It will also be understood that the terms “comprising” and / or “including” as used in this specification specify the presence of the stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0024] Depending on the context, the term "if" may optionally be interpreted as meaning "when," "in response to," or "in response to detection." Similarly, depending on the context, the phrases "if it is determined..." or "if [the stated condition or event] is detected" may optionally be interpreted as meaning "in response to determining..." or "in response to detecting [the stated condition or event]."
[0025] Exemplary device This document describes implementations of electronic devices, user interfaces for such devices, and associated processes for using such devices. In some implementations, the device is a portable communication device, such as a mobile phone, that also includes other functionalities such as PDA and / or music player functionality. Exemplary implementations of portable multi-functional devices include, but are not limited to, the iPhone from Apple Inc. of Cupertino, California. ® Devices, iPod Touch ® Devices and iPads ®Device. Alternatively, other portable electronic devices may be used, such as laptops or tablets with touch-sensitive surfaces (e.g., touchscreen displays and / or touchpads). It should also be understood that in some embodiments, the device is not a portable communication device, but rather a desktop computer or television with touch-sensitive surfaces (e.g., touchscreen displays and / or touchpads). In some embodiments, the device does not have a touchscreen display and / or touchpad, but is capable of outputting display information (such as the user interface of this disclosure) for display on a separate display device, and is capable of receiving input information from a separate input device having one or more input mechanisms (such as one or more buttons, touchscreen displays, and / or touchpads). In some embodiments, the device has a display, but is capable of receiving input information from a separate input device having one or more input mechanisms (such as one or more buttons, touchscreen displays, and / or touchpads). In some embodiments, the electronic device is a computer system that communicates (e.g., via wireless or wired communication) with a display generating component (e.g., a display device such as a head-mounted display (HMD), monitor, projector, touch-sensitive display; or other device or component that presents visual content to a user, such as visual content generated on or in or from the display generating component and visible elsewhere). The display generating component is configured to provide visual output, such as display via a CRT monitor, via an LED monitor, or via image projection. In some embodiments, the display generating component is integrated with the computer system. In some embodiments, the display generating component is separate from the computer system. As used herein, “display” content includes content (e.g., video data rendered or decoded by display controller 156) that is displayed by sending data (e.g., image data or video data) to an integrated or external display generating component via a wired or wireless connection to visually generate content.
[0026] In the following discussion, an electronic device including a display and a touch-sensitive surface is described. However, it should be understood that the electronic device may optionally include one or more other physical user interface devices, such as a physical keyboard, mouse, and / or joystick. Additionally, as described above, it should be understood that the described electronic device, display, and touch-sensitive surface may optionally be distributed across two or more devices. Therefore, as used in this disclosure, information on or displayed by the electronic device may optionally be used to describe information output by the electronic device for display on a separate display device (touch-sensitive or non-touch-sensitive). Similarly, as used in this disclosure, input received on the electronic device (e.g., touch input received on a touch-sensitive surface of the electronic device) may optionally be used to describe input received on a separate input device from which the electronic device receives input information.
[0027] The device typically supports a variety of applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk editing applications, spreadsheet applications, game applications, telephone applications, video conferencing applications, email applications, instant messaging applications, fitness support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications, TV channel browsing applications, and / or digital video player applications.
[0028] Various applications running on this device may optionally use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and the corresponding information displayed on the device may optionally be adapted and / or changed for different applications, and / or within the respective applications. In this way, the common physical architecture of the device (such as the touch-sensitive surface) may optionally support various applications using a user interface that is intuitive and clear to the user.
[0029] Now let’s turn our attention to implementations of portable or non-portable devices with touch-sensitive displays, but the device does not necessarily include a touch-sensitive display or a general display, as described above. Figure 1A This is a block diagram illustrating a portable or non-portable multi-functional device 100 with a touch-sensitive display 112 according to some embodiments. The touch-sensitive display 112 is sometimes referred to as a “touchscreen” for convenience, and is sometimes referred to as a touch-sensitive display system. Device 100 includes a memory 102 (which optionally includes one or more computer-readable storage media), a memory controller 122, one or more processing units (CPUs) 120, a peripheral interface 118, RF circuitry 108, audio circuitry 110, a speaker 111, a microphone 113, an input / output (I / O) subsystem 106, other input or control devices 116, and an external port 124. Device 100 optionally includes one or more optical sensors 164. Device 100 optionally includes one or more contact strength sensors 165 for detecting the intensity of contact on device 100 (e.g., a touch-sensitive surface, such as the touch-sensitive display system 112 of device 100). Device 100 may optionally include one or more haptic output generators 167 for generating haptic output on device 100 (e.g., generating haptic output on a touch-sensitive surface such as the touch-sensitive display system 112 of device 100 or the touchpad 355 of device 300). These components may optionally communicate via one or more communication buses or signal lines 103.
[0030] As used in this specification and claims, the term "intensity" for contact on a tactile surface refers to the force or pressure (force per unit area) of a contact (e.g., finger contact) on a tactile surface, or to a substitute (alternative) for the force or pressure of a contact on a tactile surface. The intensity of a contact has a range of values that includes at least four different values and more typically hundreds of different values (e.g., at least 256). The intensity of a contact may optionally be determined (or measured) using various methods and various sensors or combinations of sensors. For example, one or more force sensors below or adjacent to the tactile surface may optionally be used to measure the force at different points on the tactile surface. In some embodiments, force measurements from multiple force sensors are combined (e.g., weighted average) to determine the estimated contact force. Similarly, the pressure-sensitive tip of a stylus may optionally be used to determine the pressure of the stylus on the tactile surface. Alternatively, the size and / or change of the contact area detected on the touch-sensitive surface, the capacitance and / or change of the touch-sensitive surface adjacent to the contact, and / or the resistance and / or change of the touch-sensitive surface adjacent to the contact may be used as substitutes for the force or pressure of the contact on the touch-sensitive surface. In some embodiments, the substitute measurement of the contact force or pressure is used directly to determine whether an intensity threshold has been exceeded (e.g., the intensity threshold is described in units corresponding to the substitute measurement). In some embodiments, the substitute measurement of the contact force or pressure is converted into an estimated force or pressure, and the estimated force or pressure is used to determine whether an intensity threshold has been exceeded (e.g., the intensity threshold is a pressure threshold measured in pressure units). Using the intensity of the contact as an attribute of user input allows users to access additional device functionality that would otherwise be inaccessible to the user on a space-constrained, scaled-down device used (e.g., on a touch-sensitive display) to display an indication and / or receive user input (e.g., via a touch-sensitive display, touch-sensitive surface, or physical / mechanical controls such as knobs or buttons).
[0031] As used in this specification and claims, the term "haptic output" refers to a physical displacement of the device relative to a previous position of the device, a physical displacement of a component of the device (e.g., a touch-sensitive surface) relative to another component of the device (e.g., the housing), or a displacement of a component relative to the center of mass of the device, which is detected by the user using the user's tactile sense. For example, when the device or a component of the device comes into contact with a touch-sensitive surface (e.g., a finger, palm, or other part of the user's hand), the haptic output generated by the physical displacement will be interpreted by the user as a tactile sensation corresponding to a perceived change in the physical characteristics of the device or a component of the device. For example, movement of a touch-sensitive surface (e.g., a touch-sensitive display or touchpad) may optionally be interpreted by the user as a "press-click" or "release-click" on a physically actuated button. In some cases, the user will feel a tactile sensation, such as a "press-click" or "release-click," even when a physically actuated button associated with the touch-sensitive surface, which has been physically pressed (e.g., displaced) by the user's movement, has not moved. For example, even when the smoothness of a tactile surface remains unchanged, movement of the tactile surface can optionally be interpreted or sensed by the user as “roughness” of the tactile surface. While such interpretations of touch by users will be limited by their individualized sensory perceptions, many sensory perceptions of touch are common to most users. Therefore, when a tactile output is described as corresponding to a user’s specific sensory perception (e.g., “release click,” “press click,” “roughness”), unless otherwise stated, the generated tactile output corresponds to the physical displacement of the device or its components, which will generate the sensory perception described by a typical (or average) user.
[0032] It should be understood that device 100 is merely an example of a portable or non-portable multifunctional device, and device 100 may optionally have more or fewer components than shown, may optionally combine two or more components, or may optionally have different configurations or arrangements of these components. Figure 1A The various components shown are implemented in hardware, software, or a combination of both, including one or more signal processing and / or application-specific integrated circuits (ASICs). Additionally, Figure 1A The various components shown may optionally be implemented on two or more devices; for example, a display and audio circuitry on a display device, a touch-sensitive surface on an input device, and other components on device 100. In such embodiments, device 100 may optionally communicate with display devices and / or input devices to facilitate system operation as described herein, and the various display and / or input-related components described herein are retained in device 100 or optionally included in display and / or input devices where appropriate.
[0033] Memory 102 may optionally include high-speed random access memory, and may also optionally include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state memory devices. Memory controller 122 may optionally control access to memory 102 by other components of device 100.
[0034] Peripheral interface 118 can be used to couple the device's input and output peripherals to CPU 120 and memory 102. One or more processors 120 run or execute various software programs and / or instruction sets stored in memory 102 to perform various functions of device 100 and process data.
[0035] In some implementations, the peripheral interface 118, CPU 120, and memory controller 122 are optionally implemented on a single chip, such as chip 104. In other implementations, they are optionally implemented on separate chips.
[0036] RF (Radio Frequency) circuit 108 receives and transmits RF signals, also known as electromagnetic signals. RF circuit 108 converts electrical signals into electromagnetic signals / converts electromagnetic signals into electrical signals, and communicates with communication networks and other communication devices via electromagnetic signals. RF circuit 108 optionally includes well-known circuitry for performing these functions, including but not limited to antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, codec chipsets, subscriber identity module (SIM) cards, memory, etc. RF circuit 108 optionally communicates wirelessly with networks (such as the Internet (also known as the World Wide Web (WWW)), intranets, and / or wireless networks (such as cellular telephone networks, wireless local area networks (LANs), and / or metropolitan area networks (MANs))) and other devices. RF circuit 108 optionally includes well-known circuitry for detecting near-field communication (NFC) fields, such as via short-range communication radio components. Wireless communication may optionally use any of a variety of communication standards, protocols, and technologies, including but not limited to Global System for Mobile Communications (GSM), Enhanced Data GSM Environment (EDGE), High-Speed Downlink Packet Access (HSDPA), High-Speed Uplink Packet Access (HSUPA), Evolution, Pure Data (EV-DO), HSPA, HSPA+, Dual-Unit HSPA (DC-HSPDA), Long Term Evolution (LTE), Near Field Communication (NFC), Wideband Code Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Bluetooth, Bluetooth Low Energy (BTLE), and Wi-Fi (e.g., IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, IEEE 802.11n and / or IEEE 802.11ac), Internet Protocol Voice (VoIP), Wi-MAX, email protocols (e.g., Internet Messaging Access Protocol (IMAP) and / or Post Office Protocol (POP)), instant messaging (e.g., Extensible Messaging and Presence Protocol (XMPP), Session Initiation Protocol for Instant Messaging and Presence with Extended Utility (SIMPLE), Instant Messaging and Presence Service (IMPS)) and / or Short Message Service (SMS), or any other suitable communication protocol that has not been developed as of the date of this document submission.
[0037] Audio circuitry 110, speaker 111, and microphone 113 provide an audio interface between the user and device 100. Audio circuitry 110 receives audio data from peripheral interface 118, converts the audio data into electrical signals, and sends the electrical signals to speaker 111. Speaker 111 converts the electrical signals into sound waves that are audible to humans. Audio circuitry 110 also receives electrical signals converted from sound waves by microphone 113. Audio circuitry 110 converts the electrical signals into audio data and sends the audio data to peripheral interface 118 for processing. Audio data may optionally be retrieved by peripheral interface 118 from memory 102 and / or RF circuitry 108 and / or sent to that memory and / or RF circuitry. In some embodiments, audio circuitry 110 also includes a headset jack (e.g., ...). Figure 2 (212 in the text). The headset jack provides an interface between the audio circuitry 110 and a removable audio input / output peripheral device, such as an output-only headset or a headset with both outputs (e.g., a mono-ear headset or a binaural headset) and inputs (e.g., a microphone).
[0038] I / O subsystem 106 couples input / output peripherals (such as touchscreen 112 and other input control devices 116) on device 100 to peripheral interface 118. I / O subsystem 106 optionally includes display controller 156, optical sensor controller 158, intensity sensor controller 159, haptic feedback controller 161, and one or more input controllers 160 for other input or control devices. One or more input controllers 160 receive electrical signals from / transmit electrical signals to other input or control devices 116. Other input control devices 116 optionally include physical buttons (e.g., push-buttons, rocker buttons, etc.), dial pads, slide switches, joysticks, click dials, etc. In some alternative embodiments, input controllers 160 may optionally be coupled to (or not coupled to) any of the following: keyboard, infrared port, USB port, and pointing devices such as a mouse. The one or more buttons (e.g., Figure 2 Optionally, 208 may include increase / decrease buttons for volume control of speaker 111 and / or microphone 113. These one or more buttons may optionally include a push-button (e.g., Figure 2 (206 in the middle).
[0039] A quick press of the push button may optionally unlock the touchscreen 112 or optionally initiate a process of unlocking the device using gestures on the touchscreen, as described in U.S. Patent Application 11 / 322,549 (U.S. Patent No. 7,657,849), filed December 23, 2005, entitled "Unlocking a Device by Performing Gestures on an Unlock Image," the entire contents of which are incorporated herein by reference. A long press of the push button (e.g., 206) may optionally power on or off the device 100. The functionality of one or more of these buttons may optionally be user-customizable. The touchscreen 112 is used to implement virtual buttons or soft buttons and one or more soft keyboards.
[0040] The touch-sensitive display 112 provides input and output interfaces between the device and the user. As described above, the touch-sensitive operation and display operation of the touch-sensitive display 112 can optionally be separated from each other, such that the display device is used for display purposes, while the touch-sensitive surface (whether or not a display) is used for input detection purposes, and the described components and functions are modified accordingly. However, for the sake of brevity, the following description refers to the touch-sensitive display. The display controller 156 receives electrical signals from the touchscreen 112 and / or transmits electrical signals to the touchscreen. The touchscreen 112 displays visual output to the user. The visual output may optionally include graphics, text, icons, video, and any combination thereof (collectively, "graphics"). In some embodiments, some or all of the visual output corresponds to user interface objects.
[0041] Touchscreen 112 has a touch-sensitive surface, sensor, or sensor array that accepts input from a user based on tactile and / or haptic contact. Touchscreen 112 and display controller 156 (along with any associated modules and / or instruction set in memory 102) detect contact on touchscreen 112 (and any movement or interruption of that contact) and translate the detected contact into interaction with user interface objects (e.g., one or more soft keys, icons, web pages, or images) displayed on touchscreen 112. In an exemplary embodiment, the contact point between touchscreen 112 and the user corresponds to the user's finger.
[0042] Touchscreen 112 may optionally employ LCD (Liquid Crystal Display) technology, LPD (Light Emitting Polymer Display) technology, or LED (Light Emitting Diode) technology, but other display technologies may be used in other embodiments. Touchscreen 112 and display controller 156 may optionally use any of a variety of touch sensing technologies now known or to be developed hereafter, along with other proximity sensor arrays or other elements for determining one or more points of contact with touchscreen 112, to detect contact and any movement or interruption thereof. These various touch sensing technologies include, but are not limited to, capacitive, resistive, infrared, and surface acoustic wave technologies. In one exemplary embodiment, projected mutual capacitance sensing technology, such as that used in Apple Inc.'s iPhone (Cupertino, California), is used. ® iPod Touch ® and iPad ® The technology that was discovered.
[0043] In some embodiments of the touchscreen 112, the touch-sensitive display may optionally resemble a multi-touch-sensitive touchpad described in the following U.S. patents: 6,323,846 (Westerman et al.), 6,570,557 (Westerman et al.), and / or 6,677,932 (Westerman) and / or U.S. Patent Publication 2002 / 0015024A1, each of which is incorporated herein by reference in its entirety. However, the touchscreen 112 displays visual output from the device 100, while the touch-sensitive touchpad does not provide visual output.
[0044] The touch-sensitive display in some embodiments of the touchscreen 112 is described in the following applications: (1) U.S. Patent Application No. 11 / 381,313, filed May 2, 2006, entitled “Multipoint Touch Surface Controller”; (2) U.S. Patent Application No. 10 / 840,862, filed May 6, 2004, entitled “Multipoint Touchscreen”; (3) U.S. Patent Application No. 10 / 903,964, filed July 30, 2004, entitled “Gestures For Touch Sensitive Input Devices”; (4) U.S. Patent Application No. 11 / 048,264, filed January 31, 2005, entitled “Gestures For Touch Sensitive Input Devices”; and (5) U.S. Patent Application No. 18, 2005, entitled “Mode-Based Graphical User Interfaces For Touch Sensitive”. (6) U.S. Patent Application No. 11 / 38,590 entitled “Input Devices”; (7) U.S. Patent Application No. 11 / 228,758 entitled “Virtual Input Device Placement On A Touch Screen User Interface”, filed September 16, 2005; (8) U.S. Patent Application No. 11 / 228,700 entitled “Operation Of A Computer With A Touch Screen Interface”, filed September 16, 2005; (9) U.S. Patent Application No. 11 / 228,737 entitled “Activating Virtual Keys Of A Touch-Screen Virtual Keyboard”, filed September 16, 2005; and (10) U.S. Patent Application No. 11 / 367,749 entitled “Multi-Functional Hand-Held Device”, filed March 3, 2006. The entire contents of all these applications are incorporated herein by reference.
[0045] The touchscreen 112 optionally has a video resolution exceeding 100 dpi. In some embodiments, the touchscreen has a video resolution of approximately 160 dpi. Users may optionally use any suitable object or accessory, such as a stylus, finger, etc., to interact with the touchscreen 112. In some embodiments, the user interface is designed to operate primarily through finger-based touch and gestures, which may be less precise than stylus-based input due to the larger contact area of a finger on the touchscreen. In some embodiments, the device translates coarse finger-based input into precise pointer / cursor positioning or commands for performing the user-desired actions.
[0046] In some embodiments, in addition to the touchscreen, device 100 optionally includes a touchpad (not shown) for activating or deactivating specific functions. In some embodiments, the touchpad is a touch-sensitive area of the device that, unlike the touchscreen, does not display visual output. The touchpad may optionally be a touch-sensitive surface separate from the touchscreen 112, or an extension of the touch-sensitive surface formed by the touchscreen.
[0047] The device 100 also includes a power system 162 for supplying power to various components. The power system 162 may optionally include a power management system, one or more power sources (e.g., batteries, alternating current (AC)), a recharging system, a power fault detection circuit, a power converter or inverter, a power status indicator (e.g., light-emitting diodes (LEDs)), and any other components associated with the generation, management, and distribution of power in portable or non-portable devices.
[0048] The device 100 may optionally also include one or more optical sensors 164. Figure 1AAn optical sensor 164 coupled to an optical sensor controller 158 in the I / O subsystem 106 is shown. The optical sensor 164 optionally includes a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The optical sensor 164 receives light projected through one or more lenses from the environment and converts the light into data representing an image. In conjunction with an imaging module 143 (also referred to as a camera module), the optical sensor 164 optionally captures still images or video. In some embodiments, the optical sensor is located on the rear of the device 100, facing away from a touchscreen display 112 on the front of the device, allowing the touchscreen display to be used as a viewfinder for still image and / or video image acquisition. In some embodiments, the optical sensor is located on the front of the device, allowing images of the user to be optionally acquired for video conferencing while the user views other video conferencing participants on the touchscreen display. In some embodiments, the positioning of the optical sensor 164 can be changed by the user (e.g., by rotating the lenses and sensors within the device housing), allowing a single optical sensor 164 to be used in conjunction with the touchscreen display for both video conferencing and still image and / or video image acquisition.
[0049] The device 100 may optionally also include one or more contact strength sensors 165. Figure 1A A contact strength sensor is shown coupled to a strength sensor controller 159 in I / O subsystem 106. The contact strength sensor 165 optionally includes one or more piezoresistive strain gauges, capacitive force sensors, electrostatic sensors, piezoelectric sensors, optical force sensors, capacitive touch-sensitive surfaces, or other strength sensors (e.g., sensors for measuring the force (or pressure) of contact on a touch-sensitive surface). The contact strength sensor 165 receives contact strength information (e.g., pressure information or a substitute for pressure information) from the environment. In some embodiments, at least one contact strength sensor is arranged juxtaposed with or adjacent to a touch-sensitive surface (e.g., touch-sensitive display system 112). In some embodiments, at least one contact strength sensor is located on the rear of device 100, opposite to the touchscreen display 112 located on the front of device 100.
[0050] The device 100 may optionally also include one or more proximity sensors 166. Figure 1AA proximity sensor 166 coupled to a peripheral device interface 118 is shown. Alternatively, the proximity sensor 166 may be coupled to an input controller 160 in an I / O subsystem 106. The proximity sensor 166 may optionally perform as described in the following U.S. patent applications: 11 / 241,839, entitled "Proximity Detector In Handheld Device"; 11 / 240,788, entitled "Proximity Detector In Handheld Device"; 11 / 620,702, entitled "Using Ambient Light Sensor To Augment Proximity Sensor Output"; 11 / 586,862, entitled "Automated Response To And Sensing Of User Activity In Portable Devices"; and 11 / 638,251, entitled "Methods And Systems For Automatic Configuration Of Peripherals", the entire contents of which are incorporated herein by reference. In some implementations, when the multifunction device is placed near the user's ear (e.g., when the user is making a phone call), the proximity sensor is turned off and the touchscreen 112 is disabled.
[0051] The device 100 may optionally also include one or more tactile output generators 167. Figure 1A A haptic output generator coupled to a haptic feedback controller 161 in I / O subsystem 106 is shown. The haptic output generator 167 optionally includes one or more electroacoustic devices, such as speakers or other audio components, and / or electromechanical devices that convert energy into linear motion, such as motors, solenoids, electroactive polymers, piezoelectric actuators, electrostatic actuators, or other haptic output generating components (e.g., components that convert electrical signals into haptic outputs on the device). A contact intensity sensor 165 receives haptic feedback generation instructions from a haptic feedback module 133 and generates a haptic output on device 100 that can be felt by a user of device 100. In some embodiments, at least one haptic output generator is juxtaposed or adjacent to a haptic surface (e.g., a haptic display system 112) and optionally generates the haptic output by moving the haptic surface vertically (e.g., in / outward from the surface of device 100) or laterally (e.g., back and forth in the same plane as the surface of device 100). In some embodiments, at least one haptic output generator sensor is located on the rear of the device 100, opposite to the touch screen display 112 located on the front of the device 100.
[0052] The device 100 may optionally also include one or more accelerometers 168. Figure 1A An accelerometer 168 coupled to a peripheral device interface 118 is shown. Alternatively, the accelerometer 168 may be coupled to an input controller 160 in an I / O subsystem 106. The accelerometer 168 may optionally perform as described in the following U.S. patent publications: U.S. Patent Publication No. 20050190059, entitled "Acceleration-based Theft Detection System for Portable Electronic Devices" and U.S. Patent Publication No. 20060017692, entitled "Methods and Apparatuses For Operating A Portable Device Based On An Accelerometer," both of which are incorporated herein by reference in their entirety. In some embodiments, information is displayed on a touchscreen display in portrait or landscape view based on analysis of data received from one or more accelerometers. In addition to the accelerometer 168, the device 100 may optionally include a magnetometer (not shown) and a GPS (or GLONASS or other global navigation system) receiver (not shown) for obtaining information about the location and orientation (e.g., longitudinal or lateral) of the device 100.
[0053] In some embodiments, the software components stored in memory 102 include an operating system 126, a communication module (or instruction set) 128, a contact / motion module (or instruction set) 130, a graphics module (or instruction set) 132, a text input module (or instruction set) 134, a Global Positioning System (GPS) module (or instruction set) 135, and an application (or instruction set) 136. Furthermore, in some embodiments, memory 102 ( Figure 1A ) or 370 ( Figure 3A Storage device / global internal state 157, such as Figure 1A As shown in Figure 3, the device / global internal state 157 includes one or more of the following: active application state, which indicates which applications (if any) are currently active; display state, which indicates what applications, views or other information occupy various areas of the touchscreen display 112; sensor state, which includes information obtained from the device's various sensors and input control devices 116; and position information relating to the device's position and / or orientation.
[0054] The operating system 126 (e.g., Darwin, RTXC, LINUX, UNIX, OS X, iOS, WINDOWS, or embedded operating systems such as VxWorks) includes various software components and / or drivers for controlling and managing general system tasks (e.g., memory management, storage device control, power management, etc.) and facilitates communication between various hardware and software components.
[0055] The communication module 128 facilitates communication with other devices via one or more external ports 124 and includes various software components for processing data received by the RF circuitry 108 and / or the external ports 124. The external ports 124 (e.g., Universal Serial Bus (USB), FireWire, etc.) are adapted to be directly coupled to other devices or indirectly coupled via a network (e.g., the Internet, Wireless LAN, etc.). In some embodiments, the external port is a multi-pin (e.g., 30-pin) connector that is the same as or similar to and / or compatible with the 30-pin connector used on iPod (Apple Inc. trademark) devices.
[0056] The contact / motion module 130 optionally detects contact with the touchscreen 112 (in conjunction with the display controller 156) and other touch-sensitive devices (e.g., a touchpad or physical click wheel). The contact / motion module 130 includes various software components for performing various operations related to contact detection, such as determining whether a contact has occurred (e.g., detecting a finger press event), determining the contact intensity (e.g., the force or pressure of the contact, or an alternative to force or pressure), determining whether there is movement of the contact and tracking the movement on the touch-sensitive surface (e.g., detecting one or more finger drag events), and determining whether the contact has stopped (e.g., detecting a finger lift event or a contact break). The contact / motion module 130 receives contact data from the touch-sensitive surface. Determining the movement of the contact point optionally includes determining the rate (magnitude), velocity (magnitude and direction), and / or acceleration (change in magnitude and / or direction) of the contact point, the movement of which is represented by a series of contact data. These operations can optionally be applied to a single contact (e.g., a single finger contact) or multiple simultaneous contacts (e.g., "multi-touch" / multiple finger contact). In some implementations, the contact / motion module 130 and the display controller 156 detect contact on the touchpad.
[0057] In some implementations, the contact / motion module 130 uses a set of one or more intensity thresholds to determine whether an operation has been performed by a user (e.g., determining whether the user has “clicked” an icon). In some implementations, at least one subset of intensity thresholds is determined based on software parameters (e.g., the intensity thresholds are not determined by the activation threshold of a specific physical actuator and can be adjusted without changing the physical hardware of device 100). For example, the mouse “click” threshold of a touchpad or touchscreen display can be set to any threshold in a wide range of predefined thresholds without changing the touchpad or touchscreen display hardware. Additionally, in some specific implementations, the user of the device is provided with software settings for adjusting one or more intensity thresholds in a set of intensity thresholds (e.g., by adjusting the individual intensity thresholds and / or by adjusting multiple intensity thresholds at once using system-level clicks on the “intensity” parameter).
[0058] The touch / motion module 130 optionally detects gesture input performed by the user. Different gestures on a touch-sensitive surface have different contact patterns (e.g., different movements, timings, and / or intensities of the detected contact). Therefore, gestures can be detected optionally by detecting specific contact patterns. For example, detecting a finger tap gesture includes: detecting a finger press event, and then detecting a finger lift-off (lift-away) event at the same (or substantially the same) location as the finger press event (e.g., at the location of an icon). As another example, detecting a finger swipe gesture on a touch-sensitive surface includes: detecting a finger press event, then detecting one or more finger drag events, and subsequently detecting a finger lift-off (lift-away) event.
[0059] The graphics module 132 includes various known software components for rendering and displaying graphics on the touchscreen 112 or other displays, including components for altering the visual impact of the displayed graphics (e.g., brightness, transparency, saturation, contrast, or other visual properties). As used herein, the term "graphics" includes any object that can be displayed to a user, and includes, without limitation, text, web pages, icons (such as user interface objects including soft keys), digital images, videos, animations, and the like.
[0060] In some implementations, the graphics module 132 stores data representing the graphics to be used. Each graphic is optionally assigned a corresponding code. The graphics module 132 receives one or more codes from applications, etc., to specify the graphics to be displayed, and also receives coordinate data and other graphic attribute data if necessary, and then generates screen image data to output to the display controller 156.
[0061] The haptic feedback module 133 includes various software components for generating instructions which are used by the haptic output generator 167 to generate haptic output at one or more locations on the device 100 in response to user interaction with the device 100.
[0062] Optionally, the text input module 134, which is a component of the graphics module 132, provides a soft keyboard for entering text in various applications, such as contacts 137, email 140, IM 141, browser 147, and any other application that requires text input.
[0063] GPS module 135 determines the location of the device and provides that information for use in various applications (e.g., to telephone 138 for location-based dialing; to camera 143 as image / video metadata; and to applications that provide location-based services such as weather widgets, local yellow pages widgets, and map / navigation widgets).
[0064] Application 136 may optionally include the following modules (or instruction sets) or subsets or supersets thereof: • Contacts module 137 (sometimes called address book or contact list); • Telephone module 138; • Video conferencing module 139; • Email client module 140; • Instant Messaging (IM) module 141; • Fitness support module 142; • Camera module 143 for still images and / or video images; • Image management module 144; • Video player module; • Music player module; • Browser module 147; • Calendar module 148; • Widget module 149, which may optionally include one or more of the following: weather widget 149-1, stock market widget 149-2, calculator widget 149-3, alarm clock widget 149-4, dictionary widget 149-5, and other widgets acquired by the user, and user-created widget 149-6. • Widget creator module 150 for creating user-created widgets 149-6; • Search module 151; • Video and music player module 152, which combines a video player module and a music player module; • Memo module 153; • Map module 154; and / or • Online video module 155.
[0065] Examples of other applications 136 that may be optionally stored in memory 102 include other word processing applications, other image editing applications, drawing applications, rendering applications, Java-enabled applications, encryption, digital rights management, speech recognition, and speech duplication.
[0066] In conjunction with the touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, and text input module 134, the contact module 137 is optionally used to manage an address book or contact list (e.g., in application internal state 192 of the contact module 137 stored in memory 102 or memory 370), including: adding one or more names to the address book; deleting names from the address book; associating phone numbers, email addresses, physical addresses, or other information with names; associating images with names; categorizing and classifying names; providing phone numbers or email addresses to initiate and / or facilitate communications via telephone 138, video conferencing module 139, email 140, or IM 141; and so on.
[0067] Combining RF circuitry 108, audio circuitry 110, speaker 111, microphone 113, touchscreen 112, display controller 156, contact / motion module 130, graphics module 132, and text input module 134, telephone module 138 is optionally used to input character sequences corresponding to telephone numbers, access one or more telephone numbers in contact module 137, modify input telephone numbers, dial corresponding telephone numbers, initiate conversations, and disconnect or hang up when a conversation is completed. As noted above, wireless communication may optionally use any of a variety of communication standards, protocols, and technologies.
[0068] Combining RF circuitry 108, audio circuitry 110, speaker 111, microphone 113, touchscreen 112, display controller 156, optical sensor 164, optical sensor controller 158, contact / motion module 130, graphics module 132, text input module 134, contact module 137, and telephone module 138, video conferencing module 139 includes executable instructions to initiate, conduct, and terminate video conferences between the user and one or more other participants based on user instructions.
[0069] Incorporating RF circuitry 108, touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, and text input module 134, email client module 140 includes executable instructions for creating, sending, receiving, and managing emails in response to user commands. Combined with image management module 144, email client module 140 makes it very easy to create and send emails containing still images or video images captured by camera module 143.
[0070] In conjunction with RF circuitry 108, touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, and text input module 134, the instant messaging module 141 includes executable instructions for performing the following operations: entering a character sequence corresponding to an instant message, modifying previously entered characters, sending a corresponding instant message (e.g., using Short Message Service (SMS) or Multimedia Messaging Service (MMS) protocols for telephone-based instant messaging or using XMPP, SIMPLE, or IMPS for internet-based instant messaging), receiving an instant message, and viewing received instant messages. In some embodiments, the sent and / or received instant messages may optionally include graphics, photographs, audio files, video files, and / or other attachments supported in MMS and / or Enhanced Messaging Services (EMS). As used herein, "instant messaging" refers to both telephone-based messages (e.g., messages delivered using SMS or MMS) and internet-based messages (e.g., messages delivered using XMPP, SIMPLE, or IMPS).
[0071] Incorporating RF circuitry 108, touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, text input module 134, GPS module 135, map module 154, and music player module, fitness support module 142 includes executable instructions for performing the following operations: creating fitness activities (e.g., with time, distance, and / or calorie burning goals); communicating with fitness sensors (exercise equipment); receiving fitness sensor data; calibrating sensors used to monitor fitness; selecting and playing music for fitness activities; and displaying, storing, and transmitting fitness data.
[0072] In conjunction with the touchscreen 112, display controller 156, optical sensor 164, optical sensor controller 158, contact / motion module 130, graphics module 132, and image management module 144, the camera module 143 includes executable instructions for performing the following operations: capturing still images or videos (including video streams) and storing them in memory 102, modifying the characteristics of still images or videos, or deleting still images or videos from memory 102.
[0073] Incorporating the touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, text input module 134, and camera module 143, the image management module 144 includes executable instructions for performing operations such as arranging, modifying (e.g., editing) or otherwise manipulating, marking, deleting, presenting (e.g., in a digital slideshow or album), and storing still images and / or video images.
[0074] Combining RF circuitry 108, touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, and text input module 134, browser module 147 includes executable instructions for browsing the Internet (including searching, linking to, receiving, and displaying web pages or portions thereof) according to user instructions, as well as attachments and other files linked to web pages.
[0075] Combining RF circuitry 108, touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, text input module 134, email client module 140, and browser module 147, calendar module 148 includes executable instructions to create, display, modify, and store calendars and associated data (e.g., calendar entries, to-dos, etc.) according to user instructions.
[0076] In conjunction with RF circuitry 108, touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, text input module 134, and browser module 147, widget module 149 may be a micro-application (e.g., weather widget 149-1, stock market widget 149-2, calculator widget 149-3, alarm clock widget 149-4, and dictionary widget 149-5) or a user-created micro-application (e.g., user-created widget 149-6). In some embodiments, the widget includes HTML (Hypertext Markup Language) files, CSS (Cascading Style Sheets) files, and JavaScript files. In some embodiments, the widget includes XML (Extensible Markup Language) files and JavaScript files (e.g., Yahoo! widgets).
[0077] Incorporating RF circuitry 108, touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, text input module 134, and browser module 147, widget creator module 150 can optionally be used by the user to create widgets (e.g., turning a user-specified section of a webpage into a widget).
[0078] In conjunction with the touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, and text input module 134, the search module 151 includes executable instructions for performing the following operations: searching the memory 102 for text, music, sound, images, videos, and / or other files that match one or more search criteria (e.g., one or more user-specified search terms) according to user instructions.
[0079] Incorporating touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, audio circuitry 110, speaker 111, RF circuitry 108, and browser module 147, video and music player module 152 includes executable instructions allowing users to download and play back recorded music and other sound files stored in one or more file formats such as MP3 or AAC files, as well as executable instructions for displaying, presenting, or otherwise playing back video (e.g., on touchscreen 112 or on an external display connected via external port 124). In some embodiments, device 100 optionally includes the functionality of an MP3 player such as an iPod (a trademark of Apple Inc.).
[0080] Combining the touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, and text input module 134, the memo module 153 includes executable instructions for creating and managing memos, to-do items, etc., according to user instructions.
[0081] In conjunction with RF circuitry 108, touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, text input module 134, GPS module 135, and browser module 147, map module 154 may optionally be used to receive, display, modify, and store maps and map-related data (e.g., driving directions, data related to shops and other points of interest at or near a specific location, and other location-based data) according to user instructions.
[0082] Incorporating touchscreen 112, display controller 156, touch / motion module 130, graphics module 132, audio circuitry 110, speaker 111, RF circuitry 108, text input module 134, email client module 140, and browser module 147, the online video module 155 includes instructions allowing users to access, browse, receive (e.g., via streaming and / or downloading), play back (e.g., on the touchscreen or on an externally connected display via external port 124), send emails with links to specific online videos, and otherwise manage online videos in one or more file formats (such as H.264). In some embodiments, an instant messaging module 141 is used instead of the email client module 140 to send links to specific online videos. Additional descriptions of the online video application can be found in U.S. Provisional Patent Application No. 60 / 936,562, filed June 20, 2007, entitled “Portable Multifunction Device, Method, and Graphical User Interface for Playing Online Videos,” and U.S. Patent Application No. 11 / 968,067, filed December 31, 2007, entitled “Portable Multifunction Device, Method, and Graphical User Interface for Playing Online Videos,” the contents of which are incorporated herein by reference in their entirety.
[0083] Each of the modules and applications described above corresponds to an executable instruction set for performing one or more of the functions described above and the methods described in this patent application (e.g., computer-implemented methods and other information processing methods described herein). These modules (e.g., instruction sets) need not be implemented as separate software programs, processes, or modules; therefore, various subsets of these modules may optionally be combined or otherwise rearranged in various embodiments. For example, a video player module may optionally be combined with a music player module into a single module (e.g., Figure 1A (e.g., video and music player module 152). In some embodiments, memory 102 may optionally store a subset of the modules and data structures identified above. Additionally, memory 102 may optionally store additional modules and data structures not described above.
[0084] In some implementations, device 100 is a device whose operation of a predefined set of functions is performed solely via a touchscreen and / or touchpad. By using a touchscreen and / or touchpad as the primary input control device for operating device 100, the number of physical input control devices (such as push-buttons and dial pads) on device 100 can be optionally reduced.
[0085] A predefined set of functions unique to touchscreens and / or touchpads may optionally include navigation between user interfaces. In some embodiments, the touchpad, when touched by a user, navigates device 100 from any user interface displayed on device 100 to the main menu, main desktop menu, or root menu. In such embodiments, a "menu button" is implemented using a touchpad. In some other embodiments, the menu button is a physical push-button or other physical input control device, rather than a touchpad.
[0086] Figure 1B This is a block diagram illustrating exemplary components for event handling according to some embodiments. In some embodiments, memory 102 ( Figure 1A ) or memory 370 ( Figure 3A This includes an event classifier 170 (e.g., in operating system 126) and a corresponding application 136-1 (e.g., any one of the aforementioned applications 137 to 151, 155, 380 to 390).
[0087] Event classifier 170 receives event information and determines the application 136-1 and application view 191 of application 136-1 to which the event information should be delivered. Event classifier 170 includes event monitor 171 and event dispatcher module 174. In some embodiments, application 136-1 includes application internal state 192, which indicates one or more current application views displayed on touch-sensitive display 112 when the application is active or running. In some embodiments, device / global internal state 157 is used by event classifier 170 to determine which application(s) is currently active, and application internal state 192 is used by event classifier 170 to determine the application view 191 to which the event information should be delivered.
[0088] In some implementations, the application internal state 192 includes additional information such as one or more of the following: recovery information to be used when the application 136-1 resumes execution, user interface state information indicating that information is being displayed or ready to be displayed by the application 136-1, a state queue for enabling the user to return to the previous state or view of the application 136-1, and a repeat / undo queue for the user's previous actions.
[0089] Event monitor 171 receives event information from peripheral interface 118. The event information includes information about sub-events, such as a user touch on touch-sensitive display 112 as part of a multi-touch gesture. Peripheral interface 118 transmits information it receives from I / O subsystem 106 or sensors such as proximity sensor 166, accelerometer 168, and / or microphone 113 (via audio circuitry 110). The information received by peripheral interface 118 from I / O subsystem 106 includes information from touch-sensitive display 112 or touch-sensitive surfaces.
[0090] In some implementations, the event monitor 171 sends requests to the peripheral device interface 118 at predetermined intervals. In response, the peripheral device interface 118 sends event information. In other implementations, the peripheral device interface 118 sends event information only when a significant event occurs (e.g., receiving input above a predetermined noise threshold and / or receiving input for a predetermined duration).
[0091] In some implementations, the event classifier 170 also includes a hit view determination module 172 and / or an activity event recognizer determination module 173.
[0092] When the touch-sensitive display 112 displays more than one view, the hit view determination module 172 provides a software process for determining where a sub-event has occurred within one or more views. A view consists of controls and other elements that the user can see on the display.
[0093] Another aspect of the user interface associated with an application is a collection of views, sometimes referred to herein as application views or user interface windows, in which information is displayed and touch-based gestures occur. The application view (of the corresponding application) in which a touch is detected optionally corresponds to a procedural level within the application's procedural or view hierarchy. For example, the lowest-level view in which a touch is detected may optionally be called the hit view, and the set of events identified as correct input may optionally be determined at least in part based on the hit view of the initial touch that initiates the touch-based gesture.
[0094] The hit view determination module 172 receives information related to sub-events of touch-based gestures. When an application has multiple views organized in a hierarchical structure, the hit view determination module 172 identifies the hit view as the lowest-level view in the hierarchical structure from which the sub-events should be processed. In most cases, the hit view is the lowest-level view in which the initiating sub-event (e.g., the first sub-event in a sequence of sub-events forming an event or potential event) occurs. Once the hit view is identified by the hit view determination module 172, the hit view typically receives all sub-events related to the same touch or input source to which it was identified as the hit view.
[0095] The activity event recognizer determination module 173 determines which views(s) within the view hierarchy should receive a specific sub-event sequence. In some embodiments, the activity event recognizer determination module 173 determines that only the hit view should receive the specific sub-event sequence. In other embodiments, the activity event recognizer determination module 173 determines that all views including the physical location of the sub-event are actively participating views, and therefore determines that all actively participating views should receive the specific sub-event sequence. In other embodiments, even if the touch sub-event is entirely confined to the area associated with a particular view, higher views in the hierarchy will still remain actively participating views.
[0096] Event assigner module 174 assigns event information to event identifiers (e.g., event identifier 180). In embodiments that include active event identifier determination module 173, event assigner module 174 delivers event information to the event identifier determined by active event identifier determination module 173. In some embodiments, event assigner module 174 stores event information in an event queue, which is retrieved by the corresponding event receiver 182.
[0097] In some implementations, operating system 126 includes event classifier 170. Alternatively, application 136-1 includes event classifier 170. In yet another implementation, event classifier 170 is a separate module or part of another module (such as contact / motion module 130) stored in memory 102.
[0098] In some implementations, application 136-1 includes a plurality of event handlers 190 and one or more application views 191, each application view including instructions for handling touch events occurring within a corresponding view of the application's user interface. Each application view 191 of application 136-1 includes one or more event recognizers 180. Typically, a corresponding application view 191 includes a plurality of event recognizers 180. In other implementations, one or more of the event recognizers 180 are part of a separate module, such as a user interface toolkit (not shown) or a higher-level object from which application 136-1 inherits methods and other properties. In some implementations, a corresponding event handler 190 includes one or more of the following: a data updater 176, an object updater 177, a GUI updater 178, and / or event data 179 received from an event classifier 170. Event handlers 190 may optionally utilize or invoke the data updater 176, the object updater 177, or the GUI updater 178 to update the application's internal state 192. Alternatively, one or more application views in application view 191 include one or more corresponding event handlers 190. Additionally, in some embodiments, one or more of data updater 176, object updater 177, and GUI updater 178 are included in the corresponding application view 191.
[0099] The corresponding event identifier 180 receives event information (e.g., event data 179) from the event classifier 170 and identifies the event based on the event information. The event identifier 180 includes an event receiver 182 and an event comparator 184. In some embodiments, the event identifier 180 also includes at least one subset of metadata 183 and event delivery instructions 188 (which may optionally include sub-event delivery instructions).
[0100] Event receiver 182 receives event information from event classifier 170. The event information includes information about sub-events, such as touch or touch movement. Depending on the sub-event, the event information also includes additional information, such as the location of the sub-event. When the sub-event involves touch movement, the event information may optionally also include the rate and direction of the sub-event. In some embodiments, the event includes the device rotating from one orientation to another (e.g., from a portrait orientation to a lateral orientation, or vice versa), and the event information includes corresponding information about the device's current orientation (also referred to as device orientation).
[0101] Event comparator 184 compares event information with predefined event or sub-event definitions and determines the event or sub-event based on the comparison, or determines or updates the state of the event or sub-event. In some embodiments, event comparator 184 includes event definition 186. Event definition 186 contains definitions of events (e.g., predefined sequences of sub-events), such as event 1 (187-1), event 2 (187-2), and others. In some embodiments, sub-events in event (187) include, for example, touch start, touch end, touch move, touch cancel, and multi-touch. In one example, event 1 (187-1) is defined as a double-click on a displayed object. For example, a double-click includes a first touch (touch start) of a predetermined duration on the displayed object, a first lift-off of a predetermined duration (touch end), a second touch (touch start) of a predetermined duration on the displayed object, and a second lift-off of a predetermined duration (touch end). In another example, event 2 (187-2) is defined as a drag on a displayed object. For example, dragging includes a touch (or contact) of a predetermined duration on the displayed object, movement of the touch on the touch-sensitive display 112, and lifting the touch (end of touch). In some embodiments, the event also includes information for one or more associated event handlers 190.
[0102] In some implementations, event definition 187 includes definitions of events for corresponding user interface objects. In some implementations, event comparator 184 performs a hit test to determine which user interface object is associated with the sub-event. For example, in an application view displaying three user interface objects on touch-sensitive display 112, when a touch is detected on touch-sensitive display 112, event comparator 184 performs a hit test to determine which of the three user interface objects is associated with the touch (sub-event). If each displayed object is associated with a corresponding event handler 190, the event comparator uses the result of the hit test to determine which event handler 190 should be activated. For example, event comparator 184 selects the event handler associated with the sub-event and the object that triggered the hit test.
[0103] In some implementations, the definition of the corresponding event (187) also includes a delay action that delays the delivery of event information until it has been determined whether the sub-event sequence actually corresponds to or does not correspond to the event type of the event recognizer.
[0104] When the corresponding event recognizer 180 determines that the sub-event sequence does not match any event in event definition 186, the corresponding event recognizer 180 enters an event impossible, event failed, or event ended state, after which subsequent sub-events based on touch gestures are ignored. In this case, other event recognizers (if any) that remain active in the hit view continue to track and process the ongoing sub-events based on touch gestures.
[0105] In some embodiments, the corresponding event recognizer 180 includes metadata 183 having configurable attributes, flags, and / or lists instructing how the event delivery system should perform sub-event delivery to actively participating event recognizers. In some embodiments, the metadata 183 includes configurable attributes, flags, and / or lists instructing how or how event recognizers can interact with each other. In some embodiments, the metadata 183 includes configurable attributes, flags, and / or lists instructing whether sub-events are delivered to different levels in a view or programmatic hierarchy.
[0106] In some implementations, when one or more specific sub-events of an event are identified, the corresponding event recognizer 180 activates the event handler 190 associated with the event. In some implementations, the corresponding event recognizer 180 delivers event information associated with the event to the event handler 190. Activating the event handler 190 is different from delivering (and deferred delivering) the sub-events to the corresponding hit view. In some implementations, the event recognizer 180 throws a flag associated with the identified event, and the event handler 190 associated with the flag retrieves the flag and performs a predefined process.
[0107] In some implementations, event delivery instruction 188 includes a sub-event delivery instruction that delivers event information about a sub-event without activating an event handler. Instead, the sub-event delivery instruction delivers the event information to an event handler associated with the sub-event sequence or to an actively participating view. The event handler associated with the sub-event sequence or the actively participating view receives the event information and performs a predetermined process.
[0108] In some implementations, data updater 176 creates and updates data used in application 136-1. For example, data updater 176 updates phone numbers used in contact module 137 or stores video files used in video player module. In some implementations, object updater 177 creates and updates objects used in application 136-1. For example, object updater 177 creates new user interface objects or updates the positioning of user interface objects. GUI updater 178 updates the GUI. For example, GUI updater 178 prepares display information and transmits that display information to graphics module 132 for display on a touch-sensitive display.
[0109] In some implementations, event handler 190 includes, or has access to, a data updater 176, an object updater 177, and a GUI updater 178. In some implementations, data updater 176, object updater 177, and GUI updater 178 are included in a single module of the corresponding application 136-1 or application view 191. In other implementations, they are included in two or more software modules.
[0110] It should be understood that the above discussion regarding event handling for user touch on a touch-sensitive display also applies to other forms of user input that utilize input devices to operate the multifunction device 100, and not all user input is initiated on the touchscreen. For example, mouse movement and mouse button presses optionally in conjunction with single or multiple keyboard presses or holds; touch movements on the touchpad, such as taps, drags, scrolls, etc.; stylus input; device movement; verbal commands; detected eye movements; biometric input; and / or any combination thereof may optionally be used as input corresponding to sub-events that define the event to be identified.
[0111] Figure 2 Portable or non-portable multifunction device 100 with touchscreen 112 according to some embodiments is illustrated. As stated above, multifunction device 100 is described as having various illustrated structures (such as touchscreen 112, speaker 111, accelerometer 168, microphone 113, etc.); however, it should be understood that these structures may optionally reside on separate devices. For example, display-related structures (e.g., display, speaker, etc.) and / or functions may optionally reside on separate display devices, input-related structures (e.g., touch-sensitive surface, microphone, accelerometer, etc.) and / or functions may optionally reside on separate input devices, and other structures and / or functions may optionally reside on multifunction device 100.
[0112] Touchscreen 112 optionally displays one or more graphics within user interface (UI) 200. In this embodiment and other embodiments described below, a user can select one or more graphics by gesturing over the graphics, for example, using one or more fingers 202 (not drawn to scale in the diagram) or one or more styluses 203 (not drawn to scale in the diagram). In some embodiments, selection of one or more graphics occurs when the user breaks contact with the graphics. In some embodiments, gestures optionally include one or more taps, one or more swipes (from left to right, from right to left, up and / or down), and / or scrolling (from right to left, from left to right, up and / or down) of a finger already in contact with device 100. In some embodiments or in some cases, unintentional contact with a graphic does not select the graphic. For example, a swipe gesture over an application icon may optionally not select the corresponding application when the gesture corresponding to selection is a tap.
[0113] Device 100 may also include one or more physical buttons, such as a "main desktop" or menu button 204. As previously described, menu button 204 may optionally be used to navigate to any application 136 of a set of applications optionally executed on device 100. Alternatively, in some embodiments, the menu button is implemented as a soft key in a GUI displayed on touchscreen 112.
[0114] In one embodiment, device 100 includes a touchscreen 112, a menu button 204, a push-button 206 for powering on / off and locking the device, one or more volume control buttons 208, a subscriber identity module (SIM) card slot 210, a headset jack 212, and a docking / charging external port 124. The push-button 206 is optionally used to: power on / off the device by pressing the button and holding it in the pressed state for a predefined time interval; lock the device by pressing the button and releasing it before the predefined time interval has elapsed; and / or unlock the device or initiate an unlocking process. In another embodiment, device 100 also accepts voice input via microphone 113 for activating or deactivating certain functions. Device 100 may also optionally include one or more contact strength sensors 165 for detecting the intensity of contact on the touchscreen 112, and / or one or more haptic output generators 167 for generating haptic output for a user of device 100.
[0115] Figure 3AThis is a block diagram of an exemplary multifunctional device with a display and a touch-sensitive surface according to some embodiments. As described above, device 300 does not necessarily include a display and a touch-sensitive surface; instead, in some embodiments, it optionally communicates with displays and touch-sensitive surfaces on other devices. Additionally, device 300 does not necessarily have to be portable. In some embodiments, device 300 is a laptop computer, desktop computer, tablet computer, multimedia player device (such as a television or set-top box), navigation device, educational device (such as a children's learning toy), gaming system, or control device (e.g., a home or industrial controller). Device 300 typically includes one or more processing units (CPUs) 310, one or more network or other communication interfaces 360, memory 370, and one or more communication buses 320 for interconnecting these components. The communication bus 320 optionally includes circuitry (sometimes referred to as a chipset) that interconnects system components and controls communication between system components. Device 300 includes an input / output (I / O) interface 330 with a display 340, which is typically a touchscreen display. I / O interface 330 may also optionally include keyboard and / or mouse (or other pointing device) 350 and touchpad 355, and haptic output generator 357 for generating haptic output on device 300 (e.g., similar to the above reference). Figure 1A The described tactile output generator 167) and sensor 359 (e.g., optical sensor, accelerometer, proximity sensor, touch sensor and / or similar to those described above) are referenced in the reference. Figure 1A The contact strength sensor 165 described herein is a contact strength sensor. Memory 370 includes high-speed random access memory, such as DRAM, SRAM, DDR RAM, or other random access solid-state memory devices; and optionally includes non-volatile memory, such as one or more disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state memory devices. Memory 370 optionally includes one or more storage devices located remotely from CPU 310. In some embodiments, memory 370 stores programs, modules, and data structures, or subsets thereof, which are similar to portable or non-portable multifunction device 100 (…). Figure 1A The memory 370 stores programs, modules, and data structures in the memory 102 of the portable or non-portable multifunction device 100. Additionally, the memory 370 may optionally store additional programs, modules, and data structures not present in the memory 102 of the portable or non-portable multifunction device 100. For example, the memory 370 of the device 300 may optionally store a drawing module 380, a rendering module 382, a word processing module 384, a website creation module 386, a disk editing module 388, and / or a spreadsheet module 390, while the portable or non-portable multifunction device 100 ( Figure 1A The memory 102 may optionally not store these modules.
[0116] Figure 3A Each of the elements identified above may optionally be stored in one or more of the previously mentioned memory devices. Each of the modules identified above corresponds to an instruction set for performing the functions described above. The modules or programs identified above (i.e., instruction sets) need not be implemented as standalone software programs, processes, or modules; therefore, various subsets of these modules may optionally be combined or otherwise rearranged in various embodiments. In some embodiments, memory 370 may optionally store a subset of the modules and data structures identified above. Furthermore, memory 370 may optionally store additional modules and data structures not described above.
[0117] Specific embodiments within the scope of this disclosure may be implemented, in whole or in part, using a tangible computer-readable storage medium (or a plurality of tangible computer-readable storage media of one or more types) that encodes one or more computer-readable instructions. It should be understood that computer-readable instructions may be organized in any format, including applications, widgets, processes, software, and / or components.
[0118] Specific embodiments within the scope of this disclosure include computer-readable storage media that encode instructions organized as an application (e.g., application 3160) that, when executed by one or more processing units, control the execution of an electronic device (e.g., device 3150). Figure 3B Methods Figure 3C The methods and / or one or more other processes and / or methods described herein.
[0119] It should be recognized that the application of 3160 ( Figure 3D The application 3160 (as shown in the diagram) can be any suitable type of application, including one or more of the following: browser applications, applications used as execution environments for plugins, widgets, or other applications, fitness applications, health applications, digital payment applications, media applications, social networking applications, messaging applications, and / or map applications. In some embodiments, application 3160 is an application pre-installed on device 3150 at the time of purchase (e.g., a first-party application). In some embodiments, application 3160 is an application provided to device 3150 via operating system update files (e.g., a first-party or second-party application). In some embodiments, application 3160 is an application provided via an app store. In some embodiments, the app store can be an app store pre-installed on device 3150 at the time of purchase (e.g., a first-party app store). In some embodiments, the app store is a third-party app store (e.g., an app store provided by another app store, downloaded via a network, and / or read from a storage device).
[0120] refer to Figure 3B and Figure 3FApplication 3160 obtains information (e.g., 3010). In some embodiments, at 3010, information is obtained from at least one hardware component of device 3150. In some embodiments, at 3010, information is obtained from at least one software module of device 3150. In some embodiments, at 3010, information is obtained from at least one hardware component external to device 3150 (e.g., peripheral devices, accessory devices, and / or servers). In some embodiments, the information obtained at 3010 includes location information, time information, notification information, user information, environmental information, electronic device status information, weather information, media information, historical information, event information, hardware information, and / or motion information. In some embodiments, in response to obtaining information at 3010 and / or thereafter, application 3160 provides the information to the system (e.g., 3020).
[0121] In some implementations, the system (e.g., Figure 3E The 3110 shown is the operating system hosted on the device 3150. In some implementations, the system (e.g., Figure 3E 3110 shown in the figure is an external device (e.g., a server, peripheral device, accessory and / or personal computing device) that includes an operating system.
[0122] refer to Figure 3C and Figure 3G Application 3160 obtains information (e.g., 3030). In some embodiments, the information obtained at 3030 includes location information, time information, notification information, user information, environmental information, electronic device status information, weather information, media information, historical information, event information, hardware information, and / or motion information. In response to obtaining information at 3030 and / or thereafter, application 3160 performs an operation on the information (e.g., 3040). In some embodiments, the operation performed at 3040 includes: providing notifications based on the information, sending messages based on the information, displaying information, controlling the user interface of a fitness application based on the information, controlling the user interface of a health application based on the information, controlling focus mode based on the information, setting reminders based on the information, adding calendar entries based on the information, and / or calling the API of system 3110 based on the information.
[0123] In some implementations, execution is performed in response to a trigger. Figure 3B Methods and / or Figure 3C The method involves one or more steps. In some implementations, triggering includes detecting an event, receiving a notification from system 3110, user input, and / or responding to a call to an API provided by system 3110.
[0124] In some implementations, when the instructions of application 3160 are executed, control device 3150 executes them by calling an application programming interface (API) (e.g., API 3190) provided by system 3110. Figure 3B Methods and / or Figure 3C The method. In some implementations, application 3160 executes without calling API 3190. Figure 3B Methods and / or Figure 3C At least a part of the method.
[0125] In some implementation schemes, Figure 3B Methods and / or Figure 3C One or more steps of the method involve calling the API (e.g., API 3190) using one or more parameters defined by the API. In some implementations, one or more parameters include constants, keys, data structures, objects, object classes, variables, data types, pointers, arrays, lists, or pointers to functions or methods and / or references to data or other items to be passed via the API in another way.
[0126] refer to Figure 3D Example 3150 is shown. In some embodiments, device 3150 is a personal computing device, smartphone, smartwatch, fitness tracker, head-mounted display (HMD) device, media device, public utility, speaker, television, and / or tablet computer. Figure 3D As illustrated, device 3150 includes application 3160 and operating system (e.g., Figure 3E System 3110 is shown in the diagram. Application 3160 includes application implementation module 3170 and API call module 3180. System 3110 includes API 3190 and implementation module 3100. It should be understood that device 3150, application 3160 and / or system 3110 may include... Figure 3D and Figure 3E The examples illustrate more, fewer, and / or different components.
[0127] In some implementations, application implementation module 3170 includes a set of one or more instructions corresponding to one or more operations performed by application 3160. For example, when application 3160 is a messaging application, application implementation module 3170 may include operations for receiving and transmitting messages. In some implementations, application implementation module 3170 communicates with API calling module 3180 via API 3190 (in... Figure 3E (As shown in the figure) communicates with system 3110.
[0128] In some implementations, API 3190 is a software module (e.g., a set of computer-readable instructions) that provides an interface that allows different modules (e.g., API calling module 3180) to access and / or use one or more functions, methods, procedures, data structures, classes, and / or other services provided by implementation module 3100 of system 3110. For example, API calling module 3180 can access features of implementation module 3100 through one or more API calls or enablements (e.g., embodied by function or method calls) exposed by API 3190 (e.g., software and / or hardware modules that can receive, respond to, and / or transmit API calls), and can pass data and / or control information via API calls or enablements using one or more parameters. In some implementations, API 3190 allows application 3160 to use services provided by a software development kit (SDK) library. In some implementations, application 3160 combines calls to functions or methods provided by the SDK library and API 3190, or uses data types or objects defined in the SDK library and provided by API 3190. In some implementations, API calling module 3180 makes API calls via API 3190 to access and use features of implementation module 3100 specified by API 3190. In such implementations, implementation module 3100 may return a value to API calling module 3180 via API 3190 in response to an API call. This value may report to application 3160 the capabilities or status of hardware components of device 3150, including those capabilities or statuses related to aspects such as input capabilities and status, output capabilities and status, processing capabilities, power status, storage capacity and status, and / or communication capabilities. In some implementations, API 3190 is implemented in part by firmware, microcode, or other low-level logic executed in part on the hardware components.
[0129] In some implementations, API 3190 allows the developer of API calling module 3180 (which may be a third-party developer) to utilize features provided by implementation module 3100. In such implementations, one or more API calling modules (e.g., including API calling module 3180) may exist that communicate with implementation module 3100. In some implementations, API 3190 allows multiple API calling modules written in different programming languages to communicate with implementation module 3100 (e.g., API 3190 may include features for translating calls and returns between implementation module 3100 and API calling module 3180), and API 3190 is implemented in a specific programming language. In some implementations, API calling module 3180 calls APIs from different providers, such as a set of APIs from an OS provider, another set of APIs from a plugin provider, and / or another set of APIs from another provider (e.g., a software library provider) or the creator of another set of APIs.
[0130] Examples of API 3190 may include one or more of the following: pairing API (e.g., for establishing a secure connection, such as with an accessory), device detection API (e.g., for locating nearby devices, such as media devices and / or smartphones), payment API, UIKit API (e.g., for generating user interfaces), location detection API, locator API, map API, health sensor API, sensor API, messaging API, push notification API, streaming API, collaboration API, video conferencing API, app store API, advertising service API, web browser API (e.g., WebKit API), transportation API, networking API, WiFi API, Bluetooth API, NFC API, UWB API, fitness API, smart home API, contact transfer API, photo API, camera API, and / or image processing API. In some implementations, a sensor API is an API for accessing data associated with sensors of device 3150. For example, a sensor API may provide access to raw sensor data. Alternatively, a sensor API may provide data derived (and / or generated) from raw sensor data. In some implementations, sensor data includes temperature data, image data, video data, audio data, heart rate data, IMU (Inertial Measurement Unit) data, lidar data, location data, GPS data, and / or camera data. In some implementations, sensors include one or more of accelerometers, temperature sensors, infrared sensors, optical sensors, heart rate sensors, barometers, gyroscopes, proximity sensors, and / or biometric sensors.
[0131] In some embodiments, implementation module 3100 is a system (e.g., an operating system and / or server system) software module (e.g., a set of computer-readable instructions) configured to perform operations in response to receiving an API call via API 3190. In some embodiments, implementation module 3100 is configured to provide an API response (via API 3190) as a result of processing the API call. For example, implementation module 3100 and API call module 3180 can each be any of an operating system, library, device driver, API, application, or other module. It should be understood that implementation module 3100 and API call module 3180 can be the same or different types of modules. In some embodiments, implementation module 3100 is at least partially embodied in firmware, microcode, or hardware logic.
[0132] In some implementations, implementation module 3100 returns a value via API 3190 in response to an API call from API calling module 3180. While API 3190 defines the syntax and results of the API call (e.g., how to enable the API call and what the API call does), API 3190 may not reveal how implementation module 3100 performs the functionality specified by the API call. Various API calls are transmitted via one or more application programming interfaces between API calling module 3180 and implementation module 3100. Transmitting API calls may include issuing, initiating, referencing, calling, receiving, returning, and / or responding to function calls or messages. In other words, transmissions may describe the actions of API calling module 3180 or implementation module 3100. In some implementations, function calls or other references to API 3190 transmit and / or receive one or more parameters via parameter lists or other structures.
[0133] In some implementations, implementation module 3100 provides more than one API, each API providing a different view or aspect of the functionality implemented by implementation module 3100. For example, one API of implementation module 3100 may provide a first set of functions and may be exposed to third-party developers, while another API of implementation module 3100 may be hidden (e.g., not exposed) and provide a subset of the first set of functions, and also provide another set of functions, such as test or debug functions not in the first set of functions. In some implementations, implementation module 3100 calls one or more other components via lower-level APIs, thus acting as both an API calling module and an implementation module. It should be recognized that implementation module 3100 may include additional functions, methods, classes, data structures, and / or other features not specified through API 3190 and not available to API calling module 3180. It should also be recognized that API calling module 3180 may be on the same system as implementation module 3100, or may be remotely located and accessed via a network using API 3190. In some implementations, implementation module 3100, API 3190, and / or API calling module 3180 are stored in a machine-readable medium, which includes any means for storing information in a machine-readable (e.g., computer or other data processing system) form. For example, a machine-readable medium may include a magnetic disk, optical disk, random access memory, read-only memory, and / or flash memory devices.
[0134] An Application Programming Interface (API) is an interface between a first software process and a second software process, specifying the format for communication between the two processes. Limited APIs (e.g., private or partner APIs) are APIs accessible to a limited set of software processes (e.g., only software processes within the operating system or only software processes authorized to access the limited API). Public APIs are accessible to a broader set of software processes. Some APIs enable a software process to communicate or set the state of one or more input devices (e.g., one or more touch sensors, proximity sensors, vision sensors, motion / or orientation sensors, pressure sensors, intensity sensors, sound sensors, wireless proximity sensors, biometric sensors, buttons, switches, rotatable elements, and / or external controllers). Some APIs enable a software process to communicate and / or set the state of one or more output generation components (e.g., one or more audio output generation components, one or more display generation components, and / or one or more haptic output generation components). Some APIs enable specific capabilities (e.g., scrolling, handwriting, text input, image editing, and / or image creation) to be accessed, executed, and / or used by a software process (e.g., generating output for use by the software process based on input from the software process). Some APIs enable content from software processes to be inserted into templates and displayed in user interfaces with layouts and / or behaviors specified by the templates.
[0135] Many software platforms include a set of frameworks that provide core objects and behaviors that software developers need to build software applications that can be used on the platform. Software developers use these objects to display content on a screen, interact with that content, and manage interactions with the software platform. The basic behavior of a software application depends on this framework, and this framework provides software developers with numerous ways to customize the application's behavior to match the specific needs of the application. Many of these core objects and behaviors are accessed via APIs. APIs typically specify the format for communication between software processes, including specifying and grouping available variables, functions, and protocols. API calls (sometimes called API requests) are typically passed from a sending software process to a receiving software process as a way to achieve one or more of the following: the sending software process requests information from the receiving software process (e.g., for the sending software process to take an action); the sending software process provides information to the receiving software process (e.g., for the receiving software process to take an action); the sending software process requests an action from the receiving software process; or the sending software process provides information to the receiving software process about the action taken by the sending software process. In some cases, interaction with a device (e.g., using a user interface) will involve transmitting and / or receiving one or more API calls (e.g., multiple API calls) between multiple different software processes (e.g., different parts of an operating system, applications and operating systems, or different applications) via one or more APIs (e.g., via multiple different APIs). For example, when input is detected, direct sensor data is frequently processed into one or more input events, which are provided (e.g., via an API) to a receiving software process, which makes some determinations based on the input events and then (e.g., via an API) transmits information to the software process to perform an operation (e.g., change the device state and / or the user interface) based on the determinations. While the determinations and the operations performed in response can be made by the same software process, alternatively, the determinations can be made in a first software process and relayed (e.g., via an API) to a second software process different from the first software process, allowing the operation to be performed by the second software process. Alternatively, the second software process can relay instructions (e.g., via an API) to a third software process different from the first and / or second software processes to perform the operation. It should be understood that some or all user interactions with a computer system may involve one or more API calls within the steps of interacting with the computer system (e.g., between different software components of the computer system or between software components of the computer system and software components of one or more remote computer systems).It should be understood that some or all user interactions with a computer system may involve one or more API calls between steps of interaction with the computer system (e.g., between different software components of the computer system or between software components of the computer system and software components of one or more remote computer systems).
[0136] In some implementations, the application can be any suitable type of application, including one or more of the following: browser applications, applications used as execution environments for plugins, widgets or other applications, fitness applications, health applications, digital payment applications, media applications, social networking applications, messaging applications and / or map applications.
[0137] In some embodiments, the application is an application pre-installed on the first computer system at the time of purchase (e.g., a first-party application). In some embodiments, the application is an application provided to the first computer system via an operating system update file (e.g., a first-party application). In some embodiments, the application is an application provided via an app store. In some embodiments, the app store is pre-installed on the first computer system at the time of purchase (e.g., a first-party app store) and allows the download of one or more applications. In some embodiments, the app store is a third-party app store (e.g., an app store provided by another device, downloaded via a network, and / or read from a storage device). In some embodiments, the application is a third-party application (e.g., an application provided by an app store, downloaded via a network, and / or read from a storage device). In some embodiments, the application controls the first computer system to execute method 700 by calling an application programming interface (API) provided by a system process using one or more parameters. Figure 7 ).
[0138] In some implementations, exemplary APIs provided by system processes include one or more of the following: pairing API (e.g., for establishing a secure connection, such as with an accessory), device detection API (e.g., for locating nearby devices, such as media devices and / or smartphones), payment API, UIKit API (e.g., for generating user interfaces), location detection API, locator API, map API, health sensor API, sensor API, messaging API, push notification API, streaming API, collaboration API, video conferencing API, app store API, advertising service API, web browser API (e.g., WebKit API), transportation API, networking API, WiFi API, Bluetooth API, NFC API, UWB API, fitness API, smart home API, contact transfer API, photo API, camera API, and / or image processing API.
[0139] In some embodiments, at least one API is a software module (e.g., a set of computer-readable instructions) that provides an interface allowing different modules (e.g., an API calling module) to access and use one or more functions, methods, procedures, data structures, classes, and / or other services provided by an implementation module of a system process. The API may define one or more parameters passed between the API calling module and the implementation module. In some embodiments, API 3190 defines a first API call that can be provided by API calling module 3180. An implementation module is a system software module (e.g., a set of computer-readable instructions) configured to perform operations in response to receiving an API call via the API. In some embodiments, the implementation module is configured to provide an API response (via the API) as a result of processing the API call. In some embodiments, the implementation module is included in a device (e.g., 3150) running an application. In some embodiments, the implementation module is included in an electronic device separate from the device running the application.
[0140] Now let’s turn our attention to the implementation of the user interface, which may be optionally implemented on, for example, a portable multifunction device 100.
[0141] Figure 4A An exemplary user interface for an application menu on a portable multifunction device 100 according to some embodiments is illustrated. A similar user interface may optionally be implemented on device 300. In some embodiments, user interface 400 includes the following elements or a subset or superset thereof: • Signal strength indicator 402 for wireless communications such as cellular signals and Wi-Fi signals; • Time 404; • Bluetooth indicator 405; • Battery status indicator 406; • Tray 408 features icons for frequently used applications, such as: • The telephone module 138 has an icon 416 labeled “telephone”, which optionally includes an indicator 414 for the number of missed calls or voicemails; • An icon 418 labeled “Mail” in the email client module 140, which optionally includes an indicator 410 for the number of unread emails; • The icon 420 of browser module 147, labeled "Browser"; and • The video and music player module 152 (also known as the iPod module 152, a trademark of Apple Inc.) is marked with an icon 422 labeled "iPod"; and • Icons of other applications, such as: • Icon 424 labeled "Message" in IM module 141; • The icon 426 labeled "Calendar" in calendar module 148; • The icon 428 labeled "Photo" in the image management module 144; • The icon 430 of the camera module 143, which is labeled "camera"; • The icon 432 of the online video module 155, labeled "Online Video"; • The icon 434 labeled "Stock Market" in the Stock Market widget 149-2; • Icon 436 labeled "Map" in map module 154; • The weather widget 149-1 has icon 438 labeled "Weather"; • The alarm clock widget 149-4 has an icon 440 labeled "clock"; • The icon 442 of the fitness support module 142 is labeled "Fitness Support"; • The icon 444 of the memo module 153, labeled "Memo"; and • An icon 446 labeled “Settings” is used to set up applications or modules, providing access to settings for device 100 and its various applications 136.
[0142] It should be pointed out that, Figure 4A The illustrated icon labels are merely exemplary. For example, icon 422 of video and music player module 152 is labeled "Music" or "Music Player". Other labels may be used for various application icons. In some embodiments, the label of a particular application icon includes the name of the application corresponding to that particular application icon. In some embodiments, the label of a particular application icon is different from the name of the application corresponding to that particular application icon.
[0143] Figure 4B An example is illustrated having a touch-sensitive surface 451 (e.g., separate from the display 450 (e.g., touchscreen display 112)). Figure 3A Devices such as tablets or touchpads (e.g., 355) Figure 3A An exemplary user interface on the device 300. The device 300 may also optionally include one or more contact intensity sensors (e.g., one or more sensors in sensor 359) for detecting the intensity of contact on the tactile surface 451 and / or one or more tactile output generators 357 for generating tactile output for the user of the device 300.
[0144] While some examples of inputs on a reference touchscreen display 112 (which combines a touch-sensitive surface and a display) are given below, in some embodiments the device detects inputs on a touch-sensitive surface separate from the display, such as... Figure 4B As shown. In some implementations, the touch-sensitive surface (e.g., Figure 4B 451) has a spindle (e.g., on the display (e.g., 450) corresponding to the main axis on the display (e.g., Figure 4B The main shaft of 453 in the middle (e.g., Figure 4B (452 in the example). According to these embodiments, the device detects the position corresponding to a specific location on the display (e.g., in...). Figure 4B In the diagram, 460 corresponds to 468 and 462 corresponds to 470) is in contact with the touch-sensitive surface 451 (e.g., Figure 4B (460 and 462 in the text). Thus, when the touch-sensitive surface (e.g., ...) Figure 4B 451 in the middle) and the display of a multi-functional device (e.g., Figure 4B When 450 is separated from the touch-sensitive surface, user input detected by the device on that touch-sensitive surface (e.g., touches 460 and 462 and their movement) is used by the device to manipulate the user interface on the display. It should be understood that similar methods can be optionally used for other user interfaces described herein.
[0145] Additionally, while the examples below are given primarily with reference to finger input (e.g., finger touch, finger tap, finger swipe), it should be understood that in some implementations, one or more of these finger inputs may be replaced by input from another input device (e.g., mouse-based input or stylus input). For example, a swipe gesture may optionally be replaced by a mouse click (e.g., instead of a touch), followed by movement of the cursor along the path of the swipe (e.g., instead of movement of the touch). Similarly, a tap gesture may optionally be replaced by a mouse click while the cursor is over the location of the tap gesture (e.g., instead of detection of touch, followed by cessation of touch detection). Likewise, when multiple user inputs are detected simultaneously, it should be understood that multiple computer mice may optionally be used simultaneously, or mouse and finger touch may optionally be used simultaneously.
[0146] Additionally, while the examples below are given primarily with reference to finger input (e.g., finger touch, single-finger tap gesture, finger swipe gesture), it should be understood that in some implementations, one or more of these finger inputs may be replaced by input from another input device (e.g., mouse-based input or stylus input). For example, a swipe gesture may optionally be replaced by a mouse click (e.g., instead of a touch), followed by movement of the cursor along the path of the swipe (e.g., instead of movement of the touch). Similarly, a tap gesture may optionally be replaced by a mouse click while the cursor is over the location of the tap gesture (e.g., instead of detection of touch, followed by cessation of touch detection). Likewise, when multiple user inputs are detected simultaneously, it should be understood that multiple computer mice may optionally be used simultaneously, or mouse and finger touch may optionally be used simultaneously.
[0147] As used herein, the term "focus selector" refers to an input element used to indicate the current portion of a user interface with which a user is interacting. In some specific implementations that include a cursor or other position marker, the cursor acts as a "focus selector," such that when the cursor is over a particular user interface element (e.g., a button, window, slider, or other user interface element), the cursor is positioned on a touch-sensitive surface (e.g., a...). Figure 3A The touchpad 355 or Figure 4B When an input (e.g., a press input) is detected on the touch-sensitive surface 451 of the display, the specific user interface element is adjusted according to the detected input. This applies to touchscreen displays that enable direct interaction with user interface elements on the touchscreen display. Figure 1AIn some embodiments of the touch-sensitive display system 112, a touch detected on the touchscreen acts as a "focus selector," causing the specific user interface element to be selected based on the detected input when input (e.g., a press input via a touch) is detected at the location of a specific user interface element (e.g., a button, window, slider, or other user interface element) on the touchscreen display. In some embodiments, focus moves from one area of the user interface to another without corresponding movement of the cursor or movement of a touch on the touchscreen display (e.g., moving focus from one button to another using tab keys or arrow keys); in these embodiments, the focus selector moves based on the movement of focus between different areas of the user interface. Regardless of the specific form the focus selector takes, the focus selector is typically a user-controlled user interface element (or a touch on the touchscreen display) that transmits the user's expected interaction with the user interface (e.g., by indicating to the device the user interface element with which the user expects to interact). For example, when a press input is detected on a touch-sensitive surface (e.g., a touchpad or touchscreen), the position of the focus selector (e.g., a cursor, touch, or selection box) above the corresponding button will indicate to the user that they expect to activate the corresponding button (rather than other user interface elements shown on the device's display).
[0148] As used in the specification and claims, the term "characteristic strength" of a contact refers to a characteristic of the contact based on one or more strengths of the contact. In some embodiments, the characteristic strength is based on multiple strength samples. The characteristic strength may optionally be based on a predefined number of strength samples or a set of strength samples collected over a predetermined time period (e.g., 0.05 seconds, 0.1 seconds, 0.2 seconds, 0.5 seconds, 1 second, 2 seconds, 5 seconds, 10 seconds) relative to a predefined event (e.g., after contact is detected, before contact is detected to be lifted, before or after contact begins to move, before contact ends, before or after contact strength is detected to increase, and / or before or after contact strength is detected to decrease). The characteristic strength of the contact may optionally be based on one or more of the following: the maximum value of the contact strength, the mean value of the contact strength, the average value of the contact strength, the value at the top 10% of the contact strength, the half maximum value of the contact strength, or the 90% maximum value of the contact strength, etc. In some embodiments, the duration of the contact is used when determining the characteristic strength (e.g., when the characteristic strength is the average value of the contact strength over time). In some implementations, the characteristic intensity is compared to a set of one or more intensity thresholds to determine whether a user has performed an action. For example, the set of one or more intensity thresholds may optionally include a first intensity threshold and a second intensity threshold. In this example, contact with a characteristic intensity not exceeding the first threshold results in a first action, contact with a characteristic intensity exceeding the first intensity threshold but not exceeding the second intensity threshold results in a second action, and contact with a characteristic intensity exceeding the second threshold results in a third action. In some implementations, a comparison between the characteristic intensity and one or more thresholds is used to determine whether one or more actions should be performed (e.g., whether to perform the corresponding action or abandon performing the corresponding action) rather than to determine whether to perform the first action or the second action.
[0149] In some embodiments described herein, one or more operations are performed in response to detecting a gesture including a corresponding press input or in response to detecting a corresponding press input performed using a corresponding contact (or multiple contacts), wherein the corresponding press input is detected at least in part based on detecting that the intensity of the contact (or multiple contacts) increases to above a press input intensity threshold. In some embodiments, the corresponding operation is performed in response to detecting that the intensity of the corresponding contact increases to above a press input intensity threshold (e.g., a "downward stroke" of the corresponding press input). In some embodiments, the press input includes the intensity of the corresponding contact increasing to above a press input intensity threshold and the intensity of the contact subsequently decreasing to below the press input intensity threshold, and the corresponding operation is performed in response to detecting that the intensity of the corresponding contact subsequently decreases to below the press input threshold (e.g., an "upward stroke" of the corresponding press input).
[0150] In some implementations, the device employs intensity hysteresis to avoid unintended inputs sometimes referred to as "jitter," wherein the device defines or selects a hysteresis intensity threshold that has a predefined relationship with a press input intensity threshold (e.g., the hysteresis intensity threshold is X intensity units lower than the press input intensity threshold, or the hysteresis intensity threshold is 75%, 90%, or some reasonable percentage of the press input intensity threshold). Therefore, in some implementations, a press input includes an increase in the intensity of the corresponding contact above the press input intensity threshold and a subsequent decrease in the intensity of that contact below the hysteresis intensity threshold corresponding to the press input intensity threshold, and an operation is performed in response to detecting that the intensity of the corresponding contact subsequently decreases below the hysteresis intensity threshold (e.g., the "upstroke" of the corresponding press input). Similarly, in some implementations, a press input is detected only when the device detects that the intensity of the contact increases from an intensity equal to or below a hysteresis intensity threshold to an intensity equal to or above a press input intensity threshold and optionally the intensity of the contact subsequently decreases to an intensity equal to or below the hysteresis intensity, and corresponding operations are performed in response to the detection of a press input (e.g., depending on the environment, the intensity of the contact increases or decreases).
[0151] For ease of explanation, optionally, the description of an operation triggered in response to a press input associated with a press input strength threshold or in response to a gesture including a press input may be provided in response to detecting any of the following conditions: the contact strength increases to above the press input strength threshold, the contact strength increases from below a hysteresis strength threshold to above the press input strength threshold, the contact strength decreases to below the press input strength threshold, and / or the contact strength decreases to below the hysteresis strength threshold corresponding to the press input strength threshold. Additionally, in the example where the operation is described as being performed in response to detecting a decrease in contact strength below the press input strength threshold, the operation may optionally be performed in response to detecting a decrease in contact strength below a hysteresis strength threshold corresponding to and less than the press input strength threshold.
[0152] Figure 5A A block diagram illustrating an exemplary architecture for device 500 according to some embodiments of this disclosure is shown. Figure 5AIn this implementation, media content or other content may optionally be received by device 500 via network interface 502, which may optionally be a wireless or wired connection. One or more processors 516 may optionally execute any number of programs stored in memory 506 or storage device, these programs may optionally include instructions for performing one or more of the methods and / or processes described herein (e.g., method 700). A computer-readable storage medium may be any medium that can tangibly contain or store computer-executable instructions for use by or in connection with an instruction execution system, apparatus, or device. In some examples, the storage medium is a transient computer-readable storage medium. In some examples, the storage medium is a non-transitory computer-readable storage medium. Non-transitory computer-readable storage media may include, but are not limited to, magnetic storage devices, optical storage devices, and / or semiconductor storage devices. Examples of such storage devices include magnetic disks, optical discs based on CD, DVD, or Blu-ray technology, and persistent solid-state storage such as flash memory, solid-state drives, etc. The personal electronic device 500 is not limited to the components and configurations of FIG. 5, but may include other components or additional components in a variety of configurations.
[0153] Furthermore, in a method described herein where one or more steps depend on the satisfaction of one or more conditions, it should be understood that the method may be repeated in multiple repetitions such that, during the repetitions, all conditions determining the steps in the method are satisfied in different repetitions of the method. For example, if the method requires performing a first step (if the conditions are satisfied) and a second step (if the conditions are not satisfied), those skilled in the art will know that the stated steps are repeated until both conditions are satisfied and not satisfied (in no particular order). Thus, a method described as having one or more steps depending on the satisfaction of one or more conditions can be rewritten as a method that repeats until each condition described in the method is satisfied. However, this does not require the system or computer-readable medium to declare that the system or computer-readable medium contains instructions for performing discretionary operations based on the satisfaction of the corresponding one or more conditions, and thus to determine whether possible conditions have been satisfied without explicitly repeating the steps of the method until all conditions determining the steps in the method are satisfied. Those skilled in the art will also understand that, similar to a method having discretionary steps, a system or computer-readable storage medium may repeat the steps of the method multiple times as needed to ensure that all discretionary steps have been performed.
[0154] As used herein, the term "power indication" refers to the ability to indicate power in devices 100, 300, and / or 500 (…). Figure 1A Figure 3 and Figures 5A to 5B A user-interactive graphical user interface object displayed on a screen. For example, images (e.g., icons), buttons, and text (e.g., hyperlinks) may each constitute a display representation.
[0155] As used herein, the term "focus selector" refers to an input element used to indicate the current portion of a user interface with which a user is interacting. In some specific implementations that include a cursor or other position marker, the cursor acts as a "focus selector," such that when the cursor is over a particular user interface element (e.g., a button, window, slider, or other user interface element), the cursor is positioned on a touch-sensitive surface (e.g., a...). Figure 3A The touchpad 355 or Figure 4B When an input (e.g., a press input) is detected on the touch-sensitive surface 451 of the display, the specific user interface element is adjusted according to the detected input. This applies to touchscreen displays (e.g., those capable of direct interaction with user interface elements on a touchscreen display) that enable direct interaction with user interface elements on the touchscreen display. Figure 1A The touch-sensitive display system 112 or Figure 4A In some embodiments of the touchscreen 112, a touch detected on the touchscreen acts as a "focus selector," such that when input (e.g., a press input by touch) is detected at the location of a particular user interface element (e.g., a button, window, slider, or other user interface element) on the touchscreen display, that particular user interface element is adjusted according to the detected input. In some embodiments, focus moves from one area of the user interface to another without corresponding movement of the cursor or movement of a touch on the touchscreen display (e.g., moving focus from one button to another using tab keys or arrow keys); in these embodiments, the focus selector moves according to the movement of focus between different areas of the user interface. Regardless of the specific form the focus selector takes, the focus selector is typically a user-controlled user interface element (or a touch on the touchscreen display) that conveys the user's expected interaction with the user interface (e.g., by indicating to the device the elements of the user interface that the user expects to interact with). For example, when a press input is detected on a touch-sensitive surface (e.g., a touchpad or touchscreen), the position of the focus selector (e.g., a cursor, touch, or selection box) above the corresponding button will indicate to the user that they expect to activate the corresponding button (rather than other user interface elements shown on the device's display).
[0156] As used in the specification and claims, the term "characteristic strength" of a contact refers to a characteristic of the contact based on one or more strengths of the contact. In some embodiments, the characteristic strength is based on multiple strength samples. The characteristic strength may optionally be based on a predefined number of strength samples or a set of strength samples collected over a predetermined time period (e.g., 0.05 seconds, 0.1 seconds, 0.2 seconds, 0.5 seconds, 1 second, 2 seconds, 5 seconds, 10 seconds) relative to a predefined event (e.g., after contact is detected, before contact is detected to be lifted, before or after contact begins to move, before contact ends, before or after contact strength is detected to increase, and / or before or after contact strength is detected to decrease). The characteristic strength of the contact may optionally be based on one or more of the following: the maximum value of the contact strength, the mean value of the contact strength, the average value of the contact strength, the value at the top 10% of the contact strength, the half maximum value of the contact strength, or the 90% maximum value of the contact strength, etc. In some embodiments, the duration of the contact is used when determining the characteristic strength (e.g., when the characteristic strength is the average value of the contact strength over time). In some implementations, the characteristic intensity is compared to a set of one or more intensity thresholds to determine whether a user has performed an action. For example, the set of one or more intensity thresholds may optionally include a first intensity threshold and a second intensity threshold. In this example, contact with a characteristic intensity not exceeding the first threshold results in a first action, contact with a characteristic intensity exceeding the first intensity threshold but not exceeding the second intensity threshold results in a second action, and contact with a characteristic intensity exceeding the second threshold results in a third action. In some implementations, a comparison between the characteristic intensity and one or more thresholds is used to determine whether one or more actions should be performed (e.g., whether to perform the corresponding action or abandon performing the corresponding action) rather than to determine whether to perform the first action or the second action.
[0157] Figure 5C An example is shown using multiple intensity sensors 524A to 524D to detect multiple contacts 552A to 552E on a touch-sensitive display screen 504. Figure 5C It also includes an intensity map, which shows the current intensity measurement of intensity sensors 524A to 524D relative to intensity units. In this example, the intensity measurements of intensity sensors 524A and 524D are both 9 intensity units, and the intensity measurements of intensity sensors 524B and 524C are both 7 intensity units. In some embodiments, the cumulative intensity is the sum of the intensity measurements of the multiple intensity sensors 524A to 524D, which is 32 intensity units in this example. In some embodiments, each contact is assigned a corresponding intensity, i.e., a portion of the cumulative intensity. Figure 5DAn example is illustrated of assigning cumulative intensity to contacts 552A through 552E based on their distance from the center of force 554. In this example, each of contacts 552A, 552B, and 552E is assigned a contact intensity of 8 intensity units of the cumulative intensity, and each of contacts 552C and 552D is assigned a contact intensity of 4 intensity units of the cumulative intensity. More generally, in some specific implementations, each contact j is assigned a corresponding intensity Ij according to a predefined mathematical function Ij = A·(Dj / ΣDi), which is a portion of the cumulative intensity A, where Dj is the distance of the corresponding contact j from the center of force, and ΣDi is the sum of the distances of all corresponding contacts (e.g., i=1 to the last) from the center of force. Reference can be performed using electronic devices similar to or equivalent to devices 100, 300, or 500. Figures 5C to 5D The described operation. In some embodiments, the characteristic intensity of the contact is based on one or more intensities of the contact. In some embodiments, an intensity sensor is used to determine the intensity of a single characteristic (e.g., the single characteristic intensity of a single contact). It should be noted that the intensity map is not part of the displayed user interface, but is included within... Figures 5C to 5D This is intended to assist readers.
[0158] In some implementations, a portion of the gesture is identified for determining the characteristic intensity. For example, a touch-sensitive surface may optionally receive a series of swipe contacts that transition from a starting position to an ending position, where the contact intensity increases. In this example, the characteristic intensity of the contact at the ending position may optionally be based only on a portion of the series of swipe contacts, rather than the entire swipe contact (e.g., only the portion of the swipe contact at the ending position). In some implementations, a smoothing algorithm may optionally be applied to the intensity of the swipe contact before determining the characteristic intensity of the contact. For example, the smoothing algorithm may optionally include one or more of the following: unweighted moving average smoothing algorithm, triangular smoothing algorithm, median filter smoothing algorithm, and / or exponential smoothing algorithm. In some cases, these smoothing algorithms eliminate narrow spikes or dips in the intensity of the swipe contact to achieve the purpose of determining the characteristic intensity.
[0159] Optionally, the contact intensity on a touch-sensitive surface can be characterized relative to one or more intensity thresholds, such as a contact detection intensity threshold, a light press intensity threshold, a deep press intensity threshold, and / or one or more other intensity thresholds. In some embodiments, the light press intensity threshold corresponds to an intensity at which the device will perform an operation typically associated with clicking a button on a physical mouse or touchpad. In some embodiments, the deep press intensity threshold corresponds to an intensity at which the device will perform an operation different from the operation typically associated with clicking a button on a physical mouse or touchpad. In some embodiments, when a contact with an intensity lower than the light press intensity threshold (e.g., and higher than the nominal contact detection intensity threshold, where contacts lower than the nominal contact detection intensity threshold are no longer detected) is detected, the device will move the focus selector based on the movement of the contact on the touch-sensitive surface without performing the operation associated with the light press intensity threshold or the deep press intensity threshold. Generally, unless otherwise stated, these intensity thresholds are consistent across different groups of user interface figures.
[0160] An increase in contact intensity from below a light press intensity threshold to an intensity between the light press intensity threshold and the deep press intensity threshold is sometimes referred to as a "light press" input. An increase in contact intensity from below a deep press intensity threshold to an intensity above the deep press intensity threshold is sometimes referred to as a "deep press" input. An increase in contact intensity from below a contact detection intensity threshold to an intensity between the contact detection intensity threshold and the light press intensity threshold is sometimes referred to as detecting a contact on the touch surface. A decrease in contact intensity from above a contact detection intensity threshold to an intensity below the contact detection intensity threshold is sometimes referred to as detecting a contact being lifted off the touch surface. In some embodiments, the contact detection intensity threshold is zero. In some embodiments, the contact detection intensity threshold is greater than zero.
[0161] In some embodiments described herein, one or more operations are performed in response to detecting a gesture including a corresponding press input or in response to detecting a corresponding press input performed using a corresponding contact (or multiple contacts), wherein the corresponding press input is detected at least in part based on detecting that the intensity of the contact (or multiple contacts) increases to above a press input intensity threshold. In some embodiments, the corresponding operation is performed in response to detecting that the intensity of the corresponding contact increases to above a press input intensity threshold (e.g., a "downward stroke" of the corresponding press input). In some embodiments, the press input includes the intensity of the corresponding contact increasing to above a press input intensity threshold and the intensity of the contact subsequently decreasing to below the press input intensity threshold, and the corresponding operation is performed in response to detecting that the intensity of the corresponding contact subsequently decreases to below the press input threshold (e.g., an "upward stroke" of the corresponding press input).
[0162] Figures 5E to 5HAn example of gesture detection is given, where the gesture includes the intensity of contact 562 ranging from less than... Figure 5E The light press intensity threshold (e.g., "IT") L The intensity of ) increases to higher than Figure 5H The deep press intensity threshold (e.g., "IT") D The intensity of the press input corresponds to the strength of the press. On the user interface 570, which includes application icons 572A to 572D displayed in the predefined area 574, when a cursor 576 is displayed above the application icon 572B corresponding to application 2, a gesture performed using contact 562 is detected on the touch-sensitive surface 560. In some embodiments, the gesture is detected on the touch-sensitive display 504. The intensity sensor detects the intensity of the contact on the touch-sensitive surface 560. The device determines the intensity of the contact 562 within a deep press intensity threshold (e.g., "IT"). D The intensity reaches its peak at 562. Contact 562 is maintained on the touch-sensitive surface 560. In response to a detected gesture, and based on the intensity increasing to a deep press intensity threshold during the gesture (e.g., "IT"), the intensity is increased to a peak value. D The above contact 562 displays the scaled representation 578A to 578C (e.g., thumbnails) of the document recently opened for application 2, such as... Figures 5F to 5H As shown. In some embodiments, the intensity is the characteristic intensity of the contact compared to one or more intensity thresholds. It should be noted that the intensity map for contact 562 is not part of the displayed user interface, but is included in... Figures 5E to 5H This is intended to assist readers.
[0163] In some implementations, the display of icons 578A through 578C includes animation. For example, icon 578A might initially appear near application icon 572B, such as... Figure 5F As shown, as the animation progresses, icon 578A moves upwards, and icon 578B appears near application icon 572B, as shown. Figure 5G As shown in the diagram. Then, representation 578A moves upward, 578B moves upward toward representation 578A, and representation 578C is displayed near application icon 572B, as shown. Figure 5H As shown in the diagram. This indicates that 578A to 578C form an array above icon 572B. In some implementations, the animation progresses according to the intensity of contact 562, such as... Figures 5F to 5G As shown, where 578A to 578C appear and increase with the intensity of contact 562 to a deeper pressing strength threshold (e.g., "IT") D "" and move upwards. In some implementations, the intensity upon which the animation progresses is based is the characteristic intensity of the contact. Reference can be performed using electronic equipment similar to or equivalent to devices 100, 300, or 500. Figures 5E to 5H The described operation.
[0164] In some implementations, the device employs intensity hysteresis to avoid unintended inputs sometimes referred to as "jitter," wherein the device defines or selects a hysteresis intensity threshold that has a predefined relationship with a press input intensity threshold (e.g., the hysteresis intensity threshold is X intensity units lower than the press input intensity threshold, or the hysteresis intensity threshold is 75%, 90%, or some reasonable percentage of the press input intensity threshold). Therefore, in some implementations, a press input includes an increase in the intensity of the corresponding contact above the press input intensity threshold and a subsequent decrease in the intensity of that contact below the hysteresis intensity threshold corresponding to the press input intensity threshold, and an operation is performed in response to detecting that the intensity of the corresponding contact subsequently decreases below the hysteresis intensity threshold (e.g., the "upstroke" of the corresponding press input). Similarly, in some implementations, a press input is detected only when the device detects that the intensity of the contact increases from an intensity equal to or below a hysteresis intensity threshold to an intensity equal to or above a press input intensity threshold and optionally the intensity of the contact subsequently decreases to an intensity equal to or below the hysteresis intensity, and corresponding operations are performed in response to the detection of a press input (e.g., depending on the environment, the intensity of the contact increases or decreases).
[0165] For ease of explanation, optionally, the description of an operation triggered in response to a press input associated with a press input strength threshold or in response to a gesture including a press input may be provided in response to detecting any of the following conditions: the contact strength increases to above the press input strength threshold, the contact strength increases from below a hysteresis strength threshold to above the press input strength threshold, the contact strength decreases to below the press input strength threshold, and / or the contact strength decreases to below the hysteresis strength threshold corresponding to the press input strength threshold. Additionally, in the example where the operation is described as being performed in response to detecting a decrease in contact strength below the press input strength threshold, the operation may optionally be performed in response to detecting a decrease in contact strength below a hysteresis strength threshold corresponding to and less than the press input strength threshold.
[0166] As used herein, "installed application" refers to a software application that has been downloaded to an electronic device (e.g., device 100, 300, and / or 500) and is ready to be launched on the device (e.g., become open). In some implementations, the downloaded application becomes an installed application using an installer that extracts program portions from the downloaded software package and integrates the extracted portions with the computer system's operating system.
[0167] As used herein, the terms "open application" or "running application" refer to a software application that maintains state information (e.g., as part of device / global internal state 157 and / or application internal state 192). An open or running application can optionally be any of the following types of applications: • Active app, which is currently displayed on the screen of the device that is using the app; • Background applications (or background processes) that are not currently displayed but whose one or more processes are being handled by one or more processors; and • Suspended or hibernating applications that are not currently running but have state information stored in memory (either volatile or non-volatile) that can be used to resume the application's execution.
[0168] As used herein, the term "closed application" refers to a software application that does not retain state information (e.g., the state information of a closed application is not stored in the device's memory). Therefore, closing an application includes: stopping and / or removing the application's process and removing the application's state information from the device's memory. Generally, opening a second application while the first application is running does not close the first application. When the second application is displayed and the first application stops displaying, the first application becomes a background application.
[0169] Now let’s turn our attention to the implementation of the user interface (“UI”) on electronic devices (such as device 100, device 300 or device 500) and the associated processes.
[0170] In some implementations, the handwritten content manipulation process described below can be deployed as one or more generative models, wherein content is automatically generated by one or more computers in response to a request to generate content. The repositioned handwritten content may optionally be generated on-device (e.g., at least partially generated by the computer system that received the request to generate content) and / or off-device (e.g., at least partially generated by one or more nearby computers available via a local network or one or more computers available via the Internet). The repositioned handwritten content may optionally include visual content (e.g., images, graphics, and / or video), audio content, and / or text content. The repositioned handwritten content may optionally include deterministically generated content generated by one or more computer systems and / or non-deterministically generated content automatically generated by one or more computer systems.
[0171] In some implementations, repositioned handwritten content generated using a nondeterministic process is referred to as generative content (e.g., generative images, generative graphics, generative videos, generative audio, and / or generative text). Generative content is typically generated by an automated process based on prompts provided to that automated process. In some implementations, the automated process is a machine learning (ML) process. ML processes typically use one or more ML models to generate outputs based on inputs. ML processes may optionally include one or more preprocessing steps (e.g., adjusting user-provided prompts, creating system-generated prompts, and / or selecting ML models) to adjust the input before it is used by the ML model to generate the output. In some implementations, generative content can be generated using a nondeterministic process that uses one or more automated steps to generate content, the one or more automated steps including specific rules and steps for processing prompts that include one or more nondeterministic steps to introduce novel generative elements into the generated content. ML processes may optionally include one or more post-processing steps that adjust the output of the ML model (e.g., passing the ML model output to different ML models, scaling up, scaling down, cropping, formatting, and / or adding or removing metadata) before the output of the ML model is used for other purposes (such as providing it to different software processes for further processing or presenting it to a user, for example, visually or audibly). ML processes that generate generative content are sometimes referred to as generative ML processes.
[0172] Tips used to generate generative content may include one or more of the following: one or more words (e.g., natural language tips in written or spoken language), one or more images, one or more pictures, and / or one or more videos. ML processes may include neural networks, linear regression, decision trees, support vector machines (SVMs), Naive Bayes, and k-nearest neighbors. Neural networks may include transformer-based deep neural networks, such as large language models (LLMs) trained using supervised, unsupervised, reinforcement, and / or other learning techniques. Generative pre-trained transformer models are LLMs that can efficiently generate new generative content based on tips. Some ML processes use tips that include text to generate diverse generative text, generative audio content, and / or generative visual content. Some ML processes use tips that include visual content and / or audio content to generate generative text (e.g., transcriptions of audio and / or descriptions of visual content). Some multimodal ML processes use tips that include multiple types of content (e.g., text, images, audio, video, and / or other sensor data) to generate generative content. Tips sometimes also include values for one or more parameters that indicate the importance of the various parts of the tip. Some tips include a structured set of instructions that the ML process can understand, which includes wording, specified style, relevant context (e.g., starting content and / or one or more examples) and / or the role of the ML process.
[0173] Generative content is typically based on a cue, but it is not deterministically selected from pre-generated content; rather, it is generated using the cue as a starting point. In some implementations, pre-existing content (e.g., audio, text, and / or visual content) is used as part of the cue for creating the generative content (e.g., pre-existing content is used as a starting point for creating the generative content). For example, the cue may request that a piece of text be summarized or rewritten in a different tone, and the output will be the generative text summarized or written in a different tone. Similarly, the cue may request that visual content be modified to include or exclude content specified by the cue (e.g., removing identified features from the visual content, adding features described in the cue to the visual content, changing the visual style of the visual content, and / or creating additional visual elements based on the visual content beyond its spatial or temporal boundaries). In some implementations, a random or pseudo-random seed is used as part of the cue for creating the generative content (e.g., random or pseudo-random seed content is used as a starting point for creating the generative content). For example, when generating images from a diffusion model, random noise patterns are iteratively denoised based on the cue to generate images based on the cue. Although this article has described specific types of ML procedures, it should be understood that a variety of different ML procedures can be used to generate generative content based on prompts.
[0174] Figures 6A to 6DDExemplary ways in which electronic devices, according to some embodiments, facilitate the manipulation of handwritten content are illustrated. The embodiments in these figures are used to illustrate the processes described below, including references to... Figure 7 The process described.
[0175] Figures 6A to 6DD The operation of an electronic device 500 for facilitating the manipulation of handwritten content is illustrated according to some implementation schemes. Figure 6A An electronic device 500 is illustrated (e.g., via a display device, via a display generating component, or via a touchscreen) displaying a user interface 600. In some embodiments, the user interface 600 is displayed via a display generating component 504. In some embodiments, the display generating component 504 is a hardware component (e.g., including electronic components) capable of receiving display data and displaying the user interface. In some embodiments, examples of the display generating component 504 include touchscreen displays (such as the display generating component 504), monitors, televisions, projectors, integrated, discrete, or external display devices, or any other suitable display device communicating with the electronic device 500.
[0176] In some implementations, user interface 600 is a user interface for a free-form handwriting application (e.g., for taking handwritten notes, drawing shapes, sketching and / or drawing, composing handwritten text and / or generating handwritten lists). In some implementations, the handwriting application is an application installed on electronic device 500.
[0177] exist Figure 6A In this embodiment, the user interface 600 includes a content input area 612. In some embodiments, the content input area 612 is configured to receive handwriting input (e.g., drawing and / or handwriting input via a stylus device) and display a representation of the handwriting input (e.g., if drawing and / or handwriting input is provided) and / or display font-based text (e.g., if font-based text input is provided).
[0178] In some embodiments, the user interface 600 also includes a text formatting option 614a, which, when selected, causes the electronic device 500 to display options for changing the formatting of font-based text presented in the content entry area 612. In some embodiments, the user interface 600 also includes a checklist option 614b, which, when selected, causes the electronic device 500 to toggle (e.g., apply or remove) checklist formatting of font-based text presented in the content entry area 612. In some embodiments, the user interface 600 also includes a table option 614c, which, when selected, causes the electronic device 500 to insert a table into the content entry area 612. In some embodiments, the user interface 600 also includes an image option 614d, which, when selected, causes the electronic device 500 to display options for inserting an image (e.g., an image captured by the camera of the electronic device 500 and / or selected from the image library of the electronic device 500) into the content entry area 612. In some embodiments, the user interface 600 also includes a sharing option 614e, which, when selected, causes the electronic device 500 to display options for sharing content in the content input area 612 with another electronic device. In some embodiments, the user interface 600 also includes a handwritten content formatting option 614f, which, when selected, causes the electronic device 500 to display options for changing the format of handwritten content inserted in the content input area 612. In some embodiments, the user interface 600 also includes a new document option 614g, which, when selected, causes the electronic device 500 to create a new document using the application of the user interface 600.
[0179] from Figures 6A to 6B When a corresponding handwriting input tool (e.g., a pen input tool) is active, the electronic device 500 detects contact between the stylus 602 and the display generation component 504 (e.g., a touchscreen) provided by the stylus 602 (e.g., controlled by the user of the electronic device 500). In some embodiments, in response to detecting contact with the stylus 602, a representation of the handwritten input (e.g., performed by the stylus 602) is displayed at the contact location. Therefore, the user can begin drawing / writing directly within the user interface 600.
[0180] exist Figure 6B In this embodiment, electronic device 500 displays handwritten content 605 on user interface 600, representing handwritten input. In some implementations, the representation of the handwritten input is displayed simultaneously with the receipt of the input. For example... Figure 6BAs shown, the handwritten content 605 corresponds to handwritten text provided by the user using the stylus 602 (e.g., including the words "The Story of Alice"). The handwritten content 605 includes a sequence of characters (e.g., including the characters of "The Story of Alice").
[0181] exist Figure 6C In this process, electronic device 500 detects input directed at handwritten content 605, which corresponds to a request to delete a corresponding portion of a character sequence. For example, electronic device 500 detects handwritten marks 607 (e.g., continuous or sequential lines / scratches from stylus 602) on the surface of display generating component 504. Handwritten marks 607 point to a corresponding portion of handwritten content 605. Specifically, handwritten marks 607 point to the text "Alice was" in the second paragraph of handwritten content 605. Electronic device 500 displays a representation of handwritten marks 607 in user interface 600 simultaneously with handwritten content 605 (e.g., overlaid on its corresponding portion). Therefore, handwritten marks 607 correspond to a request to delete the portion of handwritten content 605 applied by stylus 602.
[0182] exist Figure 6D In response to the detection of input corresponding to a request to delete a corresponding portion of handwritten content 605 (also referred to herein as a "character sequence"), electronic device 500 deletes the corresponding portion of handwritten content 605 (e.g., "Alice was") in user interface 600. Specifically, electronic device 500 stops displaying the corresponding portion of handwritten content 605 and stops displaying handwritten marks 607 in user interface 600. Furthermore, electronic device 500 creates and / or displays a blank space 609 in user interface 600 at the location where the corresponding portion of handwritten content 605 was deleted. The blank space 609 is the size of the deleted portion of handwritten content 605 in user interface 600 (e.g., the deleted text "Alice was"). After the corresponding portion of handwritten content 605 is deleted in user interface 600, the undeleted portion of handwritten content 605 remains unchanged within user interface 600.
[0183] Response to detection and deletion Figure 6C In addition to deleting the corresponding portion of the handwritten content 605 (e.g., "Alice was"), the electronic device 500 also displays a cursor 610 in the user interface 600, as shown in the input corresponding to the request for the handwritten content 605. Figure 6DAs shown. Electronic device 500 displays cursor 610 at a position corresponding to blank space 609 in user interface 600. In some embodiments, electronic device 500 displays cursor 610 before and adjacent to the first character (e.g., “beginning…”) of the first portion of character sequence 620 (e.g., such that cursor 610 and the first character “b” are not separated by any character and / or space). The first portion of character sequence 620 corresponds to the remainder of the middle paragraph after the corresponding portion of handwritten content 605 is deleted in user interface 600. Cursor 610 is shaped as a double arrow separated by separators. The double arrows are oriented along the axis (e.g., a horizontal axis) of the first representation of handwritten content 605. Specifically, the double arrows of cursor 610 point to the left and right, such that the line connecting the tips of the double arrows will be horizontal. Cursor 610 is used to move the corresponding portion of character sequence 620 according to the movement input pointing to the cursor, as will be further described below. Figure 6D In this case, the movement input will be horizontal.
[0184] exist Figure 6E In this process, electronic device 500 detects input (e.g., using stylus 602) corresponding to a request to move leftward to cursor 610 in user interface 600. The input is directed to cursor 610. Specifically, electronic device 500 detects contact of stylus 602 on the surface of electronic device 500 (e.g., touchscreen 504) at the position of cursor 610, and then, while maintaining contact, a leftward dragging gesture of stylus 602 on the surface of electronic device 500.
[0185] In response to the detection of and in Figure 6E In the user interface 600, the electronic device 500, based on the input corresponding to the request to move the cursor 610 to the left, repositions the first part of the character sequence 620 (e.g., the part of the character sequence starting with "beginning" from the right of the cursor 610), such as... Figure 6F As shown. For example, Figure 6E The input shown includes moving the stylus 602 to the left, thus corresponding to... Figure 6E Compared to the positioning shown, the first part of character sequence 620 is in Figure 6F Reposition to the left and / or upward. Additionally, in Figure 6FIn this embodiment, electronic device 500 maintains the display of cursor 610 oriented along an axis (e.g., to the left) corresponding to the direction of input, which is a horizontal axis. In some embodiments, based on determining that there is blank space adjacent to the first portion of character sequence 620 in the direction of input (e.g., to the left), electronic device 500 moves the cursor to the left and simultaneously (e.g., according to the input) moves the first portion of character sequence 620 to the left of cursor 610. Specifically, electronic device 500 moves cursor 610 to the left into blank space 609 located to the left of cursor 610, and moves a portion of the first portion of character sequence 620 (“beginning”) into a portion of blank space 609 located to the left of cursor 610.
[0186] Moving the first portion of a character sequence using cursor 610 includes “rearranging” the first portion of character sequence 620 in user interface 600 based on input corresponding to a request to move cursor 610. As used herein, rearranging the first portion of character sequence 620 refers to moving / shifting one or more characters of handwritten content 605 in user interface 600, optionally adjacent to (e.g., after or before) blank space, such as blank space 609 created by deleting a corresponding portion of handwritten content 605 in user interface 600. For example, as discussed herein, electronic device 500 moves the text “beginning to get … todo” (e.g., the first portion of the character sequence) adjacent to cursor 610 (e.g., after) in the first portion of character sequence 620 to the left, such that “beginning” occupies a portion of blank space 609.
[0187] When the electronic device 500 rearranges the handwritten content 605 in the user interface 600, the electronic device 500 updates the position of specific characters (e.g., and / or words) within the line of the handwritten content 605. For example, in Figure 6E In the text, before the rearrangement of the handwritten content 605, the text "sitting by" is located in the third line of the second paragraph of the first part of the character sequence 620 in the lines of the user interface 600 (e.g., starting from the top line in the user interface 600). After the rearrangement of the handwritten content 605, as... Figure 6E As shown, the text “sitting by” is located in the second line above the third line of the line displaying the first part of the character sequence 620 in the user interface 600. Additional details related to the rearrangement of handwritten content (e.g., movement in response to interaction with the cursor 610) are provided below with reference to method 700.
[0188] The electronic device 500 may optionally not move characters other than the first part of the character sequence 620 when moving the first part of the character sequence (such as the first and third paragraphs of handwritten content 605) in the user interface 600.
[0189] exist Figure 6G In this process, electronic device 500 detects input corresponding to a request to move upwards to cursor 610 in user interface 600. The input is directed to cursor 610. Specifically, electronic device 500 detects contact of stylus 602 on the surface of electronic device 500 (e.g., touchscreen 504) at or near the location of cursor 610, and then, while maintaining contact, an upward dragging gesture of stylus 602 on the surface of electronic device 500.
[0190] In response to the detection of and in Figure 6G In the user interface 600 shown, the electronic device 500, upon receiving an input corresponding to a request to move the cursor 610 upwards, rearranges the first portion of the character sequence 620 based on the input, as described below, and updates the display of the cursor 610 to show the cursor 610 oriented along an axis (e.g., upwards) corresponding to the direction of the input, which is a vertical axis, as... Figure 6G As shown. Specifically, the double arrows of cursor 610 point upwards and downwards, such that the line connecting the tips of the double arrows will be vertical. Based on the determination that there is a blank space 611 adjacent to cursor 610 in the input direction (e.g., above the first part of character sequence 620, such as...),... Figure 6G As best shown), the electronic device 500 moves the cursor 610 upwards to the blank space 611 located above the cursor 610, as shown. Figure 6H As shown. Electronic device 500 moves cursor 610 according to the magnitude of the input corresponding to the request to move cursor 610 in user interface 600, as further described below with reference to method 700. In addition to moving cursor 610, electronic device 500 also moves the first portion of character sequence 620 upwards simultaneously with cursor 610 (e.g., according to input). Specifically, the first line of the first portion of character sequence 620 (e.g., “beginning to get”) is now shifted into blank space 611 above the first line of character sequence 620, and the last line of the first portion of character sequence 620 (“do”) is shifted up one line, leaving blank space 613 at the previous position of the last line.
[0191] exist Figure 6I In China, electronic devices number 500, such as... Figure 6G The handwritten content is displayed as shown in Figure 605. For example, electronic device 500 displays... Figure 6I The handwritten content 605 in the code is similar to the electronic device 500 not detected. Figure 6GThe input shown is the same. Additionally, in Figure 6I In the process, the electronic device 500 does not detect contact between the stylus 602 and the surface of the display generation component 504, and does not display the cursor 610.
[0192] exist Figure 6J In this process, electronic device 500 detects input corresponding to a request to display a bounding box in user interface 600. The input is directed to a first portion of character sequence 620. Specifically, the input includes a single tap of stylus 602 on the surface of electronic device (e.g., touchscreen 504) pointing to the first portion of character sequence 620, such as contact detected by electronic device 500 at the location of the first portion of character sequence 620.
[0193] In response to the detection of and in Figure 6J The user interface 600 shows the input corresponding to the request for the bounding box, and the electronic device 500 displays the bounding box 630 in the user interface 600, as shown. Figure 6K As shown. In the user interface 600, the electronic device 500 displays a bounding box 630 around (e.g., visually around) the first portion of a character sequence 620 (and optionally not only around) the first portion of the character sequence 620. Figure 6J The word "tired" is pointed to by the input in the image. Bounding box 630 limits the movement of cursor 610 (e.g., in a first direction or a second direction) and the movement of the first portion of character sequence 620 as it moves with cursor 610 (e.g., in a first direction or a second direction). In some embodiments, electronics 500 determines the position, size, and shape of bounding box 630 within user interface 600 based on user input. In some embodiments, electronics 500 automatically determines which portion of the character sequence should be included in bounding box 630 for rearrangement based on further user input (e.g., in the absence of explicit user input setting the boundaries of bounding box 630). For example, in... Figure 6K In this embodiment, electronic device 500, in response to a request to delete a character, sets the boundary of bounding box 630 around the second paragraph to the first portion of the character sequence 620 selected for rearrangement. In some implementations, electronic device 500 automatically adjusts the boundary of bounding box 630 based on the selection of different portions of the character sequence (e.g., in the absence of user input explicitly setting the boundary of bounding box 630), as described herein.
[0194] The bounding box 630 includes a set of resizing handles 631a to 631c, which can be selected to initiate adjustments to one or more metrics of the boundaries of the bounding box 630, including the size of the bounding box 630. For example, as Figure 6KAs shown, the electronic device 500 displays a first size adjustment handle 631a (e.g., at a first edge / side of the bounding box 630), a second size adjustment handle 631b (e.g., at a second opposite edge / side of the bounding box 630), and a third size adjustment handle 631c (e.g., at a corner of the bounding box 630) in the user interface 600. In some embodiments, the first size adjustment handle 631a and / or the second size adjustment handle 631b are selectable and / or movable to initiate a change in the width of the bounding box 630, and thus change the width of the boundary of the first portion of the character sequence 620 (e.g., this affects the number of characters in the first portion of the character sequence 620 that the electronic device 500 can display in the corresponding line within the first portion of the character sequence 620). In some implementations, the third size adjustment handle 631c is selectable and / or movable to initiate a change in the length and / or width of the bounding box 630 (e.g., depending on the direction of movement of the third size adjustment handle 631c), and thus change the length and / or width of the boundary of the first portion of the character sequence 620 during rearrangement.
[0195] exist Figure 6L In this process, the electronic device 500 detects input corresponding to a request to adjust the size of the bounding box 630 in the user interface 600. The input is directed to the resizing handle 631c. Specifically, the electronic device 500 detects a tap or contact of the stylus 602 on the surface of the electronic device 500 (e.g., the touchscreen 504) at the position of the resizing handle 631c, and then drags the stylus 602 downward while maintaining contact between the stylus 602 and the surface of the display generating component 504.
[0196] In response to detection of such Figure 6L The input corresponding to the request to adjust the size of the bounding box 630 in the user interface 600 is shown. During the rearrangement, the electronic device 500 increases the size of the bounding box of the first part of the character sequence 620 and updates the display of the bounding box 630 according to the input, such as... Figure 6M As shown. Specifically, the electronic device 500 increases the size of the boundary of the bounding box 630 according to the magnitude and direction of the input corresponding to the request to adjust the size of the bounding box 630. Therefore, the electronic device 500 moves the side of the bounding box 630 located below the first part of the character sequence 620 beyond the blank space 613 located below the first part of the character sequence 620, thereby including the blank space 631 within the boundary of the bounding box 630.
[0197] exist Figure 6NIn this context, when bounding box 630 is displayed in user interface 600, electronic device 500 detects input corresponding to a request to display cursor 610 in user interface 600. The input is directed to the first part of character sequence 620. Specifically, electronic device 500 detects a tap or contact of stylus 602 on the surface of electronic device 500 (e.g., touchscreen 504). Figure 6O As shown, a tap or contact of the stylus 602 is maintained for a duration 627 exceeding a duration threshold 628 and pointing to the first part of the character sequence. Figure 6N In the middle, the tap or contact of the stylus 602 has not yet maintained the duration threshold 628, therefore the electronic device 500 has not yet... Figure 6N The cursor is displayed as 610.
[0198] exist Figure 6O In response to the detection of a tap or contact by a stylus with a duration threshold 628, the electronic device 500 displays the cursor 610 in the user interface 600 at the location of the input corresponding to the request to display the cursor 610, which is to the left of the word "beginning".
[0199] exist Figure 6P In this process, electronic device 500 detects input corresponding to a request to move cursor 610 to the right in user interface 600. The input is directed to cursor 610. Specifically, electronic device 500 detects contact of stylus 602 on the surface of electronic device 500 (e.g., touchscreen 504) at the position of cursor 610, and then drags stylus 602 to the right on the surface of electronic device 500 while maintaining contact.
[0200] In response to the detection of and in Figure 6P The user interface 600 shown corresponds to the input requesting to move the cursor 610 to the right. Based on this input, the electronic device 500 rearranges the first portion of the character sequence 620 and maintains the display of the cursor 610 oriented along an axis (e.g., to the right) corresponding to the direction of the input. This axis is a horizontal axis. Figure 6QAs shown. Based on the determination that there is blank space adjacent to the first part of the character sequence 620 on the right (e.g., to the right of the last character of the first part of the character sequence or after the last character of the first part of the character sequence), the electronic device 500 moves the cursor 610 to the right and simultaneously (e.g., according to input) moves the first part of the character sequence 620 to the right with the cursor 610. Moving the first part of the character sequence 620 with the cursor 610 includes "rearranging" the first part of the character sequence in the user interface 600 based on input corresponding to the request to move the cursor 610. The cursor 610 thus "pushes" the first part of the character sequence 620 to the right such that the beginning of the first part of the character sequence 620 (e.g., "beginning") has been shifted to the second line in the bounding box 630, thereby creating blank space 621 where the first line of the character sequence 620 was previously located. In doing so, the electronic device 500 moves the end of the first part of the character sequence 620 to the right (e.g., "togo") to fill the last line of the character sequence. Figure 6P The blank space 613 shown also occupies a portion of the blank space 613 adjacent to the lower side of the boundary 630'.
[0201] Figure 6R An example is shown in response to the detection of input corresponding to a request to display cursor 610 (such as...). Figures 6N to 6O The input shown is used by the electronic device 500 to display the cursor 610 in the user interface 600. Figure 6R In this process, electronic device 500 displays cursor 610 before the first portion of character sequence 620 (e.g., "beginning"). Furthermore, a boundary 630' is shown in dashed lines to indicate the presence of a boundary 630' indicating movement of the first portion of character sequence 620 via rearrangement, but optionally this boundary is not displayed because electronic device 500 has not yet detected user input corresponding to a request to display a bounding box indicating boundary 630'. As previously described, boundary 630' is used to limit movement of cursor 610 and the first portion of character sequence 620. Electronic device 500 detects input corresponding to a request to move leftward in user interface 600 to cursor 610 beyond boundary 630'. For example, the input magnitude (e.g., distance) corresponds to movement of cursor 610 beyond boundary 630', as described below with reference to method 700. Input is directed to cursor 610. Specifically, the electronic device 500 detects the contact of the stylus 602 on the surface of the electronic device 500 (e.g., touch screen 504), and then, while maintaining the contact, the stylus 602 drags a gesture to the left on the surface of the electronic device 500.
[0202] In response to the detection of and in Figure 6RIn the user interface 600 shown, corresponding to the input request to move the cursor 610 to the left beyond the boundary 630', the electronic device 500 moves the cursor 610 to the left beyond the boundary 630', and simultaneously moves the first part of the character sequence 620 to the left beyond the boundary 630', as shown. Figure 6S As shown. The input corresponding to the request to move the cursor 610 beyond boundary 630 has a first value indicating that it exceeds boundary 630', as shown. Figure 6S As shown. Electronic device 500 does not move cursor 610 or the first portion of character sequence 620 beyond boundary 630'. Furthermore, based on determining that the position of cursor 610 corresponds to boundary 630' (e.g., cursor 610 is adjacent to boundary 630'), electronic device 500 displays cursor 610 with a visual appearance corresponding to its position on boundary 630'. Specifically, cursor 610 includes an indication that boundary 630' prevents cursor 610 from moving further to the left (e.g., in response to additional input corresponding to a request to move to the left). Therefore, electronic device 500 stops displaying a left-pointing arrow on cursor 610, leaving cursor 610 with a single arrow pointing to the right and away from boundary 630'. This appearance of cursor 610 indicates that cursor 610 can move to the right because movement to the right is not restricted by boundary 630', but movement to the left is prevented by boundary 630'.
[0203] exist Figure 6T In the process, electronic device 500 detects that the magnitude of the input corresponding to the request to move cursor 610 beyond boundary 630' has increased to a second magnitude 629 exceeding the boundary. In response to detecting the increase in the input magnitude, electronic device 500 displays cursor 610 in a compressed appearance, such as... Figure 6T As shown. Specifically, the electronic device 500 reduces the size of the cursor 610 along a horizontal axis (e.g., an axis corresponding to the direction of the boundary 603' that blocks the cursor 610). In some embodiments, the electronic device 500 displays the compressed cursor 610 as having, for example, Figure 6S The first size shown and such Figure 6T The animation between the second-sized cursor 610 is shown. The electronic device 500 displays compression of the cursor 610 simultaneously with the detection of input corresponding to a request to move the cursor 610 beyond the boundary 630' (e.g., when the stylus 602 pushes the cursor 610 toward the boundary 630'). When the electronic device 500 detects the termination of the input that moved the cursor 610 beyond the boundary 630', the electronic device 500 stops displaying the cursor 610 as compressed against the boundary 630'.
[0204] exist Figure 6UIn this process, electronic device 500 detects input corresponding to a request to move the cursor 610 upwards beyond boundary 630' in user interface 600. The input is directed to cursor 610. Specifically, electronic device 500 detects contact of stylus 602 on the surface of electronic device 500 (e.g., touchscreen 504), and then an upward dragging gesture of stylus 602 on the surface of electronic device 500 while maintaining contact.
[0205] In response to the detection of and in Figure 6U In the user interface 600 shown, corresponding to the input requesting to move the cursor 610 upwards beyond boundary 630', the electronic device 500 displays the cursor 610 in a vertical orientation (e.g., upwards and / or along the vertical axis) corresponding to the direction of the input, but the electronic device 500 does not move the cursor 610 or the first portion of the character sequence 620 upwards beyond boundary 630', as... Figure 6V As shown. Furthermore, based on the determination that the position of cursor 610 corresponds to boundary 630' (e.g., cursor 610 is adjacent to boundary 630'), electronic device 500 displays cursor 610 in a visual appearance corresponding to its position on boundary 630'. Specifically, cursor 610 includes an indication that the current position (e.g., boundary 630') prevents cursor 610 from moving upwards (e.g., in response to additional input corresponding to a request to move upwards). Therefore, electronic device 500 stops displaying the upward arrow of cursor 610, leaving cursor 610 with a single arrow pointing downwards and away from boundary 630'. This presentation of cursor 610 indicates that the cursor can move downwards along the vertical axis because it is not restricted by boundary 630', but upward movement is restricted by boundary 630'.
[0206] exist Figure 6V In the process, electronic device 500 detects that the magnitude of the input corresponding to the request to move cursor 610 beyond boundary 630' has increased to a second magnitude 629' beyond boundary 630'. In response to detecting the increase in the input magnitude, electronic device 500 displays cursor 610 in a compressed appearance, such as... Figure 6V As shown. Specifically, the electronic device 500 reduces the size of the cursor 610 along a vertical axis (e.g., an axis corresponding to the direction of the boundary 630' that blocks the cursor 610). In some embodiments, the electronic device 500 displays the compressed cursor 610 as having, for example, Figure 6U The first size shown and such Figure 6VThe animation between the second-sized cursor 610 is shown. The electronic device 500 displays compression of the cursor 610 simultaneously with the detection of input corresponding to a request to move the cursor 610 beyond the boundary 630' (e.g., when the stylus 602 pushes the cursor 610 toward the boundary 630'). When the electronic device 500 detects the termination of the input that moved the cursor beyond the boundary 630', the electronic device 500 stops displaying the cursor 610 as compressed against the boundary 630'.
[0207] exist Figure 6W In this process, electronic device 500 detects input corresponding to a request to move cursor 610 in user interface 600. The input is directed to cursor 610. Specifically, electronic device 500 detects contact of stylus 602 on the surface of electronic device 500 (e.g., touchscreen 504) at the location of cursor 610, followed by a dragging gesture of stylus 602 on the surface of electronic device 500 while maintaining contact. The input corresponding to the request to move cursor 610 has a magnitude 636. In some embodiments, magnitude 636 corresponds to the distance of the input, the speed of the input, and / or the acceleration of the input (e.g., as detected via touchscreen 504). The magnitude 636 of the input is depicted as a vector having a horizontal component 637 and a vertical component 638. Based on the determination that the horizontal component 637 of magnitude 636 is greater than the vertical component 638 of magnitude 636 (e.g., the input is more horizontal than vertical), the electronic device displays cursor 610 oriented along a horizontal axis, such as... Figure 6W As depicted above, cursor 610 is also operated to allow movement along a horizontal axis rather than a vertical axis. As further described above, displaying cursor 610 oriented along a horizontal axis includes displaying cursor 610 with arrows pointing to the left and right.
[0208] exist Figure 6X In this process, electronic device 500 detects input corresponding to a request to move to cursor 610 in user interface 600. The input is directed to cursor 610. Specifically, electronic device 500 detects contact of stylus 602 on the surface of electronic device 500 (e.g., touchscreen 504) at the position of cursor 610, and then a dragging gesture of stylus 602 on the surface of electronic device 500 while maintaining contact. Figure 6X In the input, the value of the vertical component 638 is greater than the value of the horizontal component 637. Based on the determination that the vertical component 637 of the input 636 is greater than the horizontal component 637 of the input 636 (e.g., the input is more vertical than horizontal), the electronic device 500 displays the cursor 610 oriented along the vertical axis, such as... Figure 6XAs depicted above, cursor 610 is also operated to allow movement along a vertical axis rather than a horizontal axis. As further described above, displaying cursor 610 oriented along a vertical axis includes displaying cursor 610 with upward-pointing arrows and downward-pointing arrows.
[0209] exist Figure 6Y In the process, when cursor 610 is displayed oriented along the vertical axis, electronic device 500 detects input corresponding to a request to move cursor 610 in user interface 600. The input is directed to cursor 610. Specifically, electronic device 500 detects contact of stylus 602 on the surface of electronic device 500 (e.g., touchscreen 504) at the position of cursor 610, followed by a dragging gesture of stylus 602 on the surface of electronic device 500 while maintaining contact. The input corresponding to the request to move cursor 610 has a magnitude 632. The magnitude of the horizontal component 633 of the input is greater than the magnitude of the vertical component 634, which makes the input correspond to a request to move the cursor along the horizontal axis (e.g., to the right). However, the magnitude of the horizontal component 633 of the input is less than the threshold magnitude 635 required to switch the orientation of cursor 610 from vertical (e.g., along the vertical axis) to horizontal (e.g., along the horizontal axis). Therefore, the electronic device 500 moves the cursor 610 along the horizontal axis (e.g., to the right) according to input (e.g., slowly and / or slightly in the case of a given low amount), while maintaining the display of the cursor 610 oriented along the vertical axis, and does not correspondingly move the first portion of the character sequence 620 to the right; thus providing visual feedback for the rightward movement of the stylus, while indicating that the cursor 610 is currently configured for vertical movement. In some embodiments, in response to detection Figure 6Y The input movement shown is such that the electronic device 500 moves the first part of the character sequence 620 simultaneously (e.g., the cursor 610 pushes the first part of the character sequence to the right).
[0210] exist Figure 6Z In the process, electronic device 500 detects an increase in the value 632 of the input corresponding to the request to move cursor 610. Specifically, with Figure 6Y Unlike the previous example, the magnitude of the horizontal component 633 exceeds the horizontal component threshold magnitude 635. Therefore, the electronic device 500 switches the orientation of cursor 610 from vertical to horizontal while moving cursor 610 according to input (e.g., to the right along the horizontal axis), and also operates cursor 610 to allow movement along the horizontal axis instead of the vertical axis. In some embodiments, the electronic device 500 moves a first portion of character sequence 620 while moving a first portion of the character sequence (e.g., cursor 610 pushes the first portion of the character sequence to the right).
[0211] exist Figure 6AAIn this process, electronic device 500 detects input corresponding to a request to select the second part of character sequence 622. The input points to the word "tired". Specifically, the input includes a double-click of stylus 602 on the surface of the electronic device (e.g., touchscreen 504) pointing to the word "tired".
[0212] exist Figure 6BB In response to detecting input corresponding to a request to select the second portion of character sequence 622, electronic device 500 selects the second portion of character sequence 622. Specifically, electronic device 500 displays the second portion of character sequence 622 with an indication of selection (e.g., highlighting). Furthermore, electronic device 500 displays selection handles 642a and 642b around the second portion of character sequence 622, which are operable to select a third portion of the character sequence (e.g., more or fewer characters than the second portion of character sequence 622). Figure 6BB Also shown are the boundary 630' indicating the rearrangement limits and the first portion of the character sequence 620, as described above. As indicated by the dashed line, the boundary 630' is not shown. As previously stated, the electronic device 500 determines the position, size, and shape of the boundary 630' within the user interface 600 based on user input. In some embodiments, the electronic device 500 automatically determines, based on user input (e.g., in the absence of explicit user input setting of the boundary 630'), which portion of the character sequence should be included within the boundary 630' for rearrangement. For example, in... Figure 6BB In this embodiment, electronic device 500 responds to a double-click / selection of "tired" as part of the second paragraph to set the boundary 630' around the second paragraph as the first part of the selected rearranged character sequence 620. In some embodiments, electronic device 500 automatically adjusts the boundary 630' based on the selection of different parts of the character sequence (e.g., without explicit user input setting the boundary 630').
[0213] exist Figure 6CC In this process, electronic device 500 detects input corresponding to the selection of the third part of character sequence 624. The input is directed to selection handle 642b. For example, electronic device 500 detects... Figure 6BB and Figure 6CC Input between, including in electronic devices 500 Figure 6BBThe location shown indicates a contact on the selection handle 642b, followed by the stylus 602 moving to the position of the selection handle 642b. Specifically, the electronic device 500 detects contact of the stylus 602 on the surface of the electronic device 500 (e.g., touchscreen 504) and pointing towards the selection handle 642b, followed by a dragging gesture of the stylus 602 on the surface of the electronic device 500 while maintaining contact. In response to detecting input pointing towards the selection handle 642b, the electronic device 500 selects the third part of the character sequence 624, such as... Figure 6CC As shown. The third part of the selected character sequence 624 includes a third part of the character sequence 624 displaying a visual indication (e.g., highlighting) of the selected character sequence 624, and selection handles 642a and 642b displayed on either side of the third part of the character sequence 624.
[0214] exist Figure 6DD In the process, electronic device 500 detects the lifting of stylus 602 while selecting the third portion of character sequence 624. In response to detecting the lifting of stylus 602, electronic device 500 automatically adjusts boundary 630' to match the third portion of character sequence 624, such as... Figure 6DD As shown. For example, because the third part of character sequence 624 includes more than one word, boundary 630' is fitted to the third part of character sequence 624, rather than to the paragraph that includes the third part of character sequence 624, as in Figure 6BB The case where the second part of character sequence 622 is selected is the boundary 630'. Then, from... Figure 6DD The character sequence included within the updated boundary 630' can be rearranged according to the limits of the updated boundary 603' (as described herein).
[0215] Figure 7 A flowchart illustrating a method for facilitating the manipulation of handwritten content using an electronic device according to some embodiments of the present disclosure is provided. Method 700 may optionally be performed at a first electronic device and / or an electronic device (such as device 100, device 300, or device 500), as referenced above. Figures 1A to 1B , Figure 2 To Figure 3, Figures 4A to 4B and Figures 5A to 5H As described. Some operations in method 700 may be optionally combined, and / or the order of some operations may be optionally changed.
[0216] The devices, methods, and / or computer-readable storage media described below enhance device operability and (e.g., by assisting users in providing appropriate input and reducing user errors when operating / interacting with the device) make the user-device interface more efficient, which in turn reduces power consumption and extends the device's battery life by enabling users to use the device more quickly and efficiently. Providing improved feedback (such as displaying the cursor in an appearance that indicates that interaction with the cursor will move the handwritten content, displaying the boundaries of the moving handwritten content, and displaying the cursor in an appearance corresponding to the boundary when the cursor's position corresponds to the boundary's position) enhances device operability by reducing accidental and erroneous input, thereby reducing the device's energy consumption. Providing additional control options (such as a cursor that allows the handwritten content to move in a first and second direction (such as vertical and horizontal) based on the input to the pointing cursor meeting one or more criteria (such as criteria related to the speed or acceleration of the input to the pointing cursor) without cluttering the UI with additional displays) enhances device operability by reducing unnecessary input and / or steps for navigating through different user interfaces or sets of controls, thereby reducing the device's energy consumption.
[0217] In some embodiments, method 700 is performed at an electronic device communicating with one or more display generating components and one or more input devices. For example, a mobile device (e.g., a tablet, smartphone, media player, or wearable device), a computer (e.g., a desktop computer, laptop computer), or a wearable device (e.g., a watch, head-mounted device) may optionally communicate with one or more of a mouse (e.g., external), a touchpad (optionally integrated or external), a remote control (e.g., external), another mobile device (e.g., separate from the electronic device), a handheld device (e.g., external), and / or a controller (e.g., external), or a set-top box communicating with one or more input devices (e.g., a remote control). In some embodiments, the display generating component is a display integrated with the electronic device (optionally a touchscreen display), an external display such as a monitor, projector, television, or a hardware component (optionally integrated or external) for projecting a user interface or making the user interface visible to one or more users. In some embodiments, one or more sensors may optionally be included. Figure 1A One or more sensors are included. In some implementations, one or more input devices include a stylus that communicates with an electronic device.
[0218] In some implementations, when a first representation comprising a sequence of handwritten content is displayed in the user interface (e.g., in response to the detection of handwritten input on a surface (e.g., a touch-sensitive surface of one or more input devices), the electronic device detects (702) a first input pointing to a first location in the user interface via one or more input devices, such as pointing using a stylus 602. Figure 6C The user interface 600 includes input of handwritten content 605. For example, the user interface corresponds to a text authoring user interface associated with a memo app, messaging app, log or calendar app, text editor app and / or text annotation app, or any other area that can accept handwritten input. In some embodiments, the user interface includes a handwriting input area configured to receive handwritten input (e.g., provided directly to the user interface area (e.g., a touch-sensitive surface includes the user interface) or filled into the user interface by the electronic device after receiving handwritten input via a separate touch-sensitive surface such as a touchpad).
[0219] In some embodiments, a first representation of the handwritten content is displayed within the handwriting input area discussed above (e.g., such that a first position is within the handwriting input area). In some embodiments, the first representation of the handwritten content corresponds to a representation of the handwritten input, which includes representations of handwritten words. In some embodiments, the character sequence of the first representation of the handwritten content is displayed within the user interface in a first number of character lines (such as 1, 2, 3, 4, 5, 8, 10, or 12 lines), and optionally corresponds to the number of lines in the handwritten input where handwritten words, numbers, and / or special characters are written. In some embodiments, the character sequence corresponds to a paragraph displayed in a first number of character lines and / or a paragraph with a first width (e.g., the first number of character lines extend a first distance (e.g., horizontally) on the user interface), the first width optionally corresponding to the width of the bounding box of the lines containing / restricting the character sequence. In some embodiments, the character sequence corresponds to a list of words displayed in a first number of word lines (e.g., a bulleted list, a numbered list, or a list of letters). In some embodiments, as described above, a first representation of the handwritten content is displayed in the user interface in response to handwritten input received via an external device / tool (e.g., a stylus) for providing handwritten input or via the fingers of a user's hand on the electronic device. In some embodiments, handwritten input includes continuous and / or subsequent strokes and / or touches (e.g., provided by a user's stylus or fingers) detected on a touch-sensitive surface, which are recognized by the electronic device as handwritten input (e.g., handwritten words, numbers, special characters, and / or shapes), as described below.
[0220] In some embodiments, the electronic device receives first input via an external device / tool for providing handwriting input (e.g., a stylus) or via the finger of a user's hand. In some embodiments, the first input includes an air gesture performed by the user's hand and detected by the electronic device via one or more input devices. In some embodiments, as described in more detail below, the first input includes corresponding handwriting input, such as continuous and / or subsequent strokes and / or touches detected on a touch-sensitive surface. For example, the corresponding handwriting input includes handwritten lines, scratches, and / or similar patterns / shapes. In some embodiments, the corresponding handwriting input points to a corresponding portion of a character sequence representing a first representation of handwritten content in the user interface. For example, the corresponding handwriting input includes handwritten lines and / or scratches above and / or across a corresponding portion of a character sequence representing a first representation of handwritten content in the user interface.
[0221] In some implementations, as discussed in more detail below, the first input includes a tap or touch input (e.g., a stylus or finger) pointing to a corresponding portion of a character sequence representing a first representation of the handwritten content. For example, the electronic device detects a tap input pointing to a corresponding portion of a character sequence representing a first representation of the handwritten content (e.g., a single tap or contact on a touch-sensitive surface, followed by no further taps or contacts for a threshold duration such as 0.2 seconds, 0.3 seconds, 0.4 seconds, 0.5 seconds, 0.8 seconds, and / or 0.9 seconds). For example, the first input includes a selection input pointing to a corresponding portion of a character sequence. In some implementations, the corresponding portion in the user interface is blank space in the user interface (e.g., blank space between words in the user interface or blank space between characters (e.g., letters, numbers, and / or special characters) within a single word or term in the user interface).
[0222] In some implementations, in response to the detection of a first input (704), the electronic device displays (706) a cursor at a first location in the user interface via a display generation component, wherein the cursor is used to move a first portion of a character sequence in a first direction within the user interface, and the cursor has a first appearance, such as Figure 6DA cursor 610 is used for horizontal movement of handwritten content 605. In some embodiments, in response to detecting a first input, the electronic device deletes a corresponding portion of the characters of a first representation of the handwritten content at a first location in the user interface. For example, the electronic device removes a corresponding portion of the character sequence of the first representation of the handwritten content from the first location in the user interface (e.g., stops displaying the corresponding portion). In some embodiments, after deleting the corresponding portion of the character sequence at the first location in the user interface, a space or gap (e.g., white or blank space) is created within the representation of the handwritten content at the first location in the user interface. For example, if the corresponding portion of the character sequence corresponds to a single word / term, deleting the corresponding portion of the character sequence creates and / or causes the electronic device to display a blank space with a size (e.g., length and / or height) corresponding to the size of the single word / term in the first representation of the handwritten content. As another example, if the corresponding portion of the character sequence corresponds to a single character (e.g., a letter, number, or special character) within a word / term, deleting the corresponding portion of the character sequence creates and / or causes the electronic device to display a blank space with a size corresponding to the size of the single letter, number, or special character. In some embodiments, after a corresponding portion of the character sequence of the first representation of the handwritten content is deleted at a first location in the user interface, the undeleted portion of the character sequence of the first representation of the handwritten content remains unchanged within the user interface. For example, the electronic device temporarily (e.g., as described below) abandons the display of the undeleted portion of the character sequence of the first representation of the handwritten content in the user interface (e.g., such that the undeleted portion of the character sequence remains displayed at its previous and / or current position in the user interface relative to the first location). In some embodiments, in response to the detection of a first input, the electronic device displays a cursor without deleting content (e.g., without deleting the corresponding portion of the characters of the first representation of the handwritten content).
[0223] In some implementations, the cursor is a selection cursor (e.g., a dot, arrow, caret, etc.) rather than a text cursor. In some implementations, the cursor is displayed simultaneously with a first representation of the handwritten content in the user interface (e.g., at a first position). In some implementations, the first portion of a character sequence corresponds to a single letter, number, or special character, or a set of letters, numbers, or special characters, of the character sequence of the first representation of the handwritten content. In some implementations, the first portion of a character sequence corresponds to a single word of the character sequence of the first representation of the handwritten content. In some implementations, the first portion of a character sequence corresponds to multiple words (optionally, a sentence or multiple sentences) of the character sequence of the first representation of the handwritten content. In some implementations, the first portion of a character sequence corresponds to a paragraph (or multiple paragraphs) of the character sequence of the first representation of the handwritten content. In some implementations, the cursor is displayed before and adjacent to the first character of the first portion of the character sequence (e.g., such that the cursor and the first character are not separated by any character and / or space).
[0224] In some implementations, moving a first portion of a character sequence in a first direction includes updating a first representation of the handwritten content to include characters (e.g., letters, numbers, or special characters), words, sentences, or groups of sentences at at least a corresponding location in the user interface. Specifically, moving a first portion of a character sequence in a first direction includes shifting and / or moving the first portion of the character sequence such that the first portion of the character sequence at least partially occupies the blank space adjacent to the first portion of the character sequence. For example, if a corresponding portion of the character sequence corresponds to a first word in a first representation of the handwritten content, and the first portion of the character sequence corresponds to a second word following the first word, the electronic device shifts / moves the second word in the user interface in a first direction (e.g., to the left and / or up) such that the second word at least partially occupies (e.g., replaces) the blank space created at the first location when the first word was deleted and / or the blank space not created by deleting the first word (e.g., such that the first portion of the character sequence (including the second portion after / before the first portion) is optionally located in the user interface at a different / updated location compared to before the first portion was moved). Additionally or alternatively, if a corresponding portion of a character sequence corresponds to a first line in a first representation of handwritten content and a first portion of the character sequence corresponds to a second line following the first line, the electronic device shifts / moves the second line in the user interface in a first direction (e.g., upwards) such that the second line at least partially occupies (e.g., replaces) the blank space created at the first position when the first line was deleted and / or not created by deleting the first line (e.g., such that the first portion of the character sequence (including the second portion after / before the first portion) is optionally located in the user interface at a different / updated position compared to before the first portion was moved). In some embodiments, moving the first portion of the character sequence in the first direction includes abandoning moving the first portion of the character sequence in a second direction different from the first direction. In some embodiments, the blank space adjacent to the first portion precedes the first input (e.g., the blank space is not created in response to detecting the first input). In some embodiments, the blank space is created after the electronic device deletes the corresponding portion of the character sequence in response to receiving the first input, as previously described.
[0225] In some embodiments, moving a first portion of a character sequence in a first direction includes moving the first portion according to movement input from a pointing cursor. Specifically, moving the first portion of a character sequence in the first direction includes moving the first portion according to the magnitude and / or direction (e.g., the first direction) of the movement input. In some embodiments, the electronic device moves the first portion of the character sequence based on determining that the movement input meets one or more criteria, including criteria that are met when there is blank space adjacent to the first portion of the character sequence in the movement direction (e.g., the first direction). In some embodiments, the one or more criteria include criteria that are met when the direction of the movement input is within a threshold angle (e.g., 10 degrees, 15 degrees, 20 degrees, 25 degrees, 30 degrees, 35 degrees, 40 degrees, 45 degrees) of the first direction. In some embodiments, if the movement input does not meet one or more criteria, the electronic system abandons moving the first portion of the character sequence in the first direction. In some embodiments, if the movement input does not meet one or more criteria, the electronic system moves the first portion of the character sequence in a second direction different from the first direction.
[0226] In some embodiments, the first direction is along a first axis, such as a horizontal axis associated with the user interface (e.g., left or right). For example, moving a first portion of a character sequence horizontally includes moving the first portion at least partially to blank space located on the character line where the cursor is located. In some embodiments, the first direction is along a second axis, such as a vertical axis associated with the user interface (e.g., orthogonal to the horizontal axis) (e.g., up or down). For example, moving a first portion of a character sequence vertically includes moving the first portion at least partially to blank space located on a character line different from the line where the cursor is located (e.g., above or below). In some embodiments, the horizontal axis is based on the orientation of a first representation of the handwritten content (e.g., the orientation associated with the character sequence in the user interface, such as the general angle / direction of displaying the character sequence in the user interface). In some embodiments, the horizontal axis is based on the user interface (e.g., aligned with the horizontal axis of the user interface).
[0227] In some embodiments, the first appearance corresponds to a first direction. For example, the first appearance may optionally include an indication of the first direction, such as an arrow and / or a caret oriented toward and / or along an axis of the first direction. Additionally or alternatively, the first appearance includes an indication of an axis corresponding to the first direction, such as a double arrow pointing in the opposite direction along the axis (e.g., left and right along a horizontal axis and / or up and down along a vertical axis). In some embodiments, the first appearance corresponds to the position of a cursor in a user interface. For example, the first appearance may optionally include an indication of obstacles (e.g., characters and / or boundaries) at the cursor's current position that prevent the cursor from moving in the corresponding direction (e.g., an arrow and / or a caret oriented away from the corresponding direction), such as in response to additional input moving the cursor in the corresponding direction. In some embodiments, when the electronic device displays a cursor with the first appearance, in response to detecting movement input pointing to the cursor, the electronic device moves a first portion of a character sequence along the first direction and does not move the first portion of the character sequence along a second direction.
[0228] In some implementations, when a cursor is displayed for moving a first portion of a character sequence in a first direction in the user interface, the cursor has a first appearance, and the electronic device detects (708) a second input pointing to the cursor via one or more input devices, such as in the display Figure 6F Simultaneous detection of cursor 610 as shown Figure 6G The movement of the stylus 602 in the device. In some embodiments, the electronic device detects a second input via an external device / tool for providing handwriting input (e.g., a stylus) or via a finger of the user's hand. In some embodiments, the second input includes a tap or touch input pointing to a cursor (e.g., a tap or touch input with a stylus or finger), optionally followed by a movement input (e.g., a dragging gesture) while the contact is maintained (e.g., before being lifted off). In some embodiments, the first input includes an air gesture (e.g., pointing to a cursor) performed by the user's hand and detected by the electronic device via one or more input devices. In some embodiments, the electronic device detects the air gesture while detecting the user's attention to the cursor (e.g., based on gaze).
[0229] In some implementations, in response to the detection of a second input, based on determining that the second input meets one or more criteria (710), the electronic device updates the cursor display from a first appearance (712) to a second appearance different from the first appearance via one or more display generation components, such as in response to the detection of a second input. Figure 6G The vertical movement of cursor 610 as shown will move cursor 610 from... Figure 6F The appearance has been updated to Figure 6GThe appearance within the character sequence. In some embodiments, the one or more criteria include a criterion that is satisfied when there is a blank space adjacent to the first portion of the character sequence in the direction of movement of the first portion of the character sequence (e.g., a second direction). In some embodiments, the one or more criteria include a criterion that is satisfied when the direction of the second input is within a threshold angle (e.g., 10 degrees, 15 degrees, 20 degrees, 25 degrees, 30 degrees, 35 degrees, 40 degrees, 45 degrees) of the second direction.
[0230] In some embodiments, the second appearance corresponds to a second direction. For example, the second appearance may optionally include indications of the second direction, such as arrows and / or caret oriented toward and / or along an axis of the second direction. Additionally or alternatively, the second appearance includes indications of an axis corresponding to the second axis, such as double arrows pointing in opposite directions along the axis (e.g., left and right along a horizontal axis and / or up and down along a vertical axis). In some embodiments, the second appearance corresponds to the cursor's position in the user interface. For example, the second appearance may optionally include indications regarding obstacles (e.g., characters and / or boundaries) at the cursor's current position that prevent the cursor from moving in the corresponding direction (e.g., arrows and / or caret oriented away from the corresponding direction), such as in response to additional input moving the cursor in the corresponding direction.
[0231] In some implementations, when displaying a cursor with a second appearance, the first portion of a character sequence is moved to a second position in the user interface, different from the first position in the user interface, in a second direction different from the first direction, based on the second input, such as in response to detection. Figure 6G The handwritten content 605 is moved by the movement of the stylus 602. Figure 6HThe position is shown. In some embodiments, moving the first portion of the character sequence in the second direction includes updating the first representation of the handwritten content to include characters (e.g., letters, numbers, or special characters), words, sentences, or groups of sentences at at least a corresponding position in the user interface. Specifically, moving the first portion of the character sequence in the second direction includes shifting and / or moving the first portion of the character sequence after (e.g., adjacent to) the blank space created after deleting the first portion of the character sequence in the user interface, such that the first portion of the character sequence at least partially occupies the blank space at the first position in the user interface. For example, if the corresponding portion of the character sequence corresponds to a first word in the first representation of the handwritten content, and the first portion of the character sequence corresponds to a second word after the first word, the electronic device shifts / moves the second word in the user interface in the second direction (e.g., to the left and / or up), such that the second word at least partially occupies (e.g., replaces) the blank space created at the first position when the first word was deleted and / or the blank space not created by deleting the first word (e.g., such that the first portion of the character sequence (including the second portion after / before the first portion) is optionally located in the user interface at a different / updated position compared to before the first portion was moved). Additionally or alternatively, if a corresponding portion of the character sequence corresponds to a first line in a first representation of handwritten content and a first portion of the character sequence corresponds to a second line following the first line, the electronic device shifts / moves the second line in the user interface in a second direction (e.g., upwards) such that the second line at least partially occupies (e.g., replaces) the blank space created at the first position when the first line was deleted and / or not created by deleting the first line (e.g., such that the first portion of the character sequence (including the second portion after / before the first portion) is optionally located in the user interface at a different / updated position compared to before the first portion was moved). In some embodiments, moving the first portion of the character sequence in the second direction includes abandoning the movement of the first portion of the character sequence in the first direction. In some embodiments, moving the first portion of the character sequence in the second direction includes moving the first portion according to a second input pointing to a cursor. Specifically, moving the first portion of the character sequence in the second direction includes moving the first portion according to the magnitude and / or direction (e.g., the second direction) of the second input.
[0232] In some embodiments, updating the first representation of handwritten content in the user interface in the manner described above (e.g., by moving a first portion of the character sequence in a first and / or second direction) updates the number of character lines (e.g., lines in a paragraph) displaying the character sequence. For example, the electronic device reduces the number of lines from the first number of lines described above to a second number of lines less than the first number (optionally due to the deletion of a corresponding portion of the character sequence and / or the shifting of the first portion of the character sequence in the user interface to occupy a corresponding position and / or blank space in the user interface). In some embodiments, when the electronic device updates the number of character lines (e.g., lines in a paragraph) displaying the character sequence, the electronic device maintains the width of the lines in the user interface (e.g., the width of the paragraph). For example, maintaining the width of the paragraph including the character sequence controls the way the number of lines is updated (e.g., how many lines are reduced as described above). Therefore, when the first portion of the character sequence is displayed at at least a corresponding position in the user interface, specific characters and / or words, including those in lines following the line containing the corresponding position in the user interface, may optionally be moved and / or re-displayed at different positions within the corresponding line of the first representation of the handwritten content, or moved and / or re-displayed in different lines within the first representation of the handwritten content (e.g., compared to before). Additionally, in some embodiments, when the first representation of the handwritten content is updated to include the first portion of the character sequence at at least a corresponding position in the user interface, portions of the character sequence preceding the corresponding portion in the first representation of the handwritten content (e.g., letters, numbers, and / or special characters spatially preceding the corresponding portion of the character sequence within the first representation of the handwritten content before the first portion is removed) are not updated in the user interface. For example, the electronic device abandons moving / shifting the portion of the character sequence preceding the first portion at the corresponding position in the user interface.
[0233] In some embodiments, the second direction is along a first axis, such as a horizontal axis (e.g., left or right), different from the first direction associated with the user interface (e.g., along a vertical axis (e.g., up or down)). In some embodiments, the second direction is along a second axis, such as a vertical axis, different from the first direction associated with the user interface (e.g., along a horizontal axis (e.g., up or down)). In some embodiments, the electronic system abandons moving a first portion of the character sequence in the second direction based on the determination that the second input does not meet one or more criteria. In some embodiments, the electronic system abandons moving a first portion of the character sequence in the first direction based on the determination that the second input does not meet one or more criteria. In some embodiments, when the electronic device displays a cursor with a second appearance, in response to detecting a moving input (e.g., the second input), the electronic device moves a first portion of the character sequence along the second direction and does not move a first portion of the character sequence along the first direction.
[0234] In some implementations, detecting the first input includes detecting a gesture corresponding to a request to display the cursor or a gesture corresponding to a request to delete a portion of the handwritten content, such as... Figure 6BThe input requested to delete a portion of the handwritten content 605 is shown. For example, the electronic device detects contact on a touch-sensitive surface (e.g., via a stylus and / or the user's finger). In some embodiments, the gesture corresponding to the request to display the cursor includes contact on the touch-sensitive device for a duration exceeding a threshold duration (e.g., 1 second, 2 seconds, 3 seconds, 4 seconds, 5 seconds) (e.g., without movement and / or lifting of the stylus or finger) and pointing to a corresponding portion of the character sequence of a first representation of the handwritten content. In some embodiments, the electronic device displays the cursor at the location in the user interface where the input corresponding to the request to display the cursor is detected. For example, in response to detecting input pointing to a first location, the electronic device displays the cursor at a second location based on the first location. As another example, in response to detecting input pointing to a third location different from the first location, the electronic device displays the cursor at a fourth location based on the third location. In some embodiments, the first input includes an air gesture performed by the user's hand and detected by the electronic device via one or more input devices (e.g., pointing to a corresponding portion of the handwritten content). In some embodiments, the electronic device detects the air gesture while detecting the user's attention to a corresponding portion of the handwritten content (e.g., based on gaze). In some embodiments, the first input corresponding to a request to delete a corresponding portion of a character sequence representing a first representation of handwritten content includes one or more handwritten marks provided on a surface by an input device communicating with an electronic device, pointing to the first portion of the character sequence. In some embodiments, detecting the input corresponding to the request to delete a corresponding portion of handwritten content includes detecting one or more strokes on the surface by the input device at a position corresponding to the corresponding portion of the character sequence. In some embodiments, the one or more handwritten marks provided by the electronic device are detected sequentially (e.g., without detecting the input device lifting off the surface between consecutive handwritten marks of the one or more handwritten marks). In some embodiments, the one or more handwritten marks provided by the electronic device are detected sequentially (e.g., wherein lifting off the input device from the surface between consecutive handwritten marks of the one or more handwritten marks). In some embodiments, in response to the detection of one or more handwritten marks provided by the input device, the electronic device displays a representation of one or more handwritten marks in a user interface while displaying the first representation of the handwritten content. For example, the electronic device displays one or more lines in the user interface covering, above, below, and / or near the corresponding portion of the character sequence. In some implementations, as discussed in more detail below, one or more handwritten marks include, overlap, and / or otherwise encompass corresponding portions of a character sequence in the user interface. In some implementations, in response to detecting a first input, the electronic device deletes a corresponding portion of a first representation of a character of the handwritten content at a first location on the user interface, as previously described.For example, the electronic device removes a corresponding portion of a character sequence representing a first representation of handwritten content from a first location in the user interface (e.g., stops displaying the corresponding portion). In some embodiments, after deleting the corresponding portion of the character sequence at the first location in the user interface, a space or gap (e.g., white or blank space) is created within the representation of the handwritten content at the first location in the user interface, as previously described. In some embodiments, the electronic device displays a cursor at a location corresponding to the location of the input that corresponds to the request to delete the corresponding portion of the character sequence (e.g., after the blank space created after deleting the corresponding portion of the character sequence).
[0235] In some implementations, moving a first portion of a character sequence in response to detecting a second input includes moving a cursor within a first boundary based on the second input, including moving the cursor based on the second input based on determining that the second input corresponds to movement of the cursor within the first boundary, such as based on... Figures 6E to 6F The input movement shown Figure 6F The handwritten content in 605. Despite Figure 6F Not shown in the diagram, but in some implementations, Figure 6F The content 605 shown is subject to Figure 6KThe boundary of the bounding box 630 shown. In some embodiments, the first boundary corresponds to the edge / boundary of the user interface, which may optionally correspond to the physical boundary / edge of the display generating component and / or the physical boundary / edge of the surface (e.g., a touch-sensitive surface, such as a touchscreen discussed above). In some embodiments, the first boundary is determined based on a predefined margin of the corresponding size of the user interface (e.g., 1cm, 2cm, 3cm, 4cm, 5cm, etc.), which may optionally be defined by the user before detecting the first handwriting input discussed above and / or by the electronic device before detecting the first handwriting input (e.g., according to default settings). In some embodiments, the first boundary corresponds to the boundary of multiple lines (e.g., each of the multiple lines has the same boundary). In some embodiments, the first boundary corresponds to the boundary of a first representation of handwritten content (e.g., the first representation of handwritten content in the user interface is confined to the left, right, top, and / or bottom edges). In some embodiments, the first boundary corresponds to the boundary of a first portion of a character sequence (e.g., the first portion of a character sequence in the user interface is confined to the left, right, top, and / or bottom edges). In some implementations, the first boundary forms a logical bounding box around a first representation of the handwritten content or a first portion of the character sequence (e.g., not displayed by the electronic device and / or invisible to the user). In some implementations, the electronic device determines the first boundary (e.g., the portion of the character sequence included within the boundary). In some implementations, the electronic device determines the position, size, and shape of the first boundary in the user interface based on user input. In some implementations, the electronic device automatically (e.g., in the absence of explicit user input setting the boundary) determines which portion of the character sequence should be included in the first boundary. In some implementations, the electronic device sets the first boundary around the paragraph displaying the cursor. In some implementations, the first boundary corresponds to the minimum bounding box around the paragraph displaying the cursor. In some implementations, the electronic device automatically defines the first boundary around a selected portion of the character sequence (e.g., in response to selection input). In some implementations, the first boundary corresponds to the minimum bounding box around the selected portion of the character sequence. In some implementations, the electronic device modifies the first boundary based on changes to the selected character portion (e.g., changing the size and / or shape of the first boundary). In some implementations, the electronic device responds to input corresponding to a request to move a portion of the character sequence without modifying the boundary of that portion of the character sequence. Therefore, in some embodiments, the electronic device does not modify the first boundary based on the second input (e.g., a request corresponding to the first portion of the moving character sequence). In some embodiments, the first boundary includes the margin between the first boundary and the first portion of the character sequence.
[0236] In some embodiments, moving the cursor according to the second input includes moving the cursor according to the magnitude of the second input. For example, the electronic device may optionally move the cursor within a first boundary a distance corresponding to the distance at which a pointing device (e.g., a stylus and / or finger) contacts the touch-sensitive input device. In some embodiments, moving the cursor according to the second input includes moving the cursor according to the direction of the second input. For example, the electronic device may optionally move the cursor within the first boundary in a direction corresponding to the direction in which a pointing device (e.g., a stylus and / or finger) contacts the touch-sensitive input device.
[0237] In some implementations, moving a first portion of a character sequence in response to detecting a second input includes moving the cursor within a first boundary based on the second input, and includes moving the cursor within the first boundary without moving it beyond the first boundary based on the second input, such as in... Figure 6T In this embodiment, electronic device 500 moves cursor 610 to a boundary 630' but does not exceed that boundary. In some embodiments, before the cursor reaches the first boundary (e.g., a threshold distance from the boundary, such as 0.1 mm, 0.2 mm, 0.3 mm, 0.5 mm, 0.8 mm, or 1 mm), the electronic device moves the cursor within the first boundary based on a second input (e.g., based on the magnitude and / or direction of the second input). In some embodiments, when the cursor reaches the first boundary, the electronic device stops moving the cursor based on the second input (e.g., based on the magnitude and / or direction of the second input). In some embodiments, the electronic device abandons moving the cursor while continuing to detect a second input beyond the first boundary. In some embodiments, as further described below, when the cursor reaches the first boundary, the visual appearance of the cursor changes.
[0238] In some implementations, when the cursor is displayed, the electronic device 500 detects a third input, such as... Figure 6J The illustrated input. In some embodiments, the third input includes a tap, touch input (e.g., touch input with a stylus or finger), or air gesture pointing to a first portion of a character sequence representing a first representation of handwritten content. For example, the electronic device detects a tap input pointing to a corresponding portion of a character sequence representing a first representation of handwritten content (e.g., a single tap or contact on a touch-sensitive surface, followed by no further taps or contacts for a threshold duration such as 0.2 seconds, 0.3 seconds, 0.4 seconds, 0.5 seconds, 0.8 seconds, and / or 0.9 seconds). In some embodiments, the third input includes an air gesture (e.g., pointing to a first portion of a cursor and / or character sequence) performed by a user's hand and detected by the electronic device via one or more input devices. In some embodiments, the electronic device detects the air gesture simultaneously with detecting the user's attention to the cursor and / or the first portion of the character sequence (e.g., based on gaze).
[0239] In some implementations, when the cursor is displayed, in response to the detection of a third input, such as Figure 6J The input shown, based on the determination that the third input meets one or more second criteria, the electronic device displays the first boundary (such as...) via one or more display generation components. Figure 6K The visual indication of the boundary (630) in the middle. In some embodiments, the one or more criteria include a criterion that is met when the third input points to the cursor and / or the first part of the character sequence. In some embodiments, the one or more second criteria include a criterion that is met when there is no other tap or contact with a threshold duration after the third input is a tap or contact.
[0240] In some embodiments, the visual indication of the first boundary is a bounding box that corresponds to the first boundary and surrounds (e.g., encircles) a first representation of the handwritten content and / or a first representation of the handwritten content. In some embodiments, displaying the visual indication of the first boundary (e.g., the bounding box) in the user interface includes displaying one or more graphical user interface elements in the user interface for changing one or more measures (such as position) associated with the first boundary. In some embodiments, the one or more graphical user interface elements may optionally include one or more resizing handles that can be selected to update one or more measures associated with the first boundary. For example, the one or more graphical user interface elements include a first resizing handle configured to be manipulated (e.g., selected and dragged / moved within the user interface) to change the width of the first boundary, and thus change the number and content of the character sequence contained in the corresponding line of the first portion of the character sequence. In some embodiments, the one or more graphical user interface elements include a second resizing handle configured to be manipulated to change the length of the first boundary, and thus change the size and / or number of multiple lines displaying the first portion of the character sequence in the user interface. In some embodiments, the one or more graphical user interface elements include a third resizing handle configured to be manipulated to change both the width and length of the boundary (e.g., by the same amount), and thus change the size of the first portion of the character sequence in the user interface. In some embodiments, the one or more resizing handles discussed above are displayed in the user interface as overlays on the bounding box (e.g., at the edges and / or corners of the bounding box in the user interface). In some embodiments, the position of the respective resizing handle on the bounding box visually indicates the corresponding measure that the resizing handle can be selected to change. For example, the first resizing handle discussed above is displayed on the left and / or right sides / edges of the bounding box. In some embodiments, the second resizing handle discussed above is displayed on the top and / or bottom sides / edges of the bounding box. In some embodiments, the third resizing handle discussed above is displayed at the corners of the bounding box.
[0241] In some implementations, when displaying a visual indication of the first boundary, a fourth input corresponding to a request to update the first boundary is detected, such as when displaying boundary 630. Figure 6MThe illustrated inputs. In some embodiments, the fourth input corresponds to a request to change the size of the first boundary. In some embodiments, the fourth input corresponds to a request to change the shape of the first boundary. In some embodiments, the fourth input is a motion input pointing to a visual indication of the first boundary. In some embodiments, the fourth input is a motion input pointing to one or more graphical user interface elements for changing one or more measurements associated with the first boundary, such as the previously described first size adjustment handle, second size adjustment handle, and / or third size adjustment handle. In some embodiments, the motion input includes contact between a stylus or finger and a touch-sensitive device (e.g., a touchscreen) and / or input received from an input device such as a mouse and / or trackball communicating with the electronic device and pointing to a visual indication of the first boundary. In some embodiments, the fourth input includes a dragging gesture (e.g., without lifting the stylus or finger) while maintaining contact on the touch-sensitive device. In some embodiments, the fourth input includes an air gesture (e.g., pointing to the first boundary) performed by the user's hand and detected by the electronic device via one or more input devices. In some embodiments, the electronic device detects the air gesture while detecting the user's attention to the first boundary (e.g., based on gaze). In some embodiments, the fourth input includes a request to move the cursor beyond the first boundary. In some embodiments, the fourth input includes a request to move the cursor in a specific direction included in the first or second direction. For example, in response to detecting an input requesting to move the cursor beyond the lower portion of the first boundary, the electronic device extends the first boundary downward and moves the handwritten content downward. In some embodiments, in response to detecting an input requesting to move the cursor beyond the first boundary (such as a request to move the first cursor upward, left, or right beyond the first boundary), the electronic device does not update the first boundary in other directions.
[0242] In some implementations, in response to the detection of a fourth input, and based on determining that the fourth input meets one or more third criteria, the electronic device updates the first boundary and the visual indication of the first boundary according to the fourth input, such as... Figure 6NThe updated boundary 630 is shown in the diagram. In some embodiments, updating the visual indication of the first boundary according to the fourth input includes changing the size and / or shape of the visual indication. In some embodiments, one or more third criteria include criteria that are satisfied when the fourth input corresponds to a request to change the size of the first boundary. In some embodiments, one or more third criteria include criteria that are satisfied when the fourth input corresponds to a request to change the shape of the first boundary. For example, the electronic device increases or decreases the size of the first boundary of a first representation of handwritten content based on the movement of a first graphical user interface element in the user interface. In some embodiments, the electronic device increases or decreases the size of the first boundary based on the direction of the fourth input. Specifically, movement of the first graphical user interface element in one direction increases the size of the boundary in the user interface. For example, the first direction of movement of the first graphical user interface element corresponds to movement of the first graphical user interface element in a direction away from the existing boundary of the first portion of the character sequence. In some embodiments, as described above, a third size adjustment handle (e.g., corresponding to the first graphical user interface element) is displayed in the user interface at a corner (such as the right or left corner) of the bounding box surrounding the character sequence. Therefore, movement of the first graphical user interface element may optionally increase the size of the bounding box surrounding the character sequence, which correspondingly increases the size of the first boundary. In some embodiments, movement of the first graphical user interface element in a first direction reduces the size of the boundary within the user interface. For example, the first direction of movement of the first graphical user interface element corresponds to movement of the first graphical user interface element toward an existing boundary of a portion of the character sequence. In some embodiments, the electronic device increases or decreases the size of the first boundary based on a magnitude (e.g., amount and / or distance) of a fourth input. In some embodiments, the amount by which the size of the first graphical user interface element moves within the user interface (e.g., distance) determines the amount by which the size of the first boundary increases (e.g., length and / or width). In some embodiments, the increase in the size of the boundary is proportional to and / or equal to the distance by which the first graphical user interface element moves within the user interface. In some embodiments, movement of the first graphical user interface element may optionally reduce the size of the bounding box surrounding the character sequence, which correspondingly reduces the size of the first boundary.
[0243] In some implementations, one or more third criteria include criteria that are satisfied when the fourth input request moves upward to the first boundary in a third direction and are not satisfied when the fourth input request moves the first boundary in a fourth direction other than the third direction, such as being able to move in response to a request to move the cursor 610 and handwritten content 620 downward beyond boundary 630 rather than in response to a request to move the cursor 610 and handwritten content 620 upward beyond boundary 630. Figure 6KThe handwritten content 620 and boundary 630 are shown. In some embodiments, the third direction is to the left along a horizontal axis associated with the user interface (e.g., as described above). In some embodiments, the third direction is downward along a vertical axis associated with the user interface (e.g., as described above). In some embodiments, the third direction corresponds to a first direction. In some embodiments, the third direction corresponds to a second direction. In some embodiments, the fourth direction is to the right along a horizontal axis associated with the user interface, as previously described. In some embodiments, the fourth direction is upward along a vertical axis associated with the user interface, as previously described. In some embodiments, the fourth direction corresponds to a first direction. In some embodiments, the fourth direction corresponds to a second direction. In some embodiments, requesting to move the first boundary upward in the third direction includes detecting motion input pointing to one or more graphical user interface elements for changing one or more metrics associated with the first boundary, and corresponds to a request to move one or more graphical user interface elements upward in the third direction. In some embodiments, requesting to move the first boundary in the fourth direction includes detecting motion input pointing to one or more graphical user interface elements for changing one or more metrics associated with the first boundary, and corresponds to a request to move one or more graphical user interface elements in the fourth direction.
[0244] In some implementations, in response to the detection of a fourth input, and based on the determination that the fourth input does not meet one or more third criteria, the first boundary is maintained (optionally displaying a visual indication of the first boundary) without updating the first boundary according to the fourth input, such as abandoning the movement in response to a request to move the cursor 610 and the handwritten content 620 upwards beyond the boundary 630. Figure 6KThe handwritten content 620 and the boundary 630 are portions of the interface. In some embodiments, when a fourth input requests movement of the first boundary in a fourth direction (e.g., to the right and / or up), the fourth input does not meet one or more third criteria. For example, when the requested movement in the fourth direction (e.g., to the right and / or up) moves outward from the first boundary (e.g., a visual indication of the first boundary and / or the bounding box), the fourth input does not meet one or more third criteria. Therefore, the electronic device may optionally not extend the first boundary to the right and / or up in response to detecting the fourth input. In some embodiments, when a fourth input requests movement of the first boundary in a third direction (e.g., to the left and / or down), the fourth input meets one or more third criteria. For example, when the requested movement in a third direction (e.g., to the right and / or up) moves outward from the first boundary (e.g., a visual indication of the first boundary and / or the bounding box), the fourth input meets one or more third criteria. For example, the electronic device may optionally increase the size of the first boundary of the first portion of the handwritten content (e.g., to the left and / or down) based on the movement of the first graphical user interface element in the user interface. In some implementations, the electronic device increases or decreases the size of the first boundary based on the direction of the fourth input. Specifically, movement of the first graphical user interface element in one direction (e.g., left and / or down) increases the size of the boundary within the user interface. For example, the first direction of movement of the first graphical user interface element corresponds to movement of the first graphical user interface element away from the existing boundary of the first portion of the character sequence.
[0245] In some implementations, displaying the cursor includes displaying a cursor having a corresponding appearance corresponding to the cursor's boundaries, such as displaying a cursor as determined by determining that the cursor's position corresponds to the cursor's boundaries (e.g., the first boundary described above). Figure 6TThe cursor 610 is shown. In some embodiments, the cursor boundary has one or more characteristics of a first boundary, as previously described. In some embodiments, the cursor position corresponds to the cursor boundary when the cursor is within a threshold distance (e.g., 0.1 mm, 0.2 mm, 0.3 mm, 0.5 mm, 0.8 mm, or 1 mm) of the cursor boundary. Specifically, the cursor boundary may optionally prevent the cursor from moving in the direction of the cursor boundary (e.g., in response to a movement input corresponding to a request to move the cursor in the direction of the cursor boundary, the electronic device displays the cursor at or within the boundary, but not beyond the boundary). In some embodiments, the corresponding appearance corresponding to the boundary is based on the position of the boundary and / or the corresponding direction of cursor movement. In some embodiments, the corresponding appearance includes an indication that the cursor boundary prevents the cursor from moving in the corresponding direction at the cursor position corresponding to the cursor boundary (e.g., in response to additional input corresponding to a request to move in the corresponding direction), such as arrows and / or caret pointing away from and / or relative to the cursor boundary. In some embodiments where the cursor includes a double arrow oriented along an axis (e.g., a horizontal or vertical axis) corresponding to the cursor's direction of movement, displaying a corresponding appearance corresponding to the boundary includes stopping the display of a first arrow in the double arrow that corresponds to the cursor's direction of movement (e.g., pointing to the cursor's boundary). In some embodiments, the first appearance includes a corresponding appearance corresponding to the cursor's boundary. In some embodiments, the second appearance includes a corresponding appearance corresponding to the cursor's boundary.
[0246] In some implementations, displaying the cursor includes displaying a cursor that does not have a corresponding appearance corresponding to a boundary, based on the determination that the cursor's position does not correspond to the cursor's boundary, such as... Figure 6R The appearance of cursor 610 in the document. In some embodiments, when the cursor is not within a threshold distance (e.g., 0.1 mm, 0.2 mm, 0.3 mm, 0.5 mm, 0.8 mm, or 1 mm) of the cursor boundary, the cursor position does not correspond to the cursor boundary. In some embodiments, displaying a cursor that does not have a corresponding appearance corresponding to the boundary includes displaying a cursor with a double arrow oriented along an axis (e.g., a horizontal or vertical axis) corresponding to the direction of cursor movement. In some embodiments, displaying a cursor that does not have a corresponding appearance corresponding to the boundary includes displaying a cursor with an indication of the cursor's ability to move toward the cursor boundary (e.g., an arrow and / or caret oriented toward the cursor boundary). In some embodiments, displaying a cursor that does not have a corresponding appearance includes displaying a cursor with a first appearance. In some embodiments, displaying a cursor that does not have a corresponding appearance includes displaying a cursor with a second appearance.
[0247] In some implementations, in response to detecting a third input corresponding to a request to move the cursor, when the cursor movement corresponds to a movement of the cursor position beyond a boundary corresponding to the cursor, the electronic device displays a first animation, such as making... Figure 6S The cursor shown is 610 and... Figure 6T The animation shown illustrates the transitions between cursors 610. In some embodiments, the electronic device receives a third input via an external device / tool for providing handwriting input (e.g., a stylus) or via the finger of a user's hand. In some embodiments, the third input includes a tap or touch input pointing at the cursor (e.g., a tap or touch input with a stylus or finger), optionally followed by a movement input (e.g., a dragging gesture) while maintaining contact (e.g., before lifting off). In some embodiments, cursor movement corresponds to movement when the cursor is within a threshold distance (e.g., 0.1 mm, 0.2 mm, 0.3 mm, 0.5 mm, 0.8 mm, or 1 mm) of the cursor's boundary, and when the cursor movement points towards the cursor's boundary, cursor movement corresponds to movement beyond the cursor's position corresponding to the cursor's boundary. In some embodiments, displaying a first animation when cursor movement corresponds to a cursor position corresponding to movement beyond the cursor's boundary includes displaying an animation of the cursor. In some embodiments, when the electronic device detects the third input, the electronic device displays (e.g., the cursor) a first animation. For example, the first animation includes an animation of compressing the cursor toward the cursor's boundary. In some implementations, when the electronic device detects the termination of a third input, such as when the electronic device detects the removal of a finger from an external device / tool and / or a user's hand, and / or when the electronic device detects that the contact of an external device / tool and / or a user's hand has lasted for a duration exceeding a duration threshold (e.g., 1 second, 2 seconds, 3 seconds, 4 seconds, 5 seconds), the electronic device displays a second animation. In some implementations, the second animation is the opposite of the first animation. For example, the second animation may optionally include an animation that extends the cursor away from the cursor's boundary (e.g., in a direction opposite to the cursor's boundary).
[0248] In some implementations, displaying an animation in response to detecting a third input includes displaying a first animation having a first value corresponding to the first value, such as displaying a first value corresponding to the first value, based on determining that the third input has a first value exceeding a boundary. Figure 6T The cursor 610 is shown being compressed to the first amount.
[0249] In some implementations, displaying an animation in response to detecting a third input includes displaying a first animation having a characteristic based on determining that the third input has a second value that exceeds a boundary and is different from the first value. This characteristic has a second value that corresponds to the second value and is different from the first value, such as displaying... Figure 6TThe cursor 610 is shown compressed to a second value different from the first value. In some embodiments, the value of the first input corresponds to the distance of contact (e.g., drag gesture) of the device / tool and / or the user's finger on the touch-sensitive device detected by the electronic device when the first input is detected. In some embodiments, the characteristic of the first animation is the amount of compression of the cursor size during the first animation (e.g., the amount by which the cursor size decreases during the first animation). For example, the characteristic of the first animation is the amount of compression of the cursor size (e.g., cursor width) along an axis (e.g., horizontal or vertical) corresponding to the cursor's boundary during the first animation. Therefore, in some embodiments, based on determining that the third input has a first value, the cursor size decreases by a first value corresponding to the first value during the first animation, and based on determining that the third input has a second value different from the first value, the cursor size decreases by a second value different from the first value during the animation. Thus, the electronic device compresses the cursor by a certain distance and / or amount of compression based on the value of the third input (e.g., the distance of contact (e.g., drag gesture) on the touch-sensitive device).
[0250] In some implementations, a portion of the boundary corresponds to the second part of the character sequence (e.g., a line of handwritten characters, in the line above the first part of the handwritten characters that initially display the cursor), such as Figure 6RThe top portion of boundary 630' corresponds to additional handwritten content above boundary 630'. In some embodiments, the second portion of the character sequence is displayed in the user interface above (or below) the first portion of the character sequence. In some embodiments, the second portion of the character sequence is adjacent to the first portion of the character sequence (e.g., not separated by another character sequence and / or whitespace). In some embodiments, in response to detecting input corresponding to a request to move the cursor in the upward direction and based on determining that the cursor position corresponds to the second portion of the character sequence (e.g., within a threshold distance of the second portion of the character sequence above the cursor), the electronic device displays the cursor with a corresponding appearance corresponding to the second portion of the character sequence. For example, the corresponding appearance may optionally include an indication that the second portion of the sequence of characters prevents the cursor from moving in the upward direction (e.g., in response to additional input corresponding to a request to move in the upward direction), such as an arrow and / or caret pointing away from the second portion of the character sequence (e.g., pointing downward). In some embodiments where the cursor includes a double arrow oriented along an axis (e.g., a vertical axis) corresponding to the cursor's direction of movement, displaying a corresponding appearance corresponding to a boundary (e.g., a second portion of the character sequence) includes stopping the display of a first arrow (e.g., an upward arrow) in the double arrow that corresponds to the cursor's direction of movement (e.g., pointing upwards towards the second portion of the character sequence). In some embodiments, in response to detecting input corresponding to a request to move the cursor in the upward direction, the electronic device displays a first animation when the cursor movement corresponds to the second portion of the character sequence (e.g., when the cursor is within a threshold distance of the second portion of the character sequence). In some embodiments, displaying the first animation includes displaying a compression of the cursor against the second portion of the character sequence.
[0251] In some implementations, in response to detecting a second input, and based on determining that the second input meets one or more second criteria (e.g., criteria for rearranging text in a first or second direction), while displaying the cursor (e.g., in a first or second appearance), the electronic device moves a first portion of the character sequence according to the second input, including displaying a spring animation of the movement of the first portion of the character sequence relative to the cursor, optionally as referenced above. Figure 6V As described. In some embodiments, the one or more criteria include a criterion that is satisfied when there is blank space adjacent to the first portion of the character sequence in the direction of movement (e.g., a second direction). For example, the criterion is satisfied when there is blank space to the left of a first position (e.g., the cursor position) in a first representation of handwritten content and the second input corresponds to a request to move the cursor to the left. Additionally or alternatively, in some embodiments, the criterion is satisfied when the line above the first portion of the character sequence is a blank line and the second input corresponds to a request to move the cursor upward.
[0252] For example, an electronic device uses a predetermined spring constant to make a subset of characters in the first part of a character sequence obey a simulated Hooke's law (e.g., the subset of characters in the first part of the character sequence moves with a simulated mass along with a simulated spring). In some embodiments, the subset of characters corresponds to a predetermined number of characters, such as a predetermined number of characters in a first word or term adjacent to the corresponding position. In some embodiments, the subset of characters corresponds to a predetermined number of words adjacent to the corresponding position. In some embodiments discussed similarly above, the subset of characters is determined at least in part based on the direction of movement of the input device relative to the corresponding position in the user interface. For example, if the movement of the input device relative to the corresponding position in the user interface is in a previously described first direction (e.g., to the right), the first subset of characters follows the blank space at the corresponding position in the user interface (e.g., directly to its right). In some embodiments, if the movement of the input device relative to the corresponding position in the user interface is in a previously described second direction (e.g., to the left), the first subset of characters precedes the blank space at the corresponding position in the user interface (e.g., directly to its left). In some implementations, when the electronic device moves a subset of characters in a character sequence relative to a corresponding position according to a spring-based model, the electronic device moves the subset of characters in the user interface in a direction corresponding to the movement of the input device relative to the corresponding position, and subsequently (e.g., by pulling or "rubber band" motion) moves the subset of characters back to the corresponding position in the user interface. In some implementations, the electronic device detects the amount of displacement measured between the input device and the corresponding position in the user interface, and animates the translation of the subset of characters based on the magnitude of acceleration of the displacement, such that when input provided by the input device terminates (e.g., when the electronic device detects the input device being lifted off a surface), the greater the displacement, the greater the acceleration of the subset of characters. In some implementations, the relationship between the displacement and the simulated acceleration of the subset of characters moving backward toward the corresponding position is a linear, exponential, logarithmic, and / or some other nonlinear relationship between displacement and simulated acceleration. In some implementations, due to the spring-based model, the characters in the subset of characters move differently relative to the corresponding position in the user interface. As an illustrative example, the subset of characters includes multiple words, including a first word, a second word, and a third word. In some implementations, when the electronic device detects movement of the input device on a surface, the application of a spring-based model simulates the pulling of the input device (e.g., its tip) (e.g., as with the mass attached to the spring) on a first word. In some implementations, the movement of the first word causes movement / pulling of a second word "attached" (e.g., according to the spring-based model) to the first word, and subsequently movement / pulling of a third word "attached" to the second word.In some implementations, the fourth word of a character sequence not included in a subsequent character subset does not move according to a spring-based model (e.g., the fourth word is not "attached" to any of the first, second, and third words of the character subset). In some implementations, the electronic device moves a first portion of a character sequence relative to a corresponding position in the user interface according to a spring-based model, but not the other characters in the first portion of the character sequence relative to their respective positions. For example, the movement of the other characters in the character sequence relative to their respective positions in the user interface follows a linear displacement model.
[0253] In some implementations, displaying spring animation includes displaying the spring animation with characteristics having a first value based on determining a second input including movement in a third direction, such as displaying the above reference with a first duration and / or magnitude value. Figure 6V The described spring animation. In some embodiments, the third direction corresponds to a first direction or a second direction. In some embodiments, the electronic device moves a first portion of a character sequence with spring animation according to a spring-based model, as previously described. Specifically, the electronic device may optionally use a predetermined spring constant to move the first portion of the character sequence according to an analog Hooke's law. In some embodiments, this characteristic is a spring constant, and displaying the spring animation with a characteristic having a first value includes displaying the spring animation with a spring constant having a first value. In some embodiments, the spring constant controls the velocity and / or acceleration of the characters in the first portion of the character sequence during the spring animation, and thus controls the perceived responsiveness and stiffness of the first portion of the character sequence in response to a second input. Furthermore, the spring constant controls the settling time of the characters in the first portion of the character sequence (e.g., the time it takes for the characters to stop moving when the cursor stops moving). In some embodiments, the velocity and / or acceleration of the characters in the first portion of the character sequence during the spring animation increases according to a spring constant having a larger value, and the velocity and / or acceleration of the characters in the first portion of the character sequence decreases according to a spring constant having a smaller value. Furthermore, the settling time of the characters in the first portion of the character sequence during the spring animation decreases according to a spring constant having a larger value, and the settling time of the characters in the first portion of the character sequence increases according to a spring constant having a smaller value. Therefore, in some embodiments, displaying the spring animation with a spring constant having a first value includes displaying the characters of the first portion of the character sequence that move at a first velocity and / or a first acceleration during the spring animation. Additionally or alternatively, displaying the spring animation with a spring constant having a first value includes displaying the characters in the first character sequence at a first settling time.
[0254] In some implementations, displaying spring animation includes displaying the spring animation with characteristics having a second value different from the first value, based on determining that the second input includes movement in a fourth direction different from the third direction, such as displaying the above reference with a second duration and / or magnitude value. Figure 6V The described spring animation. In some embodiments, the fourth direction corresponds to the first or second direction. In some embodiments, the fourth direction corresponds to an axis representing the handwritten content that is the same as but opposite to the third direction. Therefore, displaying the spring animation with a characteristic having a second value includes displaying the spring animation with a spring constant having a second value. Therefore, in some embodiments, displaying the spring animation with a spring constant having a second value includes displaying characters in a first character sequence that move at a second velocity and / or a second acceleration greater than the first acceleration during the spring animation. Additionally or alternatively, displaying the spring animation with a spring constant having a second value includes displaying characters in the first character sequence at a second settling time greater than the first settling time.
[0255] In some implementations, the third direction is left, and the fourth direction is right. Therefore, when the second input includes movement in the third direction (e.g., to the left), the electronic device displays the cursor moving to the left (e.g., to the blank space to the left of the cursor), and the first portion of the sequence of characters follows the cursor with a spring animation having a first value of a spring constant. When the second input includes movement in the fourth direction (e.g., to the right), the electronic device displays the cursor moving to the right and pushing the first portion of the character sequence, which moves with a spring animation having a spring constant.
[0256] In some implementations, the first and second directions are orthogonal to each other, such as cursor 610 in... Figure 6F The center is horizontal, and the cursor is 610. Figure 6GThe orientation is vertical. For example, a first direction is along the horizontal axis of the user interface (e.g., left or right), and a second direction is along the vertical axis of the user interface (e.g., up or down). Alternatively, in some embodiments, the first direction is along the vertical axis of the user interface (e.g., up or down), and the second direction is along the horizontal axis of the user interface (e.g., left or right). In some embodiments, as previously described, the electronic device displays the cursor (e.g., and / or moves a first portion of a character sequence) based on input corresponding to a request to move the cursor (e.g., based on the magnitude and / or direction of the input). In some implementations, the electronic device detects a corresponding input pointing to the cursor, and in response to detecting the corresponding input, based on determining that the direction of the corresponding input is within a threshold angle (e.g., 10, 15, 20, 25, 30, 35, 40, 45 degrees) in a first direction, the corresponding input corresponds to a request to move the cursor in the first direction, and based on determining that the direction of the corresponding input is within a threshold angle (e.g., 10, 15, 20, 25, 30, 35, 40, 45 degrees) in a second direction, the corresponding input corresponds to a request to move the cursor in the second direction. Therefore, in response to detecting an input corresponding to a request to move the cursor (e.g., and / or a first portion of a character sequence) in the corresponding direction, based on determining that the corresponding direction is the first direction, the electronic device displays a cursor having a first appearance corresponding to the first direction, the first appearance including an indication of an axis corresponding to the first direction, with double arrows pointing in opposite directions (e.g., left and right along a horizontal axis). Additionally or alternatively, in some embodiments, based on the determination that the corresponding direction is a second direction orthogonal to the first direction, the electronic device displays a cursor having a second appearance different from the first appearance and corresponding to the second direction. The second appearance includes an indication of an axis corresponding to the second direction, such as a double arrow pointing in the opposite direction along the axis (e.g., up and down along a vertical axis). The electronic device may optionally switch between the cursor having an appearance pointing to the first direction and the second direction orthogonal to the first direction based on input corresponding to a request to move the cursor.
[0257] In some implementations, the one or more criteria include a criterion that is satisfied when the magnitude of the movement component of the second input parallel to the second direction is greater than the magnitude of the movement component of the second input parallel to the first direction, such as in Figure 6XThe middle vector 636 has a vertical component 638 that is larger than the horizontal component 637. In some embodiments, the magnitude of the component of the second input parallel to the first direction is the magnitude of the projection of the movement of the second input onto the first axis (e.g., the horizontal axis), and the magnitude of the component of the second input parallel to the second direction is the magnitude of the projection of the movement of the second input onto the second axis (e.g., the vertical axis). In some embodiments, the magnitude of the movement component of the second input (e.g., parallel to the first direction or parallel to the second direction) is the distance, velocity, and / or acceleration of the movement component of the second input. Therefore, in some embodiments, a criterion is met when the electronic device detects that the movement along the vertical axis (e.g., the axis corresponding to the second direction) is greater than the movement along the horizontal axis (e.g., the axis corresponding to the first direction). In some embodiments, in response to detecting a corresponding input pointing to the cursor, based on determining that the magnitude of the movement component of the corresponding input parallel to the first direction is greater than the magnitude of the movement component of the corresponding input parallel to the second direction, the electronic device displays the cursor in a first appearance (e.g., and optionally moves that portion of the character sequence in the first direction). In some implementations, based on the determination that the magnitude of the movement component of the corresponding input parallel to the first direction is less than the magnitude of the movement component of the corresponding input parallel to the second direction, the electronic device displays the cursor in a second appearance (e.g., and optionally moves that portion of the character sequence in the second direction).
[0258] In some implementations, the one or more criteria include (i) a criterion satisfied when the velocity of the second input's movement component parallel to the second direction is greater than the velocity of the second input's movement component parallel to the first direction, or (ii) a criterion satisfied when the acceleration of the second input's movement component parallel to the second direction is greater than the acceleration of the second input's movement component parallel to the first direction, such as Figure 6XThe vector 636 contains components 637 and 638. In some embodiments, the velocity of the motion component is the velocity of the contact of the stylus and / or the user's finger detected by the electronic device on the touch-sensitive device when the electronic device detects the second input. In some embodiments, the acceleration of the motion component is the acceleration of the contact of the stylus and / or the user's finger detected by the electronic device on the touch-sensitive device when the electronic device detects the second input. Therefore, in some embodiments, the criterion is met when the electronic device detects that the velocity of the second input along the vertical axis (e.g., the axis corresponding to the second direction) is greater than the velocity of the second input along the horizontal axis (e.g., the axis corresponding to the first direction), and / or when the electronic device detects that the acceleration of the second input along the vertical axis (e.g., the axis corresponding to the second direction) is greater than the acceleration of the second input along the horizontal axis (e.g., the axis corresponding to the first direction). In some embodiments, in response to detecting a corresponding input to the pointing cursor, based on determining that the velocity of the movement component of the corresponding input parallel to a first direction is greater than the velocity of the movement component of the corresponding input parallel to a second direction, the electronic device displays the cursor in a first appearance (e.g., and optionally moves a portion of a character sequence in the first direction), and based on determining that the velocity of the movement component of the corresponding input parallel to the first direction is less than the velocity of the movement component of the corresponding input parallel to the second direction, the electronic device displays the cursor in a second appearance (e.g., and optionally moves a portion of a character sequence in the second direction). In some embodiments, in response to detecting a corresponding input to the pointing cursor, based on determining that the acceleration of the movement component of the corresponding input parallel to the first direction is greater than the acceleration of the movement component of the corresponding input parallel to the second direction, the electronic device displays the cursor in a first appearance (e.g., and optionally moves a portion of a character sequence in the first direction), and based on determining that the acceleration of the movement component of the corresponding input parallel to the first direction is less than the acceleration of the movement component of the corresponding input parallel to the second direction, the electronic device displays the cursor in a second appearance (e.g., and optionally moves a portion of a character sequence in the second direction).
[0259] In some implementations, in response to the detection of a second input, and based on the determination that the second input does not meet one or more criteria, including criteria satisfied when the movement component of the second input in a second direction is greater than a threshold amount, the electronic device moves the cursor according to the second input while maintaining the cursor's first appearance, such as in response to the detection of... Figure 6W The cursor 610 is moved horizontally and vertically by an input with a horizontal component 637 greater than the vertical component 638.
[0260] In some implementations, in response to detecting a second input, and based on determining that the second input does not meet one or more criteria, including criteria satisfied when the movement component of the second input in a second direction is greater than a threshold amount, the electronic device moves a first portion of the character sequence in a first direction according to the second input, such as in response to detecting... Figure 6X The input has a horizontal component 637 less than the vertical component 638 to move the cursor 610 horizontally and vertically. In some embodiments, the threshold movement amount is a threshold distance, threshold velocity, and / or threshold acceleration of the movement component in the second direction. Therefore, the criteria are not met when the distance of the component of the second input is less than the threshold distance, the velocity of the component of the second input is less than the threshold velocity, and / or the acceleration of the component of the second input is less than the acceleration threshold. In some embodiments, a movement of the cursor pointing to the cursor and its component in the corresponding direction (e.g., the first direction and / or the second direction) exceeding the threshold amount (e.g., distance threshold, velocity threshold, and / or acceleration threshold) indicates to the electronic device that the corresponding input corresponds to a request to move the cursor in the corresponding direction (e.g., and / or move a first portion of the character sequence in the corresponding direction) and display the cursor with a corresponding visual appearance (e.g., a first visual appearance or a second visual appearance). In some embodiments, moving a first portion of the character sequence in the first direction according to the second input includes moving the first portion of the character sequence according to the component of the input in the first direction, regardless of the component of the input in the second direction.
[0261] In some implementations, in response to the detection of a second input, based on determining that the second input meets one or more criteria, the electronic device moves the cursor in a first direction and a second direction according to the second input, without moving the first portion of the character sequence in the first direction, such as in response to the detection of... Figure 6W The illustrated input has a horizontal component 637 that is larger than the vertical component 638 to move the cursor 610 vertically and horizontally.
[0262] In some implementations, in response to the detection of a second input, and based on the determination that the second input does not meet one or more criteria, the electronic device moves the cursor in a first direction and a second direction according to the second input, without moving the first portion of the character sequence in the second direction, such as in response to the detection of... Figure 6XThe illustrated input has a vertical component 638 that is larger than the horizontal component 637 to move the cursor 610 vertically and horizontally. For example, when moving the cursor and / or a first portion of a character sequence in a second direction, the electronic device may optionally move the cursor in both a first and second direction according to the second input. Therefore, the electronic device may optionally not move the cursor in a straight line in the second direction (e.g., not deviating from the second direction), but may instead move the cursor in the first direction while maintaining movement in the second direction. Specifically, when displaying the cursor according to the movement component in the second direction, the electronic device may optionally display the cursor according to the movement component in the first direction. For example, if the second direction corresponds to movement along a horizontal axis and the first direction corresponds to movement along a vertical axis, then in response to detecting the second input, the electronic device may optionally move the cursor along a horizontal axis (e.g., along a line of characters representing a first representation of handwritten content) while also moving the cursor along a vertical axis. In some embodiments, the magnitude of the movement in the second direction is less than the magnitude of the movement in the first direction. In some embodiments, the movement of the cursor in the first direction is incidental when the electronic device moves the cursor in the second direction and reflects a change in the movement of the detected contact on the touch-sensitive device in the second direction. In some embodiments, when the electronic device moves the cursor in the second direction, the movement of the cursor in the first direction indicates to the user that the user can provide input corresponding to the request to move the cursor in the first direction. In some embodiments, when the electronic device moves the cursor in the first direction while moving the cursor in the second direction, the electronic device may optionally not display the cursor in a first appearance. In some embodiments, when the electronic device moves a first portion of a character sequence in the second direction as the cursor moves in the second direction, the electronic device may optionally not move the first portion of the character sequence in the first direction while moving the first cursor in the first direction. In some embodiments, when moving the cursor in the first direction, moving the cursor in both the first and second directions has one or more characteristics corresponding to the characteristics of moving the cursor in both the first and second directions while moving the cursor in the second direction, but the corresponding directions to which the corresponding characteristics are applied differ in a complementary manner.
[0263] In some implementations, moving a first portion of the character sequence in a first direction includes moving a first portion of the character sequence by a continuous distance in the first direction, such as in response to detecting... Figure 6E The illustrated input method moves a portion of the handwritten content 620 to... Figure 6FThe positions in the sequence are continuous. In some embodiments, the first direction corresponds to a direction along a horizontal axis. In some embodiments, moving the first portion of the character sequence by a continuous distance includes moving the first portion of the character sequence by a distance that does not correspond to a predetermined distance and / or interval (e.g., the width of a character representing a first representation of the handwritten content). In some embodiments, moving the first portion of the character sequence by a continuous distance includes moving the first portion of the character sequence by a distance smaller than the width of a character representing a first representation of the handwritten content. In some embodiments, moving the first portion of the character sequence by a continuous distance includes displaying an animation of the first portion of the character sequence moving from a first position to a second position in the user interface. In some embodiments, moving the first portion of the character sequence by a continuous distance includes moving the cursor by a continuous distance.
[0264] In some implementations, moving a first portion of the character sequence in the second direction includes moving a first portion of the character sequence by a discrete distance in the second direction, such as in response to detection. Figure 6G The input shown is used to move a portion of the handwritten content 620 to... Figure 6H The position in the text is discrete. In some embodiments, the second direction corresponds to a direction along the vertical axis. In some embodiments, the discrete distance corresponds to the distance between lines of characters representing the first representation of the handwritten content. In some embodiments (e.g., where the first portion of the character sequence corresponds to a first character line), moving the first portion of the character sequence by a discrete distance includes shifting the first portion of the character sequence one line in the user interface (e.g., shifting it to the line above the first line) without displaying the characters of the first portion of the character sequence between the first line and the line above. In some embodiments, moving the first portion of the character sequence by a discrete distance includes abandoning the animation of the first portion of the character sequence moving from a first position to a second position in the user interface.
[0265] In some implementations, moving a first portion of the character sequence in a first direction includes moving a first portion of the character sequence by a continuous distance in the first direction, such as in response to detecting... Figure 6E The illustrated input method moves a portion of the handwritten content 620 to... Figure 6FThe positions in the text are continuous. In some embodiments, the first direction corresponds to a direction along a horizontal axis. In some embodiments, moving a first portion of a character sequence by a continuous distance in the first direction includes moving the first portion of the character sequence by a distance in the first direction that does not correspond to a predetermined distance and / or interval (e.g., the width of a character representing a first representation of handwritten content). In some embodiments, moving a first portion of a character sequence by a continuous distance in the first direction includes moving the first portion of the character sequence by a distance smaller than the width of a character representing a first representation of handwritten content. In some embodiments, moving a first portion of a character sequence by a continuous distance in the first direction includes displaying an animation of the first portion of the character sequence moving from a first position to a second position in the user interface. In some embodiments, moving a first portion of a character sequence by a continuous distance includes moving the cursor by a continuous distance.
[0266] In some implementations, moving a first portion of the character sequence in the second direction includes moving a first portion of the character sequence by a continuous distance in the second direction, such as in response to detection. Figure 6G The input shown is used to move a portion of the handwritten content 620 to... Figure 6H The position in the second direction is a continuous amount. In some embodiments, the second direction corresponds to a direction along the vertical axis. In some embodiments, moving the first portion of the character sequence at a continuous distance in the second direction includes moving the first portion of the character sequence by a distance that does not correspond to a predetermined distance and / or interval (e.g., the distance between two lines of characters corresponding to the first representation of the handwritten content). In some embodiments, moving the first portion of the character sequence at a continuous distance includes moving the first portion of the character sequence by a distance less than the distance from the first line (e.g., corresponding to the first portion of the character sequence) and the previous line (e.g., above the first portion of the character sequence). In some embodiments, moving the first portion of the character sequence at a continuous distance includes an animation showing the first portion of the character sequence moving in the user interface from a first position (e.g., the first line corresponding to the first portion of the character sequence) to a second position (e.g., the line corresponding to the previous line or above the first line in the first representation of the handwritten content). In some embodiments, moving the first portion of the character sequence at a continuous distance includes moving the cursor at a continuous distance.
[0267] In some implementations, when a first representation of handwritten content, including a sequence of characters, is displayed, the electronic device detects a third input pointing to the first representation of the handwritten content via one or more input devices, such as... Figure 6KThe inputs illustrated herein. In some embodiments, the third input includes a tap or touch input (e.g., a tap or touch input with a stylus or finger) pointing at a first representation of the handwritten content. In some embodiments, the third input includes an air gesture (e.g., pointing at a first representation of the handwritten content) performed by a user's hand and detected by the electronic device via one or more input devices. In some embodiments, the electronic device detects the air gesture while detecting the user's attention to the first representation of the handwritten content (e.g., based on gaze).
[0268] In some implementations, in response to the detection of a third input, and based on the determination that the third input includes a first gesture pointing to a first portion of the character sequence, the electronic device displays a visual indication of a second boundary for moving the first portion of the character sequence in the user interface via one or more display generation components, such as a display... Figure 6K The second boundary is 630. In some embodiments, the first gesture is a single tap detected by the electronic device via a touch-sensitive device. In some embodiments, the first gesture is an air tap detected via one or more input devices. In some embodiments, the second boundary corresponds to the boundary of a first representation of handwritten content (e.g., the first representation of handwritten content in a user interface is confined to the left, right, top, and / or bottom edges). In some embodiments, the second boundary corresponds to the boundary of a first portion of a character sequence (e.g., the first portion of a character sequence in a user interface is confined to the left, right, top, and / or bottom edges). In some embodiments, the second boundary forms a logical bounding box around the first representation of handwritten content or the first portion of a character sequence (e.g., not displayed by the electronic device and / or invisible to the user). In some embodiments, the second boundary has one or more characteristics of the first boundary previously described herein.
[0269] In some embodiments, the visual indication of the second boundary is a bounding box that corresponds to the second boundary and is displayed around (e.g., around) a first portion of a character sequence of a first representation of the handwritten content and / or a first representation of the handwritten content. In some embodiments, displaying the visual indication of the second boundary (e.g., the bounding box) in the user interface includes displaying one or more graphical user interface elements in the user interface for changing one or more metrics associated with the second boundary. In some embodiments, the second boundary has one or more characteristics of the first boundary previously described herein.
[0270] In some implementations, in response to the detection of a third input, and based on the determination that the third input includes a second gesture different from the first gesture pointing to a first portion of the character sequence, the electronic device displays one or more graphical user interface elements via one or more display generating components that indicate the selection of the second portion of the character sequence different from the first portion, such as a portion of the handwritten content 622 with an indication of the selection, such as... Figure 6BB As shown. In some embodiments, the second gesture is a double tap detected by the electronic device via a touch-sensitive device. In some embodiments, the first gesture is a double air gesture detected via one or more input devices. In some embodiments, the second part of the character sequence corresponds to a single letter, number, or special character, or a set of letters, numbers, or special characters, of the first part of the character sequence. In some embodiments, the second part of the character sequence corresponds to a single word of the character sequence of the first part of the character sequence. In some embodiments, the second part of the character sequence corresponds to multiple words (optionally, a sentence or multiple sentences) of the first part of the character sequence. In some embodiments, the second part of the character sequence corresponds to a paragraph (or multiple paragraphs) of the first part of the character sequence. In some embodiments, the second part of the character sequence is a subset of the first part of the character sequence. In some embodiments, the second part of the character sequence is the first part of the character sequence. In some embodiments, the second part of the character sequence has one or more characteristics of the first part of the character sequence.
[0271] In some embodiments, the electronic device displays a second portion of a character sequence in the user interface with visual emphasis relative to other characters in the character sequence. For example, when the bounding box described above is displayed around a character sequence (or a subset thereof) in the user interface, the electronic device displays the second portion of the character sequence with other visual effects such as highlighting, bolding, underlining, brightening, or indicating that the second portion of the character sequence has been selected. In some embodiments, the electronic device displays multiple options that can be selected to perform multiple corresponding operations on the second portion of the character sequence without having to perform one or more operations on the other characters in the character sequence. Additionally, in some embodiments, the one or more graphical user interface elements include a set of resizing indications displayed in the user interface along with the second portion of the character sequence. In some embodiments, the set of resizing indications is displayed on either side / end of the second portion of the character sequence. Specifically, the set of resizing indications includes a first resizing indication displayed to the left of the first character of the second portion of the character sequence and a second resizing indication displayed to the right of the last character of the second portion of the character sequence. For example, if the second part of the character sequence is a word, the set of size adjustment power representations (e.g., the first size adjustment power representation and the second size adjustment power representation) is displayed at the beginning and end of the word.
[0272] In some embodiments, in response to the detection of a third input, and based on the determination that the third input includes a second gesture, the electronic device establishes a third boundary for moving the cursor and / or a second portion of the character sequence. In some embodiments, the third boundary is the smallest boundary around the size of the second portion of the character sequence. In some embodiments, the first boundary described above is the boundary around the paragraph including the first portion of the character sequence, while the third boundary excludes one or more characters included in the paragraph including the second portion of the character sequence. In some embodiments, the third boundary depends on the size and / or position of the second portion of the character sequence. In some embodiments, the electronic device is capable of moving the cursor and one or more characters of the second portion of the character sequence within the third boundary in response to the detection of further input pointing at the cursor. In some embodiments, the electronic device is capable of repositioning the second portion of the character sequence beyond the third boundary, including moving the third boundary together with the second portion of the character sequence.
[0273] In some implementations, one or more graphical user interface elements (such as...) are displayed to indicate the selection of the second part of the character sequence. Figure 6BB When displaying the handwritten content 622 in the image, the electronic device detects a fourth input pointing to one or more graphical user interface elements, such as detecting a pointer to... Figure 6BB The indicator in the diagram represents the input of the 642b.
[0274] In some implementations, in response to the detection of a fourth input, the electronic device updates the display of one or more graphical user interface elements to indicate the selection of a third portion of the character sequence, which is different from the second portion of the character sequence, such as selecting... Figure 6CC The handwritten content shown is part 624.
[0275] In some implementations, in response to the detection of a fourth input, the electronic device updates the display of a visual indication of the second boundary based on a third portion of the character sequence, such as displaying a pair of symbols on the boundary. Figure 6DD The fourth input includes an indication of the boundary surrounding a portion of the handwritten content 624. In some embodiments, the fourth input includes a movement input pointing to a set of resizing indicators. In some embodiments, the fourth input includes a tap or touch input pointing to a corresponding resizing indicator (e.g., a tap or touch input with a stylus or finger), followed by a drag gesture in the corresponding direction (e.g., while maintaining contact), and corresponding to a request to move the corresponding resizing indicator in the corresponding direction. In some embodiments, the fourth input includes an air gesture performed by the user's hand and detected by the el...
Claims
1. A method, the method comprising: At an electronic device that communicates with one or more display generation components and one or more input devices: When a first representation of handwritten content including a sequence of characters is displayed in the user interface, a first input pointing to a first location in the user interface is detected via the one or more input devices; as well as In response to the detection of the first input: A cursor is displayed at the first position in the user interface via the one or more display generation components, wherein the cursor is used to move a first portion of the character sequence in a first direction in the user interface, and the cursor has a first appearance; When the cursor is displayed for moving the first portion of the character sequence in the first direction in the user interface, the cursor has the first appearance, and a second input pointing to the cursor is detected via the one or more input devices; as well as In response to detecting the second input, determine that the second input meets one or more criteria: The cursor display is updated from the first appearance to a second appearance different from the first appearance via the one or more display generation components; And when displaying the cursor having the second appearance, the first portion of the character sequence is moved to a second position in the user interface, which is different from the first position in the user interface, in a second direction different from the first direction, according to the second input.
2. The method of claim 1, wherein detecting the first input includes detecting a gesture corresponding to a request to display the cursor or a gesture corresponding to a request to delete a corresponding portion of the handwritten content.
3. The method of claim 1, wherein moving the first portion of the character sequence in response to detecting the second input comprises: Moving the cursor within the first boundary according to the second input includes: Based on determining that the second input corresponds to the movement of the cursor within the first boundary, move the cursor according to the second input; and Based on the determination that the second input corresponds to the movement of the cursor beyond the first boundary, the cursor is moved within the first boundary without moving the cursor beyond the first boundary according to the second input.
4. The method according to claim 3, further comprising: When the cursor is displayed: Detect the third input; as well as In response to the detection of the third input, and based on the determination that the third input meets one or more second criteria, a visual indication of the first boundary is displayed via the one or more display generation components.
5. The method according to claim 4, further comprising: When displaying the visual indication of the first boundary, a fourth input corresponding to the request to update the first boundary is detected; as well as In response to the detection of the fourth input: The first boundary and the visual indication of the first boundary are updated based on the determination that the fourth input meets one or more third criteria.
6. The method of claim 5, wherein the one or more third criteria include criteria satisfied when the fourth input requests movement of the first boundary in a third-direction upward and not satisfied when the fourth input requests movement of the first boundary in a fourth direction different from the third-direction, and the method further includes: In response to the detection of the fourth input, and based on the determination that the fourth input does not meet the one or more third criteria, the first boundary is maintained without updating the first boundary based on the fourth input.
7. The method of claim 1, wherein displaying the cursor comprises: Based on determining that the position of the cursor corresponds to the boundary of the cursor, the cursor is displayed with a corresponding appearance that corresponds to the boundary of the cursor; as well as If it is determined that the position of the cursor does not correspond to the boundary of the cursor, the cursor that does not have the corresponding appearance corresponding to the boundary is displayed.
8. The method of claim 7, wherein displaying the cursor in an appearance corresponding to the boundary of the cursor comprises: In response to the detection of a third input corresponding to a request to move the cursor, a first animation is displayed when the movement of the cursor corresponds to a movement of the cursor's position beyond the boundary of the cursor.
9. The method of claim 8, wherein displaying the animation in response to detecting the third input comprises: Based on the determination that the third input has a first value exceeding the boundary, the first animation includes a feature having a first value corresponding to the first value; as well as Based on the determination that the third input has a second value that is different from the first value and exceeds the boundary, the first animation includes a characteristic having a second value that corresponds to the second value and is different from the first value.
10. The method of claim 7, wherein a portion of the boundary corresponds to a second portion of the character sequence.
11. The method according to claim 1, further comprising: In response to detecting the second input, based on determining that the second input meets one or more second criteria: When the cursor is displayed, the first portion of the character sequence is moved according to the second input, including a spring animation showing the movement of the first portion of the character sequence relative to the cursor.
12. The method of claim 11, wherein displaying the spring animation comprises: The spring animation is displayed based on the determination that the second input includes movement in a third direction, with a characteristic having a first value; as well as The spring animation is displayed based on the determination that the second input includes movement in a fourth direction different from the third direction, to have a second value different from the first value.
13. The method of claim 1, wherein the first direction and the second direction are orthogonal to each other.
14. The method of claim 13, wherein the one or more criteria include a criterion that is satisfied when the magnitude of the movement component of the second input parallel to the second direction is greater than the magnitude of the movement component of the second input parallel to the first direction.
15. The method of claim 13, wherein the one or more criteria include (i) a criterion satisfied when the velocity of the second input moving component parallel to the second direction is greater than the velocity of the second input moving component parallel to the first direction, or (ii) a criterion satisfied when the acceleration of the second input moving component parallel to the second direction is greater than the acceleration of the second input moving component parallel to the first direction.
16. The method according to claim 1, further comprising: In response to detecting the second input, and based on determining that the second input does not meet one or more criteria, the one or more criteria include those satisfied when the movement component of the second input in the second direction is greater than a threshold amount: The cursor is moved according to the second input while maintaining the first appearance of the cursor; as well as The first portion of the character sequence is moved in the first direction according to the second input.
17. The method according to claim 1, further comprising: In response to the detection of the second input: Based on determining that the second input meets one or more criteria, the cursor is moved in the first direction and the second direction according to the second input, without moving the first portion of the character sequence in the first direction; as well as Based on the determination that the second input does not meet the one or more criteria, the cursor is moved in the first direction and the second direction according to the second input, without moving the first portion of the character sequence in the second direction.
18. The method according to claim 1, wherein: Moving the first portion of the character sequence in the first direction includes moving the first portion of the character sequence by a continuous distance in the first direction, and Moving the first portion of the character sequence in the second direction includes moving the first portion of the character sequence by discrete distances in the second direction.
19. The method according to claim 1, wherein: Moving the first portion of the character sequence in the first direction includes moving the first portion of the character sequence by a continuous distance in the first direction, and Moving the first portion of the character sequence in the second direction includes moving the first portion of the character sequence at continuous distances in the second direction.
20. The method according to claim 1, further comprising: When displaying the first representation of the handwritten content including the character sequence, a third input pointing to the first representation of the handwritten content is detected via the one or more input devices; In response to the detection of the third input: Based on the determination that the third input includes a first gesture pointing to the first portion of the character sequence, a visual indication of a second boundary for moving the first portion of the character sequence in the user interface is displayed via the one or more display generation components; as well as Based on the determination that the third input includes a second gesture different from the first gesture pointing to the first portion of the character sequence, one or more graphical user interface elements indicating that the second portion different from the first portion of the character sequence has been selected are displayed via the one or more display generation components.
21. The method of claim 20, further comprising: While displaying the one or more graphical user interface elements indicating that the second portion of the character sequence has been selected, a fourth input pointing to the one or more graphical user interface elements is detected; as well as In response to the detection of the fourth input, Update the display of the one or more graphical user interface elements to indicate the selection of a third portion of the character sequence that is different from the second portion of the character sequence, and The display of the visual indication of the second boundary is updated based on the third part of the character sequence.
22. An electronic device, the electronic device comprising: One or more processors; Memory; as well as One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any one of the methods according to claims 1 to 21.
23. A non-transitory computer-readable storage medium storing one or more programs, said one or more programs comprising instructions that, when executed by one or more processors of an electronic device, cause the electronic device to perform any one of the methods according to claims 1 to 21.
24. A computer program product comprising one or more programs configured to be executed by one or more processors of a computer system in communication with one or more display generation components and one or more input devices, the one or more programs comprising instructions for performing the method according to any one of claims 1 to 21.
Citation Information
Patent Citations
Method and apparatus for integrating manual input
US20020015024A1
Acceleration-based theft detection system for portable electronic devices
US20050190059A1
Methods and apparatuses for operating a portable device based on an accelerometer
US20060017692A1
Gestures for touch sensitive input devices
US20060026521A1
Gestures for touch sensitive input devices
US20060026536A1
