CN114416265A - Interface authority display method, electronic equipment and storage medium - Google Patents
Interface authority display method, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114416265A CN114416265A CN202210093583.1A CN202210093583A CN114416265A CN 114416265 A CN114416265 A CN 114416265A CN 202210093583 A CN202210093583 A CN 202210093583A CN 114416265 A CN114416265 A CN 114416265A
- Authority
- CN
- China
- Prior art keywords
- permission
- floating layer
- application interface
- service request
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000004590 computer program Methods 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 230000008901 benefit Effects 0.000 description 6
- 238000013475 authorization Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure relates to an interface authority display method, an electronic device and a storage medium. The interface permission display method comprises the following steps: responding to a service request of the acquired target service, and determining a permission specification floating layer corresponding to the service request; and displaying the permission specification floating layer on a first application interface corresponding to the target service, and sending a service request to the equipment system so that the equipment system displays a system permission request window corresponding to the service request on the first application interface. According to the embodiment of the disclosure, the permission specification floating layer and the system permission request window can be simultaneously displayed on the first application interface of the terminal device, so that a user can acquire an authorized item based on the system permission request window and can also know the effect of the permission corresponding to the system permission request window on the application program where the first application interface is located. Therefore, the user experience can be improved, the online requirement of the application program is met, and the safety of user information is guaranteed.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an interface permission display method, an electronic device, and a storage medium.
Background
With the continuous development of internet technology, various applications can be run on electronic devices. When in use, an application program usually needs to acquire corresponding rights. Currently the rights required by applications are generally granted through system level popups. However, the system level popup can only provide items that the user wants to obtain authorization, but the role of each authority in the application is not clear, so that the user experience is poor, and the user information security is not guaranteed.
Inventing resources
In order to solve the technical problem or at least partially solve the technical problem, the present disclosure provides an interface authority display method, an electronic device, and a storage medium.
In a first aspect, the present disclosure provides an interface permission display method, including:
responding to a service request of the acquired target service, and determining a permission specification floating layer corresponding to the service request;
and displaying the permission specification floating layer on a first application interface corresponding to the target service, and sending a service request to the equipment system so that the equipment system displays a system permission request window corresponding to the service request on the first application interface.
In a second aspect, the present disclosure provides an electronic device comprising a processor and a memory, the memory for storing executable instructions that cause the processor to:
responding to a service request of the acquired target service, and determining a permission specification floating layer corresponding to the service request;
and displaying the permission specification floating layer on a first application interface corresponding to the target service, and sending a service request to the equipment system so that the equipment system displays a system permission request window corresponding to the service request on the first application interface.
In a third aspect, the present disclosure provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the interface authority display method of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
the interface permission display method, the electronic device and the storage medium of the embodiment can respond to a service request of an acquired target service, determine a permission specification floating layer corresponding to the service request, then display the permission specification floating layer on a first application interface corresponding to the target service, and send the service request to the device system, so that the device system displays a system permission request window corresponding to the service request on the first application interface. Therefore, the permission specification floating layer and the system permission request window can be simultaneously displayed on the first application interface of the terminal device, so that a user can acquire an authorized item based on the system permission request window and can also know the action of the permission corresponding to the system permission request window on the application program where the first application interface is located. Therefore, the user experience can be improved, the online requirement of the application program is met, and the safety of user information is guaranteed.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flowchart illustrating an interface permission display method according to an embodiment of the present disclosure;
FIG. 2 is an interface diagram of a first application interface provided by an embodiment of the present disclosure;
FIG. 3 is an interface diagram of another first application interface provided by an embodiment of the present disclosure;
FIG. 4 is an interface diagram of a first application interface provided by an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating another interface permission display method provided by an embodiment of the present disclosure;
FIG. 6 is an interface diagram of a second application interface provided by an embodiment of the present disclosure;
fig. 7 shows a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
With the proposal of a new policy for the application program, the user cannot be directly required to provide all authorization rights in the installation stage of the application program, and the corresponding authorization rights can be obtained only when the user uses the related functions of the application program. For example, when the navigation function of the application program is used, the position authority of the user is obtained by popping up a system level popup. For another example, when the application program is used to upload the user head portrait, the storage authority of the user is obtained by popping up the system level popup window.
However, system level popups can only provide the user with the items they wish to obtain, and the role of each privilege in the application is unclear. In view of the above drawbacks, a new policy for an application program is proposed, and specifically, when a related function of the application program is used, a pop-up system-level popup window is popped up to obtain a user right, and the user right needs to be described. However, the system level popup is generated based on the operating system of the terminal device, and the application provider cannot add a description to the user right on the system level popup. Therefore, user experience is poor, user information safety cannot be guaranteed, and a plurality of application programs cannot meet online requirements.
In order to solve the above problem, an embodiment of the present disclosure provides an interface authority display method, an electronic device, and a storage medium.
First, the interface authority display method provided by the embodiment of the present disclosure is described with reference to fig. 1 to 6.
The interface authority display method provided by the embodiment of the disclosure can be used by electronic equipment capable of providing an interface authority display function. The method can be specifically executed by the electronic device running the application program corresponding to the first application interface. The application corresponding to the first application interface may be a running application. Optionally, the first application may be an application started for the first time, or may be an application not started for the first time. The electronic device may include, but is not limited to, a mobile terminal such as a smart phone, a notebook computer, a Personal Digital Assistant (PDA), a PAD, a Portable Multimedia Player (PMP), a vehicle-mounted terminal (e.g., a car navigation terminal), a wearable device, and the like, and a stationary terminal such as a digital TV, a desktop computer, a smart home device, and the like.
Fig. 1 shows a flowchart of an interface permission display method provided by an embodiment of the present disclosure.
As shown in fig. 1, the interface right display method may include the following steps.
S110, responding to the service request of the acquired target service, and determining the permission specification floating layer corresponding to the service request.
In the embodiment of the disclosure, during the use of the application program, if the user wants to use the function of the application program, a service request of the target service may be sent to the electronic device. After the electronic device receives a service request of a target service, an authority specification floating layer corresponding to the service request can be generated, and the authority specification floating layer can be used for explaining the pop-up purpose of a system authority popup window.
In the embodiment of the present disclosure, the target service may be a service that needs to be executed on an application.
In the disclosed embodiment, the service request may be a user request for completing a target service of an application.
Taking the application program as an electronic book application as an example, the target service may be an editing service of personal data, and the service request may be a user request for obtaining a personal avatar from the storage space.
Continuing with the example of the application program being an e-book application, the target service is a reading service of the e-book, and the service request may be a user request using a telephone.
Taking the application program as an electronic book application as an example, the target service is an editing service of personal data, and the service request may be a user request using a camera.
In the embodiment of the present disclosure, the permission specification floating layer is a floating layer of permission specifications corresponding to a system permission popup window for displaying a target service.
The rights expression floating layer can be composed of rights expression keywords and rights expression contents. Specifically, the rights expression keyword may be a "rights application expression", the rights expression content may be used for the purpose of explaining the pop-up of the system rights request window, and the rights expression content may be specifically determined by a preset rights expression template and a service request.
The preset authority description template may be an authority description template corresponding to each service of the application program.
Taking an application program as an electronic book application as an example, the target service is an editing service of personal data, and the preset permission description template may be a permission description template for acquiring a personal avatar from a storage space.
Continuing to take the application program as an electronic book application as an example, the target service is a reading service of the electronic book, and the preset permission specification template may be a permission specification template of using a telephone.
Taking the application program as an electronic book application as an example, the target service is an editing service of personal data, and the preset permission specification template may be a permission specification template using a camera.
S120, displaying the permission specification floating layer on the first application interface corresponding to the target service, and sending a service request to the equipment system, so that the equipment system displays a system permission request window corresponding to the service request on the first application interface.
In the embodiment of the present disclosure, after the electronic device determines the floating layer of the rights expression, the floating layer of the rights expression may be displayed on the first application interface corresponding to the target service, and at the same time, the service request may be sent to the device system of the electronic device, so that the device system displays a system rights request window corresponding to the service request on the first application interface, and thus, the floating layer of the rights expression and the system rights request window may be simultaneously displayed on the first application interface.
In embodiments of the present disclosure, the first application interface may be a user interface being exposed on an application.
In embodiments of the present disclosure, the device system may be an operating system of the electronic device where the application program is located.
In this disclosure, the system permission request window may be a window generated by the device system and used for displaying the user permission corresponding to the service acquisition request.
The system permission request window can be composed of a permission request keyword and a permission request control.
Specifically, the permission request keyword may be determined according to a predetermined permission request template and a service request.
Specifically, the permission request control may include an allow control, a deny control, an allow control only in this use, and the like.
Taking an application program as an electronic book application as an example, a service request is a user request for acquiring a personal avatar from a storage space, a predetermined permission request template may be a permission request template for acquiring the personal avatar from the storage space, permission request keywords include "permission to use a storage control" and "access all types of files", and permission request controls include an allowance control and a denial control.
Continuing to take the application program as an electronic book application as an example, if the service request is a user request using a telephone, the predetermined permission request template may be a permission request template using the telephone, the permission request keyword includes "permission to use the telephone" and "read call state and mobile network information", and the permission request control includes an allow control and a deny control.
Taking an application program as an electronic book application as an example, if the service request is a user request for using a camera, the predetermined permission request template may be a permission request template for using the camera, the permission request keyword includes "permission to use the camera", and the permission request control includes a permission control, a rejection control, and a permission control only in this use.
In the embodiment of the present disclosure, the device system is specifically configured to determine and display a system permission request window on the first application interface based on the permission material and the permission layout corresponding to the service request.
The authority material may be page information used for generating a system authority request window.
The authority layout may be layout information of a system authority request window corresponding to the service request.
In the embodiment of the disclosure, the electronic device may display the permission specification floating layer at any position of the first application interface, and may display the system permission request window at any position of the first application interface. It should be noted that, the permission specification floating layer and the system permission request window are displayed at different positions of the first application interface, and the electronic device can simultaneously display the system permission request window and the permission specification floating layer on the first application interface, so that a user can view the permission specification floating layer while viewing the system permission request window, and therefore, the user can master the role of each permission in the application program, user experience is improved, and user information safety is further guaranteed.
Fig. 2 shows an interface schematic diagram of a first application interface provided by an embodiment of the present disclosure.
Fig. 2 corresponds to a service in which the target service is an editing service of personal details and the service request is a user request for obtaining a personal avatar from a storage space. As shown in fig. 2, the first application interface 200 includes a rights expression floating layer 201 and a system rights request window 202. The permission specification floating layer 201 may include a permission specification keyword as "permission application specification" and a permission specification content as "for importing and uploading local files including pictures, books, audio and other files"; the system permission request window 202 may include a permission request keyword of "permission to use storage space", and permission request controls of accessing all types of controls, permission controls, rejection controls, and the like.
Fig. 3 shows an interface diagram of another first application interface provided by the embodiment of the present disclosure.
Fig. 3 corresponds to a reading service in which the target service is an electronic book and the service request is a user request using a telephone. As shown in fig. 3, first application interface 300 includes a rights specification float 301 and a system rights request window 302. The permission specification floating layer 301 may include a permission specification keyword as "permission application specification" and a permission specification content as "for identifying your mobile phone device, for statistics and account security and wind control, for guaranteeing your account property security, it is recommended to open a next permission"; the system permission request window 302 may include a permission request keyword as "require telephone permission", and permission request controls as an allow control and a deny control, etc.
Fig. 4 shows an interface diagram of yet another first application interface provided by the embodiment of the present disclosure.
Fig. 4 corresponds to a reading service in which the target service is an electronic book and the service request is a user request using a telephone. As shown in fig. 4, the first application interface 400 includes a rights specification floating layer 401 and a system rights request window 402. The rights expression floating layer 401 may include a rights expression keyword as "rights expression application", and a rights expression content as "to take a picture with a camera and upload the picture when using the picture"; the system permission request window 402 may include a permission request keyword "permission to use a camera", and include a permission control when the permission request control is used, a permission control only this time, a rejection control, and the like.
In the embodiment of the disclosure, in response to a service request of an acquired target service, a permission specification floating layer corresponding to the service request can be determined, then the permission specification floating layer is displayed on a first application interface corresponding to the target service, and the service request is sent to an equipment system, so that the equipment system displays a system permission request window corresponding to the service request on the first application interface. Therefore, the permission specification floating layer and the system permission request window can be simultaneously displayed on the first application interface of the terminal device, so that a user can acquire an authorized item based on the system permission request window and can also know the action of the permission corresponding to the system permission request window on the application program where the first application interface is located. Therefore, the user experience can be improved, the online requirement of the application program is met, and the safety of user information is guaranteed.
In another embodiment of the present disclosure, a target service identifier corresponding to a service request may be analyzed first, and then an authority specification floating layer corresponding to the service request may be generated based on the target service identifier.
In some embodiments of the present disclosure, S110 may specifically include the following steps.
S1101, analyzing a target service identifier corresponding to the service request.
In the embodiment of the present disclosure, in the using process of the application program, if the electronic device receives a service request of a target service, the service request may be analyzed to obtain a target service identifier corresponding to the service request, so that the rights expression floating layer corresponding to the service request is determined by using the target service identifier.
In the embodiment of the present disclosure, the target service identifier may be a field identifier or a numerical identifier capable of indicating a specific service type.
And S1102, selecting a preset floating layer corresponding to the target service identifier from a plurality of prestored preset floating layers as an authority specification floating layer.
In this disclosure, after obtaining the target service identifier corresponding to the service request, the electronic device may obtain a plurality of pre-stored preset floating layers from the pre-stored storage area, and select a preset floating layer corresponding to the target service identifier from the plurality of preset floating layers according to the target service identifier, so as to obtain the permission specification floating layer.
In the embodiment of the present disclosure, the preset floating layer may be generated by filling the blank floating layer with the rights expression keywords and the rights expression content corresponding to each service request.
Therefore, in the embodiment of the present disclosure, a plurality of preset floating layers may be generated in advance, so that when a target service identifier is obtained, a preset floating layer corresponding to the target service identifier may be directly selected from the plurality of preset floating layers, and thus, a permission specification floating layer may be obtained.
In some embodiments of the present disclosure, S110 may specifically include the following steps.
And S1103, analyzing the target service identifier corresponding to the service request.
The specific implementation manner of S1103 is similar to that of S1101, and is not described herein again.
S1104, selecting target authority explanation content corresponding to the target service identification from a plurality of prestored authority explanation contents.
In the embodiment of the present disclosure, after obtaining the target service identifier corresponding to the service request, the electronic device may obtain a plurality of pre-stored rights expression contents from the preset storage area, and select, according to the target service identifier, the target rights expression content corresponding to the target service identifier from the plurality of rights expression contents, so as to obtain the expression content for generating the rights expression floating layer.
In the embodiment of the present disclosure, the plurality of pre-stored rights expression contents may include rights expression contents corresponding to each service of each application.
S1105, adding the target authority description content to a pre-configured blank floating layer to obtain an authority description floating layer corresponding to the service request.
In the embodiment of the present disclosure, the electronic device may obtain a preconfigured blank floating layer, and add the target permission specification content to the preconfigured blank floating layer, so that the floating layer including the target permission specification content is obtained and is used as a permission specification floating layer corresponding to the service request.
In the disclosed embodiments, the blank float may be an initialization float that does not include anything.
Therefore, in the embodiment of the present disclosure, a plurality of rights expression contents may be generated in advance and a blank floating layer may be configured in advance, so that a target rights expression content corresponding to a target service identifier is determined first, and the target rights expression content is further added to the blank floating layer, thereby obtaining the rights expression floating layer.
In conclusion, the authority specification floating layer can be directly generated according to the target service identifier; or determining the target authority description content corresponding to the target service identifier, and further generating the authority description floating layer according to the target authority description content and the blank floating layer. Therefore, the flexibility of the generation mode of the authority specification floating layer is improved.
In another embodiment of the present disclosure, an authority description floating layer may be displayed on the first application interface according to an authority description display position corresponding to the device attribute; and when the application interface is switched, the permission description floating layer corresponding to the first application interface can be hidden.
Fig. 5 is a flowchart illustrating another interface permission display method according to an embodiment of the present disclosure.
As shown in fig. 5, the interface permission display method may specifically include the following steps.
S510, responding to the service request of the acquired target service, and determining the permission specification floating layer corresponding to the service request.
S510 is similar to S110, and is not described herein.
S520, displaying the permission description floating layer on the first application interface corresponding to the target service, and sending a service request to the equipment system, so that the equipment system displays a system permission request window corresponding to the service request on the first application interface.
In this embodiment of the present disclosure, for displaying the permission specification floating layer on the first application interface corresponding to the target service in S620, the method may specifically include the following steps.
S6201, acquiring the equipment attribute of the terminal equipment corresponding to the equipment system;
s6202, acquiring an authority description display position corresponding to the equipment attribute of the terminal equipment;
and S6203, displaying the authority description floating layer on the first application interface according to the authority description display position.
Specifically, before the electronic device obtains the service request of the target service, the device attribute of the terminal device corresponding to the device system may be determined, and the permission specification display position corresponding to the device attribute of the terminal device may be determined. After the electronic device obtains the service request of the target service and determines the permission specification floating layer corresponding to the service request, the device attribute of the terminal device corresponding to the device system can be obtained, and the permission specification display position corresponding to the device attribute of the terminal device can be obtained, so that the permission specification floating layer is further displayed on the first application interface according to the permission specification display position.
The terminal device may specifically refer to an electronic device running an application program.
The device attribute may be attribute information capable of characterizing the terminal device.
Optionally, the device attribute may include a device brand of the terminal device, a hardware identifier of the terminal device, a specification of the terminal device, a model of the terminal device, and a technical parameter of the terminal device.
The permission specification display position can be a display position of the permission specification floating layer on the first application interface.
Taking the device attribute as the device brand as an example, the authority of the oppo brand terminal device is obviously displayed at the upper side of the first application interface, and the authority of the vivo brand terminal device is obviously displayed at the lower side of the first application interface.
In some embodiments of the present disclosure, for terminal devices with different device attributes, the permission description floating layer may be displayed at different positions, so that the display position of the permission description floating layer conforms to the display rule of the terminal device, and therefore, an application program that can display the permission description floating layer can meet the online requirement on any terminal device. In other embodiments of the present disclosure, positions of system permission request windows of different terminal devices are different, and by adjusting a display position of the permission specification floating layer for different terminal devices, the position of the permission specification floating layer can be prevented from overlapping with the system permission request window, so that a user can read a content specification in the permission specification floating layer while seeing the system permission request window in an application interface.
And S530, judging whether the display time of the permission specification floating layer is less than or equal to the display deadline time corresponding to the permission specification floating layer, if so, executing S540, otherwise, executing S550.
In the embodiment of the disclosure, in the process of displaying the permission specification floating layer on the first application interface of the electronic device, the display time of the permission specification floating layer and the display deadline time corresponding to the permission specification floating layer can be acquired. Then, the electronic device may determine whether the display time of the permission specification floating layer is less than or equal to the display deadline time corresponding to the permission specification floating layer, so as to determine the display state of the permission specification floating layer according to different comparison results.
In the embodiment of the present disclosure, the display time of the authority specification floating layer may be a real-time display time with the authority specification floating layer pop-up time as a starting point.
In this disclosure, the display deadline corresponding to the permission specification floating layer may be a deadline of a display period corresponding to the permission specification floating layer.
And S540, continuously displaying the authority description floating layer on the first application interface.
In the embodiment of the disclosure, if the electronic device determines that the display time of the permission specification floating layer is less than or equal to the display deadline, the permission specification floating layer may be continuously displayed on the first application interface, so that the user may continuously view the target permission specification content displayed by the permission specification floating layer.
And S550, the authority indicates that the floating layer disappears on the first application interface.
In the embodiment of the disclosure, if the electronic device determines that the display time of the permission specification floating layer is greater than the display deadline, the display state of the permission specification floating layer may be changed, so that the permission specification floating layer disappears on the first application interface, and the first application interface only displays the system permission request window.
In some embodiments, if the display time of the permission specification floating layer is longer than the display deadline, the permission specification floating layer may be adjusted from the display state to the hidden state, so that the permission specification floating layer disappears on the first application interface.
In other embodiments, if the display time of the permission specification floating layer is greater than the display deadline, the permission specification floating layer may be closed, so that the permission specification floating layer disappears on the first application interface.
Therefore, in the embodiment of the disclosure, the display period corresponding to the authority specification floating layer can be predefined, so that the display state of the authority specification floating layer is adjusted according to the display time of the authority specification floating layer and the display deadline time of the display period.
And S560, binding the permission specification floating layer with the first application interface.
In the embodiment of the disclosure, while the electronic device displays the permission specification floating layer on the first application interface corresponding to the target service, the permission specification floating layer may be bound with the first application interface, so that the permission specification floating layer is only displayed on the first application interface and is not displayed on other application interfaces.
Specifically, the electronic device may bind the permission specification floating layer with the interface identifier of the first application interface, so that the permission specification floating layer is bound with the first application interface.
S570, hiding the permission explanation floating layer when the device interface is detected to jump from the first application interface to the second application interface.
In the embodiment of the disclosure, in the process of displaying the first application interface, the electronic device may monitor in real time whether the device interface jumps from the first application interface to the second application interface, and if it is detected that the device interface jumps from the first application interface to the second application interface, the permission specification floating layer is hidden, so that the permission specification floating layer is not displayed on the second application interface.
In the embodiment of the present disclosure, the device interface may be an interface presented by the terminal device to the user.
Specifically, in the process of running the application program by the electronic device, the application program may determine whether the current state value satisfies a preset value, and if it is determined that the current state value satisfies the preset value, a page jump request is generated. The electronic device can respond to the page jump request, jump to a second application interface from the first application interface, and hide the permission specification floating layer corresponding to the first application interface, so that the permission specification floating layer is not displayed on the second application interface, otherwise, continue to display the first application interface, and the first application interface displays the permission specification floating layer and the system permission request window.
Taking the application program as an electronic book application as an example again, the first application interface may be a bookshelf page, the bookshelf page shows the permission specification floating layer, and the second application interface may be a welfare page. If the reading time of the user in the electronic book application reaches the preset time, the electronic equipment can automatically jump from the bookshelf page to the benefit page, and the permission description floating layer is hidden, so that the permission description floating layer is not displayed on the benefit page.
Fig. 6 shows an interface schematic diagram of a second application interface provided by the embodiment of the present disclosure.
As shown in fig. 3 and 6, the first application interface 300 shown in fig. 3 is a bookshelf page, and the second application interface 600 shown in fig. 6 is a welfare page. Specifically, in the process that the electronic device runs the electronic book application, if the reading duration of the electronic book application reaches the preset duration, the electronic book application may automatically generate an interface switching request, so that the electronic device generates an interface jump in response to the interface switching request, the bookshelf page shown in fig. 3 jumps to the benefit page shown in fig. 6, and the permission specification floating layer on the bookshelf page is closed, so that the permission specification floating layer is not displayed on the benefit page.
Therefore, in the embodiment of the disclosure, when the permission specification floating layer corresponding to the service request is determined, the permission specification floating layer is bound with the first application interface, so that when it is detected that the device interface jumps from the first application interface to the second application interface, the permission specification floating layer corresponding to the first application interface can be hidden, and the permission specification floating layer is not displayed on the second application interface. Therefore, when the page is switched, the permission description floating layer corresponding to the page before switching is prevented from being displayed on the switched page, so that a user is not confused by displaying the permission description floating layer corresponding to the page before switching on the switched page, and the use experience of the user on the application program is improved.
Fig. 7 shows a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
The electronic equipment provided by the embodiment of the disclosure can comprise electronic equipment supporting an electronic book reading function. The electronic device may include, but is not limited to, a mobile terminal such as a smart phone, a notebook computer, a Personal Digital Assistant (PDA), a PAD, a Portable Multimedia Player (PMP), a vehicle mounted terminal (e.g., a car navigation terminal), a wearable device, etc., and a stationary terminal such as a digital TV, a desktop computer, a smart home device, etc.
It should be noted that the electronic device 700 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present disclosure.
The electronic device 700 conventionally includes a processor 710 and a computer program product or computer-readable medium in the form of a memory 720. The memory 720 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 720 has a storage space 721 for executable instructions (or program code) 7211 for performing any of the method steps in the application jump method described above. For example, the memory space 721 for executable instructions may include respective executable instructions 7211 for implementing various steps in the above application jump method, respectively. The executable instructions may be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such computer program products are typically portable or fixed storage units. The memory unit may have memory segments or memory spaces or the like arranged similarly to the memory 720 in the electronic device 700 of fig. 7. The executable instructions may be compressed, for example, in a suitable form. In general, the memory unit comprises executable instructions for performing the steps of the application jump method according to the present disclosure, i.e. code that is readable by a processor, such as the processor 710 for example, which when run by the electronic device 700 causes the electronic device 700 to perform the individual steps of the application jump method described above.
Of course, for simplicity, only some of the components of the electronic device 700 relevant to the present disclosure are shown in fig. 7, and components such as buses, input/output interfaces, input devices, and output devices, etc. are omitted. In addition, electronic device 700 may include any other suitable components depending on the particular application.
The disclosed embodiments also provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the processor executes the application jump method provided by the disclosed embodiments.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical link having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
In embodiments of the present disclosure, program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be linked to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the link may be made to an external computer (for example, through the Internet using an Internet service provider).
The application discloses:
A1. an interface permission display method comprises the following steps:
responding to a service request of the acquired target service, and determining a permission specification floating layer corresponding to the service request;
and displaying the permission specification floating layer on a first application interface corresponding to the target service, and sending a service request to the equipment system so that the equipment system displays a system permission request window corresponding to the service request on the first application interface.
A2. The method according to a1, wherein determining an authority specification floating layer corresponding to a service request in response to the service request for acquiring the target service includes:
analyzing a target service identifier corresponding to the service request;
and selecting a preset floating layer corresponding to the target service identifier from a plurality of prestored preset floating layers as an authority specification floating layer.
A3. The method according to a2, wherein determining an authority specification floating layer corresponding to a service request in response to the service request for acquiring the target service includes:
analyzing a target service identifier corresponding to the service request;
selecting target authority description content corresponding to the target service identifier from a plurality of prestored authority description contents;
and adding the target permission specification content into a pre-configured blank floating layer to obtain a permission specification floating layer corresponding to the service request.
A4. The method of a1, wherein the permission specification floating layer is displayed in a different location of the first application interface than the system permission request window.
A5. The method according to a1, wherein displaying the floating layer of rights expression on the first application interface corresponding to the target service comprises:
acquiring the equipment attribute of the terminal equipment corresponding to the equipment system;
acquiring a permission specification display position corresponding to the equipment attribute of the terminal equipment;
and displaying the authority description floating layer on the first application interface according to the authority description display position.
A6. The method according to a1, wherein, in displaying the rights expression floating layer on the first application interface corresponding to the target service, the method further comprises:
judging whether the display time of the authority specification floating layer is less than or equal to the display deadline time corresponding to the authority specification floating layer;
and if the display time of the permission specification floating layer is less than or equal to the display deadline time, continuing to display the permission specification floating layer on the first application interface.
A7. The method of a6, wherein the method further comprises:
and if the permission shows that the display time of the floating layer is greater than the display deadline, the permission shows that the floating layer disappears on the first application interface.
A8. The method according to a1, wherein, after determining the permission specification floating layer corresponding to the service request in response to the service request for acquiring the target service, the method further includes:
and binding the permission specification floating layer with the first application interface.
A9. The method according to A8, wherein, in displaying the rights expression floating layer on the first application interface corresponding to the target service, the method further comprises:
and hiding the permission explanation floating layer when the device interface is detected to jump from the first application interface to the second application interface.
B10. An electronic device, comprising a processor and a memory, the memory to store executable instructions that cause the processor to:
responding to a service request of the acquired target service, and determining a permission specification floating layer corresponding to the service request;
and displaying the permission specification floating layer on a first application interface corresponding to the target service, and sending a service request to the equipment system so that the equipment system displays a system permission request window corresponding to the service request on the first application interface.
B11. The electronic device according to B10, wherein, when the processor executes a service request in response to acquiring the target service and determines that the permission specification floating layer corresponding to the service request corresponds to, the executable instructions specifically cause the processor to execute:
analyzing a target service identifier corresponding to the service request;
and selecting a preset floating layer corresponding to the target service identifier from a plurality of prestored preset floating layers as an authority specification floating layer.
B12. The electronic device according to B10, wherein, when the processor executes a service request in response to acquiring the target service and determines that the permission specification floating layer corresponding to the service request corresponds to, the executable instructions specifically cause the processor to execute:
analyzing a target service identifier corresponding to the service request;
selecting target authority description content corresponding to the target service identifier from a plurality of prestored authority description contents;
and adding the target permission specification content into a pre-configured blank floating layer to obtain a permission specification floating layer corresponding to the service request.
B13. The electronic device of B10, wherein the permission specification floating layer is displayed at a different location of the first application interface than the system permission request window.
B14. The electronic device according to B10, wherein, when the processor executes displaying the rights expression floating layer on the first application interface corresponding to the target service, the executable instructions specifically cause the processor to perform:
acquiring the equipment attribute of the terminal equipment corresponding to the equipment system;
acquiring a permission specification display position corresponding to the equipment attribute of the terminal equipment;
and displaying the authority description floating layer on the first application interface according to the authority description display position.
B15. The electronic device according to B10, wherein, in the process of the processor executing the floating layer of the rights expression displayed on the first application interface corresponding to the target service, the executable instructions specifically cause the processor to perform:
judging whether the display time of the authority specification floating layer is less than or equal to the display deadline time corresponding to the authority specification floating layer;
and if the display time of the permission specification floating layer is less than or equal to the display deadline time, continuing to display the permission specification floating layer on the first application interface.
B16. The electronic device of B15, wherein the executable instructions further cause the processor to:
and if the permission shows that the display time of the floating layer is greater than the display deadline, the permission shows that the floating layer disappears on the first application interface.
B17. The electronic device according to B10, wherein, after the processor executes the service request in response to acquiring the target service and determines the floating layer of the right specification corresponding to the service request, the executable instructions specifically cause the processor to execute:
and binding the permission specification floating layer with the first application interface.
B18. The electronic device according to B17, wherein, in the process of the processor executing the floating layer of the rights expression displayed on the first application interface corresponding to the target service, the executable instructions specifically cause the processor to perform:
and hiding the permission explanation floating layer when the device interface is detected to jump from the first application interface to the second application interface.
C19. A computer-readable storage medium in which a computer program is stored, which, when executed by a processor, causes the processor to implement the interface right display method of any one of the above-mentioned a1-a 9.
Various component embodiments of the disclosure may be implemented in whole or in part in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in an electronic device according to embodiments of the present disclosure. The present disclosure may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present disclosure may be stored on a computer-readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the books.
Claims (10)
1. An interface permission display method, characterized in that the method comprises:
responding to a service request of an acquired target service, and determining a permission specification floating layer corresponding to the service request;
and displaying the permission specification floating layer on a first application interface corresponding to the target service, and sending the service request to an equipment system so that the equipment system displays a system permission request window corresponding to the service request on the first application interface.
2. The method according to claim 1, wherein the determining, in response to the service request for acquiring the target service, the floating layer of the right specification corresponding to the service request comprises:
analyzing a target service identifier corresponding to the service request;
and selecting a preset floating layer corresponding to the target service identifier from a plurality of prestored preset floating layers as an authority specification floating layer.
3. The method according to claim 1, wherein the determining, in response to the service request for acquiring the target service, the floating layer of the right specification corresponding to the service request comprises:
analyzing a target service identifier corresponding to the service request;
selecting target authority explanation contents corresponding to the target service identifier from a plurality of prestored authority explanation contents;
and adding the target permission specification content to a pre-configured blank floating layer to obtain a permission specification floating layer corresponding to the service request.
4. The method of claim 1, wherein the displaying the permission specification floating layer on the first application interface corresponding to the target service comprises:
acquiring the equipment attribute of the terminal equipment corresponding to the equipment system;
acquiring a permission specification display position corresponding to the equipment attribute of the terminal equipment;
and displaying the permission specification floating layer on the first application interface according to the permission specification display position.
5. The method according to claim 1, wherein in the process of displaying the rights expression floating layer on the first application interface corresponding to the target service, the method further comprises:
judging whether the display time of the authority specification floating layer is less than or equal to the display deadline time corresponding to the authority specification floating layer;
and if the display time of the permission specification floating layer is less than or equal to the display deadline time, continuing to display the permission specification floating layer on the first application interface.
6. The method of claim 5, further comprising:
and if the display time of the permission description floating layer is greater than the display deadline time, the permission description floating layer disappears on the first application interface.
7. The method according to claim 1, wherein after the determining, in response to the service request for acquiring the target service, the floating layer of the right specification corresponding to the service request, the method further comprises:
and binding the permission specification floating layer with the first application interface.
8. The method according to claim 7, wherein in the process of displaying the rights expression floating layer on the first application interface corresponding to the target service, the method further comprises:
and hiding the permission specification floating layer when the device interface is detected to jump from the first application interface to the second application interface.
9. An electronic device comprising a processor and a memory, the memory to store executable instructions that cause the processor to:
responding to a service request of an acquired target service, and determining a permission specification floating layer corresponding to the service request;
and displaying the permission specification floating layer on a first application interface corresponding to the target service, and sending the service request to an equipment system so that the equipment system displays a system permission request window corresponding to the service request on the first application interface.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, causes the processor to implement the interface rights display method according to any one of the preceding claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210093583.1A CN114416265A (en) | 2022-01-26 | 2022-01-26 | Interface authority display method, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210093583.1A CN114416265A (en) | 2022-01-26 | 2022-01-26 | Interface authority display method, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114416265A true CN114416265A (en) | 2022-04-29 |
Family
ID=81278004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210093583.1A Pending CN114416265A (en) | 2022-01-26 | 2022-01-26 | Interface authority display method, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114416265A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116150794A (en) * | 2023-04-14 | 2023-05-23 | 深圳依时货拉拉科技有限公司 | Authority processing method and device, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108133124A (en) * | 2017-12-29 | 2018-06-08 | 上海连尚网络科技有限公司 | One kind obtains system permission method and apparatus for application program |
WO2019095861A1 (en) * | 2017-11-17 | 2019-05-23 | 阿里巴巴集团控股有限公司 | Data processing method and apparatus, terminal device and server |
CN110209463A (en) * | 2019-06-19 | 2019-09-06 | 郑州悉知信息科技股份有限公司 | Pop-up shows method and apparatus |
CN112131556A (en) * | 2020-09-29 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Authority control method, device, equipment and storage medium |
CN112199255A (en) * | 2020-10-15 | 2021-01-08 | Oppo广东移动通信有限公司 | Authority use monitoring method, device, equipment and storage medium |
CN112817498A (en) * | 2021-02-23 | 2021-05-18 | Oppo广东移动通信有限公司 | Application authority management method, device, storage medium and terminal |
CN113343304A (en) * | 2021-06-29 | 2021-09-03 | 挂号网(杭州)科技有限公司 | Permission application method and device, electronic equipment and storage medium |
CN113591106A (en) * | 2021-06-30 | 2021-11-02 | 荣耀终端有限公司 | Application authorization method and device and terminal equipment |
CN113805763A (en) * | 2020-06-12 | 2021-12-17 | 北京小米移动软件有限公司 | Authority authorization method, device and storage medium |
CN113805978A (en) * | 2020-06-12 | 2021-12-17 | 北京小米移动软件有限公司 | Authority display method, device and storage medium |
-
2022
- 2022-01-26 CN CN202210093583.1A patent/CN114416265A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019095861A1 (en) * | 2017-11-17 | 2019-05-23 | 阿里巴巴集团控股有限公司 | Data processing method and apparatus, terminal device and server |
CN108133124A (en) * | 2017-12-29 | 2018-06-08 | 上海连尚网络科技有限公司 | One kind obtains system permission method and apparatus for application program |
CN110209463A (en) * | 2019-06-19 | 2019-09-06 | 郑州悉知信息科技股份有限公司 | Pop-up shows method and apparatus |
CN113805763A (en) * | 2020-06-12 | 2021-12-17 | 北京小米移动软件有限公司 | Authority authorization method, device and storage medium |
CN113805978A (en) * | 2020-06-12 | 2021-12-17 | 北京小米移动软件有限公司 | Authority display method, device and storage medium |
CN112131556A (en) * | 2020-09-29 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Authority control method, device, equipment and storage medium |
CN112199255A (en) * | 2020-10-15 | 2021-01-08 | Oppo广东移动通信有限公司 | Authority use monitoring method, device, equipment and storage medium |
CN112817498A (en) * | 2021-02-23 | 2021-05-18 | Oppo广东移动通信有限公司 | Application authority management method, device, storage medium and terminal |
CN113343304A (en) * | 2021-06-29 | 2021-09-03 | 挂号网(杭州)科技有限公司 | Permission application method and device, electronic equipment and storage medium |
CN113591106A (en) * | 2021-06-30 | 2021-11-02 | 荣耀终端有限公司 | Application authorization method and device and terminal equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116150794A (en) * | 2023-04-14 | 2023-05-23 | 深圳依时货拉拉科技有限公司 | Authority processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107566914B (en) | Bullet screen display control method, electronic equipment and storage medium | |
US20140317543A1 (en) | Apparatus and method for controlling display of a terminal icon | |
US20090064314A1 (en) | Method and Apparatus for Implementing Parental Controls for a Portable Media Device | |
CN109976620A (en) | List items show determination method, apparatus, equipment and the storage medium of attribute information | |
GB2507036A (en) | Content prioritization | |
CN106796510A (en) | For presenting and equipment, method and the graphic user interface of application be installed | |
US20200364099A1 (en) | Task-Related Sorting, Application Discovery, and Unified Bookmarking for Application Managers | |
CN107770146B (en) | User data authority control method and device | |
US9355227B2 (en) | Dynamic document display personalization implemented in a digital rights management system | |
CN109117208A (en) | Information sharing method, device, user terminal and readable storage medium storing program for executing | |
CN114416265A (en) | Interface authority display method, electronic equipment and storage medium | |
CN107632751B (en) | Information display method and device | |
CN114238818A (en) | Page jump method, electronic equipment and storage medium | |
EP2963856A1 (en) | User authentication method and device and terminal | |
CN113792328A (en) | Authority management method, user interface and electronic equipment | |
CN114168220A (en) | Data processing and interaction method, device, equipment and storage medium of application program | |
CN112492399B (en) | Information display method and device and electronic equipment | |
CN113792329A (en) | Permission optimization method and related equipment | |
CN107526960B (en) | System and method for protecting mobile contact information | |
CN110798521B (en) | File sharing method and device, electronic equipment and storage medium | |
CN112528249A (en) | Authority management method and device suitable for network security management platform | |
US20230216858A1 (en) | Dynamic permissions interface | |
CN115033920A (en) | Object access method, device, electronic equipment, storage medium and program product | |
CN115130975A (en) | Schedule creating method and device | |
US20150269634A1 (en) | System and method for publishing personalized book collections |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |