Terminal immersive status bar configuration method and device, equipment and storage medium

By determining the version of the terminal application and the browser environment, and adjusting the status bar based on preset visual rules, the problem of inconsistent Webview effects between different application products is solved, achieving a unified immersive status bar configuration, improving user experience and reducing adaptation costs.

CN115373728BActive Publication Date: 2026-04-07KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-09
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing technologies lack a universal solution for adapting immersive status bars to terminal applications, resulting in inconsistent Webview effects across different application products. Users need to adapt to different visual effects when using multiple application products in a short period of time, and the cost of modifying existing application products is relatively high.

Method used

This paper provides a method for configuring an immersive status bar on a terminal. By obtaining the version of the terminal application and the browser environment, it determines whether immersive status bar configuration is supported, and adjusts the status bar based on preset visual rules to achieve a unified immersive status bar visual effect.

Benefits of technology

This allows end users to use multiple applications in a short period of time without having to adapt to different visual effects, improving user comfort, reducing the workload of adapting each application individually, and providing a high-quality visual and interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115373728B_ABST
    Figure CN115373728B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, device, and storage medium for configuring an immersive status bar on a terminal. The method includes: acquiring a terminal application; determining whether the application version supports immersive status bar configuration; if the application version supports immersive status bar configuration, determining whether the application's browser supports immersive status bar configuration; and if the application's browser supports immersive status bar configuration, adjusting the application's status bar based on preset visual rules. The immersive status bar configuration method provided by this application completes the adaptation of the immersive status bar when both the application environment and the browser environment support immersive status bar configuration, providing terminal users with a high-quality visual and interactive experience. The universal preset visual rules provide a quick upgrade solution for applications already running online, reducing the workload of individual adaptations.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a terminal immersive status bar configuration method and device, equipment and storage medium. BACKGROUND

[0002] Good application products cannot be separated from good visual experience and interactive experience. With the continuous launch of new terminal products by various terminal manufacturers, screen styles such as notch screen, drop screen, and punch screen are emerging in an endless stream. Application product manufacturers are increasingly committed to creating more immersive visual experiences.

[0003] However, the Webview of most application products on the market is currently configured based on specific device models and operating systems, lacking universal adaptability. The Webview effects are not uniform between different application products, and users often need to adapt to different visual effects when using multiple application products at the same time for a short period of time. Moreover, the cost of modifying existing application products is relatively high. Therefore, there is a lack of a universal terminal application immersive status bar adaptation scheme in the prior art that can provide uniform status bar visual effects. SUMMARY

[0004] To solve the above problems, the embodiments of the present application provide a terminal immersive status bar configuration method, device, equipment and storage medium, and provide a universal terminal application immersive status bar adaptation scheme, thereby unifying the visual effects of the immersive status bar.

[0005] The embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a terminal immersive status bar configuration method is provided, which includes:

[0007] Obtaining a terminal application program, and determining whether the version of the application program supports immersive status bar configuration;

[0008] If the version of the application program supports immersive status bar configuration, determining whether the browser of the application program supports immersive status bar configuration;

[0009] If the browser of the application program supports immersive status bar configuration, adjusting the status bar of the application program based on preset visual rules.

[0010] In a second aspect, a terminal immersive status bar configuration device is provided, which includes:

[0011] A program environment determination unit is configured to obtain an application program and determine whether the version of the application program supports immersive status bar configuration;

[0012] A browser environment determination unit is configured to determine whether the browser of the application program supports immersive status bar configuration;

[0013] an adjusting unit configured to adjust the status bar of the application based on a preset visual rule.

[0014] In a third aspect, an embodiment of the present application further provides a computer device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the immersive status bar configuration method of the terminal when executing the computer program.

[0015] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the immersive status bar configuration method of the terminal when being instructed by a processor.

[0016] The above at least one technical scheme adopted by the embodiment of the present application can achieve the following beneficial effects:

