API for specifying display of complication on an electronic watch
First Claim
1. A method for displaying text on a watch face of an electronic watch, the method comprising, at the electronic watch:
- receiving, from a user, a selection of a first client application for providing first information to be displayed as a complication in a first style window on the watch face of the electronic watch, wherein the first style window is one of a plurality of different style windows having different sizes;
sending, by a display manager, information identifying a size and a type of the first style window to the first client application to inform a complication controller of the first client application that the first client application is assigned to the first style window, wherein in response to said informing the complication controller selects a first template of a plurality of templates stored on the electronic watch, the first template corresponding to the first style window used to display data in the complication and generates a first data item in accordance with the first template by selecting a first identifier corresponding to the first template;
receiving, by the display manager from the complication controller of the first client application, a first data object including the first data item for displaying in the first style window, wherein the first data item includes;
first data, andthe first identifier corresponding to a first display function of a plurality of display functions to be used in displaying the first data, the plurality of display functions corresponding to the plurality of templates, wherein the first display function specifies a set of rules for the display manager to fit the first data within the first style window according to the first template;
invoking, by the display manager, the first display function to determine a first potential text string to display based on the first data;
determining a first length of the first potential text string;
comparing the first length to a first maximum length for displaying the first data to determine that the first length is greater than the first maximum length;
determining, with the first display function, a second potential text string having a second length that is shorter than the first length according to a first set of one or more rules; and
displaying the second potential text string in the first style window when the second length is shorter than or equal to the first maximum length.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems, methods, and devices can efficiently manage the displaying of text on a screen of a computing device. For example, a client application can provide a data object for a particular style window on the screen. The data object can include a data item, comprising text data, one or more units specifying one or more portions of the text data to be displayed in the style window, and an identifier corresponding to a particular display function to be used in displaying the text data. The display function can be invoked to determine a potential text string to display based on the text data, the one or more units, and one or more rules corresponding to the particular display function. Additional text strings can be generated to obtain a text string that is shorter than or equal to a maximum length for the data item.
79 Citations
20 Claims
-
1. A method for displaying text on a watch face of an electronic watch, the method comprising, at the electronic watch:
-
receiving, from a user, a selection of a first client application for providing first information to be displayed as a complication in a first style window on the watch face of the electronic watch, wherein the first style window is one of a plurality of different style windows having different sizes; sending, by a display manager, information identifying a size and a type of the first style window to the first client application to inform a complication controller of the first client application that the first client application is assigned to the first style window, wherein in response to said informing the complication controller selects a first template of a plurality of templates stored on the electronic watch, the first template corresponding to the first style window used to display data in the complication and generates a first data item in accordance with the first template by selecting a first identifier corresponding to the first template; receiving, by the display manager from the complication controller of the first client application, a first data object including the first data item for displaying in the first style window, wherein the first data item includes; first data, and the first identifier corresponding to a first display function of a plurality of display functions to be used in displaying the first data, the plurality of display functions corresponding to the plurality of templates, wherein the first display function specifies a set of rules for the display manager to fit the first data within the first style window according to the first template; invoking, by the display manager, the first display function to determine a first potential text string to display based on the first data; determining a first length of the first potential text string; comparing the first length to a first maximum length for displaying the first data to determine that the first length is greater than the first maximum length; determining, with the first display function, a second potential text string having a second length that is shorter than the first length according to a first set of one or more rules; and displaying the second potential text string in the first style window when the second length is shorter than or equal to the first maximum length. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A computer product comprising a non-transitory storage medium storing instructions that when executed control an electronic watch to display text on a watch face of the electronic watch, the instructions comprising:
-
receiving, from a user, a selection of a first client application for providing first information to be displayed as a complication in a first style window on the watch face of the electronic watch, wherein the first style window is one of a plurality of different style windows having different sizes; sending, by a display manager, information identifying a size and a type of the first style window to the first client application to inform a complication controller of the first client application that the first client application is assigned to the first style window, wherein in response to said informing the complication controller selects a first template of a plurality of templates stored on the electronic watch, the first template corresponding to the first style window used to display data in the complication and generates a first data item in accordance with the first template by selecting a first identifier corresponding to the first template; receiving, by the display manager from the complication controller of the first client application, a first data object including the first data item for displaying in the first style window, wherein the first data item includes; first data, and the first identifier corresponding to a first display function of a plurality of display functions to be used in displaying the first data, the plurality of display functions corresponding to the plurality of templates, wherein the first display function specifies a set of rules for the display manager to fit the first data within the first style window according to the first template; invoking, by the display manager, the first display function to determine a first potential text string to display based on the first data; determining a first length of the first potential text string; comparing the first length to a first maximum length for displaying the first data to determine that the first length is greater than the first maximum length; determining, with the first display function, a second potential text string having a second length that is shorter than the first length according to a first set of one or more rules; and displaying the second potential text string in the first style window when the second length is shorter than or equal to the first maximum length. - View Dependent Claims (15, 16, 17)
-
-
18. An electronic watch comprising:
-
a watch face; and one or more processors configured to; receive, from a user, a selection of a first client application for providing first information to be displayed as a complication in a first style window on the watch face of the electronic watch, wherein the first style window is one of a plurality of different style windows having different sizes; send, by a display manager, information identifying a size and a type of the first style window to the first client application to inform a complication controller of the first client application that the first client application is assigned to the first style window, wherein in response to said informing the complication controller selects a first template of a plurality of templates stored on the electronic watch, the first template corresponding to the first style window used to display data in the complication and generates a first data item in accordance with the first template by selecting a first identifier corresponding to the first template; receive, by the display manager from the complication controller of the first client application, a first data object including the first data item for displaying in the first style window, wherein the first data item includes; first data, and the first identifier corresponding to a first display function of a plurality of display functions to be used in displaying the first data, the plurality of display functions corresponding to the plurality of templates, wherein the first display function specifies a set of rules for the display manager to fit the first data within the first style window according to the first template; invoke, by the display manager, the first display function to determine a first potential text string to display based on the first data; determine a first length of the first potential text string; compare the first length to a first maximum length for displaying the first data to determine that the first length is greater than the first maximum length; determine, with the first display function, a second potential text string having a second length that is shorter than the first length according to a first set of one or more rules; and display the second potential text string in the first style window when the second length is shorter than or equal to the first maximum length. - View Dependent Claims (19, 20)
-
Specification