API FOR SPECIFYING DISPLAY OF COMPLICATION ON AN ELECTRONIC WATCH
First Claim
1. A method for displaying text on a screen of a computing device, the method comprising, at the computing device:
- receiving, from a user, a selection of a first client application for providing first information to be displayed in a first style window on the screen of the computing device;
informing, by a display manager, the first client application that the first client application is assigned to the first style window;
receiving, by the display manager from the first client application, a first data object including a first data item for displaying in the first style window, wherein the first data item includes;
first data,one or more first units specifying one or more portions of the first data to be displayed in the first style window, anda first identifier corresponding to a first display function to be used in displaying the first data;
invoking, by the display manager, the first display function to determine a first potential text string to display based on the first data and the one or more first units;
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 screen of a computing device, the method comprising, at the computing device:
-
receiving, from a user, a selection of a first client application for providing first information to be displayed in a first style window on the screen of the computing device; informing, by a display manager, the first client application that the first client application is assigned to the first style window; receiving, by the display manager from the first client application, a first data object including a first data item for displaying in the first style window, wherein the first data item includes; first data, one or more first units specifying one or more portions of the first data to be displayed in the first style window, and a first identifier corresponding to a first display function to be used in displaying the first data; invoking, by the display manager, the first display function to determine a first potential text string to display based on the first data and the one or more first units; 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 computer readable medium storing instructions that when executed control a computing device to display text on a screen of the computing device, the instructions comprising:
-
receiving, from a user, a selection of a first client application for providing first information to be displayed in a first style window on the screen of the computing device; informing, by a display manager, the first client application that the first client application is assigned to the first style window; receiving, by the display manager from the first client application, a first data object including a first data item for displaying in the first style window, wherein the first data item includes; first data, one or more first units specifying one or more portions of the first data to be displayed in the first style window, and a first identifier corresponding to a first display function to be used in displaying the first data; invoking, by the display manager, the first display function to determine a first potential text string to display based on the first data and the one or more first units; 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 computing device comprising:
-
a screen; 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 in a first style window on the screen of the computing device; inform, by a display manager, the first client application that the first client application is assigned to the first style window; receive, by the display manager from the first client application, a first data object including a first data item for displaying in the first style window, wherein the first data item includes; first data, one or more first units specifying one or more portions of the first data to be displayed in the first style window, and a first identifier corresponding to a first display function to be used in displaying the first data; invoke, by the display manager, the first display function to determine a first potential text string to display based on the first data and the one or more first units; 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