[0017] The immersive status bar configuration method of the terminal provided by the present application comprises the following steps: obtaining an application program of a terminal, judging whether a version of the application program supports immersive status bar configuration, judging whether a browser of the application program supports immersive status bar configuration if the version of the application program supports immersive status bar configuration, and adjusting a status bar of the application program based on a preset visual rule if the browser of the application program supports immersive status bar configuration. The immersive status bar configuration method of the terminal provided by the present application can complete the adaptation of the immersive status bar when the program environment and the browser environment both support immersive status bar configuration, thereby providing high-quality visual and interactive experience for the terminal user. The unified adaptation design specification makes the user no longer need to adapt to different visual effects when using multiple application programs at the same time in a short time, thereby improving the comfort of the user. The universal preset visual rule provides a quick upgrade scheme for the application programs that have been running online, thereby reducing the workload of individual adaptation. BRIEF DESCRIPTION OF DRAWINGS

[0018] The accompanying drawings, which are included to provide a further understanding of the present application, form a part of the present application and illustrate the illustrative embodiments of the present application and the explanation of the present application, and do not constitute improper limitations on the present application. In the drawings:

[0019] Figure 1 FIG. 1 shows an application environment schematic diagram of the immersive status bar configuration method of the terminal according to one embodiment of the present application;

[0020] Figure 2 FIG. 2 shows a flow schematic diagram of the immersive status bar configuration method of the terminal according to one embodiment of the present application;

[0021] Figure 3A schematic diagram showing adjustment of a status bar of an application based on preset visual rules according to an embodiment of the present application is shown;

[0022] Figure 4 A display effect diagram showing adjustment of a status bar of an application based on preset visual rules according to an embodiment of the present application is shown;

[0023] Figure 5 A flowchart showing a method of configuring an immersive status bar of a terminal according to another embodiment of the present application is shown;

[0024] Figure 6 A structural diagram showing a configuration device of an immersive status bar of a terminal according to an embodiment of the present application is shown;

[0025] Figure 7 A structural diagram showing a computer device according to an embodiment of the present application is shown;

[0026] Figure 8 A structural diagram showing a computer device according to another embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described below in detail with reference to the embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0028] The technical solutions provided by the embodiments of the present application will be described in detail below with reference to the drawings.

[0029] The method of configuring an immersive status bar of a terminal provided by the embodiments of the present application can be applied in, for example, Figure 1In an environment shown in FIG. 1, a terminal communicates with a server through a network. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and other devices with display screens and input devices. The server can be implemented by a single server or a server cluster composed of multiple servers. The adjustment effect of the immersive status bar is displayed on the terminal, and the user can view the adjusted status bar effect of the application on the terminal. The server obtains the terminal application, judges whether the version of the application supports the immersive status bar configuration, if the version of the application supports the immersive status bar configuration, the server continues to judge whether the browser of the application supports the immersive status bar configuration, if the browser of the application supports the immersive status bar configuration, the server adjusts the status bar of the application based on the preset visual rule. In this application, the server completes the adaptation of the immersive status bar when the program environment and the browser environment both support the immersive status bar configuration, and provides the terminal user with high-quality visual and interactive experience; the unified adaptation design specification makes the user no longer need to adapt to different visual effects when using multiple applications at the same time for a short time, improving the comfort of the user; the universal preset visual rule provides a quick upgrade scheme for the application running online, reducing the workload of individual adaptation. The application will be described in detail below through specific embodiments.

[0030] The status bar is a row at the top of the intelligent terminal (such as a mobile phone) for displaying time, power, and other information. Taking a mobile phone as an example, the appearance of the mobile phone has various forms such as a notch screen, a water drop screen, a punch hole screen, and a full screen, so the height of the status bar of different mobile phones is different. Immersion means that the head of the application and the status bar of the mobile phone are combined into one. In order to make the user obtain more unified and more comfortable visual effects, the terminal needs to be configured with an immersive status bar to improve the visual comfort of the user. In order to configure the immersive status bar, it is necessary to judge whether the program environment and the browser environment of the application support the immersive status bar configuration, and only when the program environment and the browser environment both support the immersive status bar configuration, the status bar is adjusted based on the preset visual rule to obtain the immersive effect; when the program environment and / or the browser environment do not support the immersive status bar configuration, the original non-immersive scheme of the application is still maintained.

