Edge tool configuration method and electronic device
Disclosed are an edge tool configuration method and an electronic device. The edge tool configuration method includes: detecting a placement status of the electronic device through a sensor; reading configuration information of the edge tool according to the placement status, wherein the configuration information includes initial configuration information of the edge tool in a plurality of default placement statuses; placing the edge tool at an edge position in a display interface of a display according to the configuration information in the placement status.
1 . An edge tool configuration method adaptable for an electronic device, wherein the electronic device has a sensor and a display, and the edge tool configuration method comprising:
detecting a placement status of the electronic device through the sensor;
reading configuration information of an edge tool according to the placement status, wherein the configuration information comprises initial configuration information of the edge tool in a plurality of default placement statuses; and
placing the edge tool at an edge position in a display interface of the display according to the configuration information in the placement status,
wherein the step of placing the edge tool at the edge position in the display interface of the display according to the configuration information in the placement status comprises:
in response to an application running in a foreground of the electronic device being changed and the placement status being not changed, adjusting a coordinate of the edge position at where the edge tool being placed from a first coordinate to a second coordinate without changing an appearance of the edge tool itself; and
when the edge tool is triggered, presenting a user interface and then adding or removing an application supporting quick-start through the user interface.
2 . The edge tool configuration method according to claim 1 , wherein the step of placing the edge tool at the edge position in the display interface of the display according to the configuration information in the placement status comprises:
determining that the placement status is a target placement status among the plurality of default placement statuses according to sensing data returned by the sensor;
fetching initial configuration information corresponding to the target placement status from the configuration information;
determining the edge position in the display interface according to the initial configuration information corresponding to the target placement status; and
instructing the display to present the edge tool at the edge position.
3 . The edge tool configuration method according to claim 1 , wherein the step of placing the edge tool at the edge position in the display interface of the display according to the configuration information in the placement status comprises:
in response to the placement status being a first placement status among the plurality of default placement statuses, placing the edge tool at a first edge position in the display interface; and
in response to the placement status being a second placement status among the plurality of default placement statuses, placing the edge tool at a second edge position in the display interface,
wherein the first placement status differs from the second placement status and the first edge position differs from the second edge position.
4 . The edge tool configuration method according to claim 3 , wherein while being in the first placement status, the electronic device is operated in a vertical mode and while being in the second placement status, the electronic device is operated in a horizontal mode or a full-screen mode.
5 . The edge tool configuration method according to claim 3 , further comprising:
receiving a first user operation in the first placement status;
updating the configuration information to adjust first initial configuration information of the edge tool in the first placement status according to the first user operation;
receiving a second user operation in the second placement status; and
updating the configuration information to adjust second initial configuration information of the edge tool in the second placement status according to the second user operation.
6 . The edge tool configuration method according to claim 1 , wherein the step of placing the edge tool at the edge position in the display interface of the display according to the configuration information in the placement status further comprises:
detecting the application running in the foreground of the electronic device in the placement status;
determining the edge position according to the application; and
placing the edge tool at the adjusted edge position in the display interface.
7 . The edge tool configuration method according to claim 6 , wherein the step of determining the edge position according to the application comprises:
in response to the application running in the foreground of the electronic device switching from a first application to a second application, relocating the edge position from a third edge position to a fourth edge position,
wherein the first application differs from the second application and the third edge position differs from the fourth edge position.
8 . An electronic device, comprising:
a sensor;
a display;
a storage circuit, configured to store configuration information of an edge tool; and
a processor, coupled to the sensor, the display, and the storage circuit,
wherein the processor is configured to:
detect a placement status of the electronic device through the sensor;
read the configuration information according to the placement status, wherein the configuration information comprises initial configuration information of the edge tool in a plurality of default placement statuses; and
place the edge tool at an edge position in a display interface of the display according to the configuration information in the placement status,
wherein the operation of placing the edge tool at the edge position in the display interface of the display according to the configuration information in the placement status comprises:
in response to an application running in a foreground of the electronic device being changed and the placement status being not changed, adjusting a coordinate of the edge position at where the edge tool being placed from a first coordinate to a second coordinate without changing an appearance of the edge tool itself; and
when the edge tool is triggered, presenting a user interface and then adding or removing an application supporting quick-start through the user interface.
9 . The electronic device according to claim 8 , wherein the operation of placing the edge tool at the edge position in the display interface of the display according to the configuration information in the placement status comprises:
determining that the placement status is a target placement status among the plurality of default placement statuses according to sensing data returned by the sensor;
fetching initial configuration information corresponding to the target placement status from the configuration information;
determining the edge position in the display interface according to the initial configuration information corresponding to the target placement status; and
instructing the display to present the edge tool at the edge position.
10 . The electronic device according to claim 8 , wherein the operation of placing the edge tool at the edge position in the display interface of the display according to the configuration information in the placement status comprises:
in response to the placement status being a first placement status among the plurality of default placement statuses, placing the edge tool at a first edge position in the display interface; and
in response to the placement status being a second placement status among the plurality of default placement statuses, placing the edge tool in a second edge position in the display interface,
wherein the first placement status differs from the second placement status and the first edge position differs from the second edge position.
11 . The electronic device according to claim 10 , wherein while being in the first placement status, the electronic device is operated in a vertical mode and while being in the second placement status, the electronic device is operated in a horizontal mode or a full-screen mode.
12 . The electronic device according to claim 10 , wherein the processor is further configured to:
receive a first user operation in the first placement status;
updating the configuration information to adjust first initial configuration information of the edge tool in the first placement status according to the first user operation;
receive a second user operation in the second placement status; and
updating the configuration information to adjust second initial configuration information of the edge tool in the second placement status according to the second user operation.
13 . The electronic device according to claim 8 , wherein the operation of placing the edge tool at the edge position in the display interface of the display according to the configuration information in the placement status further comprises:
detecting the application running in the foreground of the electronic device in the placement status;
determining the edge position according to the application; and
placing the edge tool at the adjusted edge position in the display interface.
14 . The electronic device according to claim 13 , wherein the operation of determining the edge position through the processor according to the application comprises:
in response to the application running in the foreground of the electronic device switching from a first application to a second application, relocating the edge position from a third edge position to a fourth edge position,
wherein the first application differs from the second application and the third edge position differs from the fourth edge position.