[0031] Figure 2 An immersive status bar configuration method of a terminal is shown in an embodiment of the application. According to Figure 2 As shown in FIG. 2, the method includes steps S210-S230:

[0032] Step S210, obtaining a terminal application, and judging whether the version of the application supports the immersive status bar configuration.

[0033] The server obtains the application program of the terminal based on the network connection with the terminal, so as to determine whether the program environment supports the immersive status bar configuration.

[0034] Generally, for some applications that have been running online, it can be determined whether the immersive status bar configuration can be supported by the version. The server determines the version by obtaining the program information of the application program of the terminal, so as to determine whether the immersive status bar configuration can be supported. The server can but is not limited to determine whether the immersive status bar configuration can be supported by obtaining the user agent (UA) information, version number and other information of the application program.

[0035] In step S220, if the version of the application program supports the immersive status bar configuration, it is determined whether the browser of the application program supports the immersive status bar configuration.

[0036] If the program environment does not support the immersive status bar configuration, the server cannot adjust the status bar of the application program. The server can only keep the original non-immersive solution of the application program and push the terminal for display.

[0037] If the program environment supports the immersive status bar configuration, the server continues to determine whether the browser of the application program supports the immersive status bar configuration.

[0038] Even if the program environment can support the immersive status bar configuration, the browser environment can limit whether the server can adjust the status bar. Therefore, the server can but is not limited to determine whether the immersive status bar configuration can be supported by obtaining the uniform resource locator (URL) parameters and other information of the browser.

[0039] In step S230, if the browser of the application program supports the immersive status bar configuration, the status bar of the application program is adjusted based on the preset visual rule.

[0040] If the browser environment does not support the immersive status bar configuration, the server cannot adjust the status bar of the application program. The server can only keep the original non-immersive solution of the application program and push the terminal for display.

[0041] If the browser environment supports the immersive status bar configuration, the server adjusts the status bar of the application program based on the preset visual rule, and pushes the adjustment effect to the terminal for display.

[0042] When both the application environment and the browser environment support immersive status bar configuration, the server can adjust the status bar effect based on preset visual rules. These preset visual rules provide a unified adaptation design specification. Through these rules, the server can change the application's status bar height, add new components, and configure custom colors or image backgrounds for new components, thereby giving the status bar displayed on the terminal a better immersive visual effect.

[0043] from Figure 2 As shown in the method, the immersive status bar configuration method for terminals provided in this application obtains the terminal application, determines whether the application version supports immersive status bar configuration, and if the application version supports immersive status bar configuration, determines whether the application's browser supports immersive status bar configuration. If the application's browser supports immersive status bar configuration, the application's status bar is adjusted based on preset visual rules. The immersive status bar configuration method for terminals provided in this application completes the adaptation of the immersive status bar when both the application environment and the browser environment support immersive status bar configuration, providing terminal users with a high-quality visual and interactive experience. The unified adaptation design specification eliminates the need for users to adapt to different visual effects when using multiple applications simultaneously in a short period, improving user comfort. The universal preset visual rules provide a quick upgrade solution for applications already running online, reducing the workload of individual adaptations.

[0044] In some embodiments of this application, in the above method, obtaining the terminal application and determining whether the application version supports immersive status bar configuration includes: obtaining the user agent information of the application and determining whether the user agent information contains a convention identifier; if the user agent information contains a convention identifier, then obtaining the version number of the application and determining whether the version number of the application supports immersive status bar configuration; if the user agent information does not contain a convention identifier, then determining that the application does not support immersive status bar configuration.

[0045] User-Agent (UA) information is part of the HTTP (Hypertext Transfer) protocol and is a component of the header field. UA information can provide core information such as application details and operating system details. For applications already running online, if the application can provide immersive status bar configuration capabilities, its UA information will include a pre-defined identifier. This identifier indicates that the application supports immersive status bar configuration. The server obtains the UA information, parses it, and determines whether it contains the pre-defined identifier, thus enabling it to determine whether the application provides immersive status bar configuration capabilities.

[0046] If the UA information does not contain a predefined identifier, the application environment does not support immersive status bar configuration, and the server cannot adjust the status bar for the application. The server can only maintain the application's original non-immersive solution for display on the terminal.

[0047] If the UA information contains a convention identifier, the server needs to further obtain the application's version number to determine whether the application's version number supports immersive status bar configuration.

[0048] In some embodiments of this application, determining whether the application version number supports immersive status bar configuration in the above method includes: matching the version number in a database; when the version number is successfully matched in the database, determining that the version of the terminal application supports immersive status bar configuration; when the version number fails to match in the database, determining that the version of the terminal application does not support immersive status bar configuration.

[0049] The server-side database pre-stores a dataset of application version numbers that support immersive status bar configurations. After obtaining the application's version number, the server matches it against the version number dataset in the database. The application's User Agent (UA) information typically includes the version number; therefore, the server can parse and retrieve the application's version number based on the already obtained UA information. Alternatively, the server can directly obtain the application's version number through other means.

[0050] If the application's version number is not matched in the version number dataset in the database, the application environment does not support immersive status bar configuration, and the server cannot adjust the application's status bar. The server can only maintain the application's original non-immersive solution for display on the terminal.

[0051] If the application's version number is matched in the version number dataset in the database, then the application environment supports immersive status bar configuration. The server needs to further determine whether the application's browser environment supports immersive status bar configuration.

[0052] The above-mentioned technical solution of this application first determines whether the application provides immersive status bar configuration capability by obtaining UA information, and then further determines whether the application version supports immersive status bar configuration by using the version number, thereby determining that the program environment supports the server to perform immersive status bar configuration, which improves the accuracy of program environment judgment and reduces the computing power pressure on the server.

[0053] In some embodiments of this application, in the above method, determining whether the application's browser supports immersive status bar configuration includes: obtaining the browser's Uniform Resource Locator (URL) parameters, determining whether the browser automatically enables immersive status bar configuration based on the URL parameters; if the browser automatically enables immersive status bar configuration, then determining that the browser supports immersive status bar configuration; if the browser does not automatically enable immersive status bar configuration, then pushing an immersive status bar enable option, and in response to the confirmation result of the immersive status bar enable option, determining whether the browser manually enables immersive status bar configuration.

[0054] Once it's confirmed that the application environment supports immersive status bar configuration, the server also needs to determine whether the browser environment supports it. Generally, browsers created using HBuilder or similar tools may not automatically enable immersive status bar configuration by default. Therefore, the server needs to first determine whether the browser automatically enables immersive status bar configuration. The server can obtain URL parameters to determine whether the browser automatically enables immersive status bar configuration.

[0055] For example, the code `[plus.navigator.islmmsersive()]` can be used to determine whether the current browser environment automatically enables the immersive status bar configuration. If the return value is `[true]`, it confirms that the browser supports the immersive status bar configuration. If the return value is `[false]`, it confirms that the browser does not automatically enable the immersive status bar configuration. In this case, the server needs to push an option to enable the immersive status bar, and in response to the confirmation result of the option to enable the immersive status bar, it determines whether the browser should manually enable the immersive status bar configuration.

[0056] In some embodiments of this application, in the above method, determining whether the browser manually enables the immersive status bar configuration includes: in response to the confirmation result of enabling the immersive status bar option, determining that the browser supports the immersive status bar configuration; in response to the confirmation result of disabling the immersive status bar option, determining that the browser does not support the immersive status bar configuration.

[0057] If the browser does not automatically enable the immersive status bar configuration, the server can further determine whether the immersive status bar configuration is manually enabled by calling the scheme. For example, the server can push a code view through the manifest.json file. The user adds a [immersed] node under [plus->statusbar] and sets its value to [true], thus confirming the immersive status bar selection option is enabled. The specific code implementation could be ["plus":{"statusbar":{"immersed":true}}]. It should be noted that the above example is only illustrative and this application is not limited to it. The server can also determine whether the browser has manually enabled the immersive status bar configuration by pushing a visual immersive status bar enable selection module, or by other means.

[0058] If the server receives confirmation that the immersive status bar is enabled, it will respond to this result and determine that the browser supports the immersive status bar configuration. At this point, the server has determined that both the application's application environment and the browser environment support the immersive status bar configuration, and will then adjust the application's status bar based on preset visual rules.

[0059] If the server receives a confirmation message indicating that the immersive status bar option is disabled, it determines that the browser does not support the immersive status bar configuration. Therefore, the server cannot adjust the status bar for the application. The server can only maintain the application's original non-immersive display and push it to the terminal for viewing.

[0060] The above-mentioned technical solution of this application first determines whether the browser automatically enables the immersive status bar configuration, and then determines whether the browser manually enables the immersive status bar configuration by manually confirming, thereby determining that the browser environment supports the server to perform immersive status bar configuration, which improves the flexibility of immersive status bar configuration.

[0061] In some embodiments of this application, before the step of adjusting the application's status bar based on preset visual rules in the above method, the method further includes: querying the application's status bar height information in the database; if the query result is empty, obtaining the application's status bar height information and storing the status bar height information in the database.

[0062] The server-side database can pre-store the status bar height information of applications that support immersive status bar configuration. After confirming that both the application environment and the browser environment support immersive status bar configuration, the server can query the application's status bar height information in the database to adjust it based on preset visual rules.

[0063] However, if the application's status bar height information is not pre-stored in the server-side database (i.e., StatusBarHeight = null), then it is necessary to retrieve the application's status bar height information by calling the scheme and then store it in the database. For example, the application's status bar height information can be obtained through the code [plus.navigator.getStatusBarHeight()]. This status bar height information is of type Number, and the unit is logical pixel value (i.e., directly usable pixel value).

[0064] Pre-writing the application's status bar height information to the cache can shorten the waiting time for subsequent calls, thereby preventing screen jitter that may be caused during the immersive status bar configuration process.

[0065] In some embodiments of this application, the above method involves adjusting the application's status bar based on preset visual rules, including: determining the adjustment height based on status bar height information and the terminal model; determining the height of newly added components and / or component backgrounds based on the application; and adjusting the application's status bar based on the adjustment height, component height, and / or component backgrounds.

[0066] Servers can use common third-party libraries to provide rapid adaptation for applications that support immersive status bar configurations. Preset visual rules can be established basic design specifications, providing a unified immersive status bar design scheme adapted to the terminal.

[0067] The server has cached the application's status bar height information. The server can determine the terminal model by parsing the application's User Agent (UA) information, or through other methods. Once the server obtains the terminal model, it can determine the terminal's screen style, such as a notch screen, waterdrop screen, or punch-hole screen. The server can then adjust the height based on preset visual rules, the status bar height information, and the terminal model. Simultaneously, the server can add corresponding components to the immersive status bar, such as a navigation bar component with a title. The server can determine the appropriate component height based on the application and / or configure custom colors or image backgrounds for the new components.

[0068] for example, Figure 3 This illustration shows a schematic diagram of how the status bar of an application is adjusted based on preset visual rules according to an embodiment of this application. Figure 3Using the iPhone as an example, this demonstrates how to adjust the status bar height and determine component height. The server caches the application's status bar height as 20px, and determines the phone has a notch screen based on the obtained device model. Preset visual rules provide a unified immersive status bar design: the top status bar height is adjusted to 44px, and the newly added navigation bar component height is 44px. Based on these preset visual rules, the server adds 24px to the application's original 20px status bar height, adjusting the total height of the application's status bar to 44px, and simultaneously providing a 44px tall navigation bar component below the added height.

[0069] The server determines the background of the new component based on the application. The server can determine the background based on factors such as the application's category and partition. The background can be a custom solid color or an image.

[0070] for example, Figure 4 The illustration shows the display effect of adjusting the status bar of an application based on preset visual rules according to one embodiment of this application. Figure 4 Taking the Ping An Health app as an example, the adjusted visual effects are demonstrated. The adjusted status bar height is 44px; a new navigation bar component, also 44px high, has been added below the adjusted status bar; to showcase the features of the Ping An Health app, the background of this navigation bar component is a custom image. The terminal displays the configured immersive status bar based on the connection with the server. When users browse the application on the terminal, the unified adaptation design eliminates the need for users to adapt to different visual effects, improving user comfort and enhancing the user's visual and interactive experience.

[0071] It is important to note that when the application environment and browser environment are determined to be unsupported by the methods described in this application, the server cannot adjust the application's status bar. The server will continue to push the application to the terminal using the original non-immersive solution. The server can still use a general-purpose third-party library to push the application to the terminal using the old non-immersive solution that does not support immersive status bar configuration. The terminal displays a non-immersive status bar based on its connection with the server, which will not be elaborated here.

[0072] Figure 5 This illustration shows a flowchart of an immersive status bar configuration method for a terminal according to another embodiment of this application, in conjunction with... Figure 5 As shown, the immersive status bar configuration method for the terminal in this embodiment includes the following steps S501 to S516.

[0073] Step S501: Obtain the user agent information of the application.

[0074] Step S502: Determine whether the user agent information contains a convention identifier; if the user agent information contains a convention identifier, proceed to step S503; if the user agent information does not contain a convention identifier, proceed to step S516.

[0075] Step S503: Obtain the application version number and match the version number in the database.

[0076] Step S504: Determine whether the application version number matches successfully in the database; if the match is successful, proceed to step S505; if the match fails, proceed to step S516.

[0077] Step S505: Obtain the browser's Uniform Resource Locator (URL) parameters.

[0078] Step S506: Determine whether the browser automatically enables the immersive status bar configuration; if the browser automatically enables the immersive status bar configuration, proceed to step S510; if the browser does not automatically enable the immersive status bar configuration, proceed to step S507.

[0079] Step S507: Push the immersive status bar enable option.

[0080] Step S508: Receive the opening confirmation result and proceed to step S510; or Step S509: Receive the closing confirmation result and proceed to step S516.

[0081] Step S510: Query the application's status bar height information from the database.

[0082] Step S511: Determine if the query result is empty; if it is empty, proceed to step S512; if it is not empty, proceed to step S513.

[0083] Step S512: Obtain the status bar height information of the application and store the status bar height information in the database.

[0084] Step S513: Determine the height adjustment based on the status bar height information and the terminal model.

[0085] Step S514: Determine the height of the new component and / or the background of the component based on the application.

[0086] Step S515: Adjust the application's status bar based on the adjusted height, component height, and / or component background.

[0087] Step S516: Maintain the original non-immersive scheme of the application.

[0088] Figure 6 This application shows a schematic diagram of the structure of an immersive status bar configuration device for a terminal according to an embodiment of the present application. Figure 6As shown, the device 600 can be deployed on a server side, and the device 600 includes:

[0089] The program environment judgment unit 601 is used to obtain the terminal application and determine whether the application version supports immersive status bar configuration.

[0090] The server obtains the terminal's application based on the network connection with the terminal, thereby determining whether the application environment supports immersive status bar configuration.

[0091] Typically, for applications already running online, their version number is sufficient to determine whether they support immersive status bar configuration. The server determines the version by obtaining the application's program information on the terminal, thus enabling it to judge whether the application supports immersive status bar configuration. The server can determine whether the application supports immersive status bar configuration by obtaining, but is not limited to, information such as the application's user agent (UA) information and version number.

[0092] Browser environment determination unit 602 is used to determine whether the application's browser supports immersive status bar configuration.

[0093] If the application environment does not support immersive status bar configuration, the server cannot adjust the status bar for the application. The server can only maintain the application's original non-immersive solution for display on the terminal.

[0094] If the application environment supports immersive status bar configuration, the server will then determine whether the application's browser supports immersive status bar configuration.

[0095] Even if the application environment supports immersive status bar configuration, the browser environment may restrict whether the server can adjust the status bar. Therefore, the server can determine whether it supports immersive status bar configuration by obtaining information such as the browser's Uniform Resource Locator (URL) parameters.

[0096] The adjustment unit 603 is used to adjust the status bar of the application based on preset visual rules.

[0097] If the browser environment does not support immersive status bar configuration, the server cannot adjust the status bar for the application. The server can only maintain the application's original non-immersive solution for display on the terminal.

[0098] If the browser environment supports immersive status bar configuration, the server adjusts the application's status bar based on preset visual rules and pushes the adjusted effect to the terminal for display.

[0099] When both the application environment and the browser environment support immersive status bar configuration, the server can adjust the status bar effect based on preset visual rules. These preset visual rules provide a unified adaptation design specification. Through these rules, the server can change the application's status bar height, add new components, and configure custom colors or image backgrounds for new components, thereby giving the status bar displayed on the terminal a better immersive visual effect.

[0100] In some embodiments of this application, in the above-described apparatus 600, the program environment determination unit 601 is specifically used to obtain the user agent information of the application and determine whether the user agent information contains a convention identifier; if the user agent information contains a convention identifier, then obtain the version number of the application and determine whether the version number of the application supports immersive status bar configuration; if the user agent information does not contain a convention identifier, then determine that the application does not support immersive status bar configuration.

[0101] In some embodiments of this application, in the above-described apparatus 600, the program environment determination unit 601 is further specifically used to match the version number in the database; when the version number is successfully matched in the database, it is determined that the version of the terminal application supports the immersive status bar configuration; when the version number fails to match in the database, it is determined that the version of the terminal application does not support the immersive status bar configuration.

[0102] In some embodiments of this application, in the aforementioned device 600, the browser environment determination unit 602 is specifically used to obtain the browser's Uniform Resource Locator (URL) parameters, and determine whether the browser automatically enables the immersive status bar configuration based on the URL parameters; if the browser automatically enables the immersive status bar configuration, then it is determined that the browser supports the immersive status bar configuration; if the browser does not automatically enable the immersive status bar configuration, then an immersive status bar enable option is pushed, and in response to the confirmation result of the immersive status bar enable option, it is determined whether the browser manually enables the immersive status bar configuration.

[0103] In some embodiments of this application, in the above-described device 600, the browser environment determination unit 602 is further specifically used to determine that the browser supports immersive status bar configuration in response to the confirmation result of enabling the immersive status bar option; and to determine that the browser does not support immersive status bar configuration in response to the confirmation result of disabling the immersive status bar option.

[0104] In some embodiments of this application, the above-mentioned device 600 further includes: a caching unit, used to query the status bar height information of the application in the database; if the query result is empty, the status bar height information of the application is obtained and stored in the database.

[0105] In some embodiments of this application, in the above-described device 600, the adjustment unit 603 is specifically used to determine the adjustment height based on the status bar height information and the terminal model; determine the height of the newly added component and / or the component background based on the application; and adjust the status bar of the application based on the adjustment height, component height, and / or component background.

[0106] It should be noted that the immersive status bar configuration device of the aforementioned terminal can implement the aforementioned immersive status bar configuration method of the terminal, which will not be elaborated further.

[0107] Figure 7 This is a schematic diagram of the structure of a computer device according to an embodiment of this application. Please refer to it. Figure 7 The computer device can be a server, and its internal structure diagram can be as follows: Figure 7 As shown. The computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile and / or volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements the functions or steps of the immersive status bar configuration method on the server side of the terminal.

[0108] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it implements the terminal-side functions or steps of the immersive status bar configuration method.

[0109] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0110] Obtain the terminal application and determine whether the application version supports immersive status bar configuration;

[0111] If the application version supports immersive status bar configuration, then determine whether the application's browser supports immersive status bar configuration.

[0112] If the application's browser supports immersive status bar configuration, the application's status bar will be adjusted based on preset visual rules.

[0113] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0114] Obtain the terminal application and determine whether the application version supports immersive status bar configuration;

[0115] If the application version supports immersive status bar configuration, then determine whether the application's browser supports immersive status bar configuration.

[0116] If the application's browser supports immersive status bar configuration, the application's status bar will be adjusted based on preset visual rules.

[0117] It should be noted that the functions or steps that can be implemented by the computer-readable storage medium or computer device described above can be referred to the relevant descriptions on the server side and terminal side in the foregoing method embodiments. To avoid repetition, they will not be described one by one here.

[0118] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0119] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0120] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A method for configuring an immersive status bar on a terminal, characterized in that, The method includes: Obtain the terminal application and determine whether the version of the application supports immersive status bar configuration; If the version of the application supports immersive status bar configuration, then determine whether the browser of the application supports immersive status bar configuration. If the browser automatically enables the immersive status bar configuration, then it is determined that the browser supports the immersive status bar configuration. If the browser does not automatically enable the immersive status bar configuration, an immersive status bar enable option is pushed. In response to the confirmation result of the immersive status bar enable option, it is determined whether the browser manually enables the immersive status bar configuration. In response to the confirmation result of enabling the immersive status bar option, it is determined that the browser supports the immersive status bar configuration. In response to the confirmation result of turning off the immersive status bar enable option, it is determined that the browser does not support the immersive status bar configuration; If the application's browser supports immersive status bar configuration, the application's status bar height information is queried from the database, and the application's status bar is adjusted based on preset visual rules. The database pre-stores the status bar height information of the application that supports immersive status bar configuration.

2. The immersive status bar configuration method for a terminal according to claim 1, characterized in that, The step of obtaining the terminal application and determining whether the application version supports immersive status bar configuration includes: Obtain the user agent information of the application and determine whether the user agent information contains a convention identifier; If the user agent information contains a convention identifier, then obtain the application version number and determine whether the application version number supports immersive status bar configuration. If the user agent information does not contain a convention identifier, then it is determined that the application does not support immersive status bar configuration.

3. The immersive status bar configuration method for a terminal according to claim 2, characterized in that, The step of determining whether the application version number supports immersive status bar configuration includes: Match the version number in the database; When the version number matches successfully in the database, it is determined that the version of the application supports immersive status bar configuration; If the version number fails to match in the database, it is determined that the application version does not support immersive status bar configuration.

4. The immersive status bar configuration method for a terminal according to claim 1, characterized in that, The step of determining whether the application's browser supports immersive status bar configuration includes: Obtain the browser's Uniform Resource Locator (URL) parameters, and determine whether the browser should automatically enable the immersive status bar configuration based on the URL parameters.

5. The immersive status bar configuration method for a terminal according to claim 1, characterized in that, Before the step of adjusting the application's status bar based on preset visual rules, the method further includes: If the query result is empty, the status bar height information of the application is obtained and stored in the database.

6. The immersive status bar configuration method for a terminal according to claim 5, characterized in that, The adjustment of the application's status bar based on preset visual rules includes: The height adjustment is determined based on the status bar height information and the terminal model; The height and / or background of the new component are determined based on the application. The application's status bar is adjusted based on the adjusted height, the component height, and / or the component background.

7. An immersive status bar configuration device for a terminal, characterized in that, The device includes: The program environment determination unit is used to obtain the terminal application and determine whether the version of the application supports immersive status bar configuration. A browser environment determination unit is used to determine whether the browser of the application supports immersive status bar configuration; The browser environment determination unit is used to push an immersive status bar enable option when the browser does not automatically enable the immersive status bar configuration, and in response to the confirmation result of the immersive status bar enable option, determine whether the browser manually enables the immersive status bar configuration. A caching unit is used to query the status bar height information of the application in a database, wherein the database pre-stores the status bar height information of the application that supports immersive status bar configuration; The adjustment unit is used to adjust the status bar of the application based on preset visual rules.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the immersive status bar configuration method for the terminal as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is instructed by the processor, it implements the steps of the immersive status bar configuration method for the terminal as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Interface display method and device and computer readable storage medium

    CN113923296A