Lines Matching refs:permissions

3 …needs to request user authorization. The permissions that must be authorized by users are user_gra…
5 The procedure for requesting user_grant permissions is as follows:
7 1. Declare the permissions required by your application in the configuration file.
10 For details about the preceding two steps, see [Declaring Permissions](declare-permissions.md).
31 …l.md#checkaccesstoken9) to check whether the user has granted specific permissions to your applica…
37 - When requesting permissions using **onWindowStageCreate()**, the application needs to wait until …
42 The following example steps you through on how to request the location permissions.
44 **Figure 1** Requesting the location permissions
48 … ohos.permission.APPROXIMATELY_LOCATION permissions. For details, see [Declaring Permissions](decl…
50 2. Check whether the user has granted the permissions.
52 …d#checkaccesstoken9) to check whether the user has already granted the permissions that your appli…
91 …he ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION permissions, or request the…
100permissions, such as the permission to access the location, Calendar, camera, or microphone, in th…
104 …When requesting permissions using **onWindowStageCreate()**, the application needs to wait until t…
116 …const permissions: Array<Permissions> = ['ohos.permission.LOCATION','ohos.permission.APPROXIMATELY…
117 …function reqPermissionsFromUser(permissions: Array<Permissions>, context: common.UIAbilityContext)…
120 atManager.requestPermissionsFromUser(context, permissions).then((data) => {
133 …console.error(`Failed to request permissions from user. Code is ${err.code}, message is ${err.mess…
140 reqPermissionsFromUser(permissions, this.context);
155 …const permissions: Array<Permissions> = ['ohos.permission.LOCATION','ohos.permission.APPROXIMATELY…
156 …function reqPermissionsFromUser(permissions: Array<Permissions>, context: common.UIAbilityContext)…
159 atManager.requestPermissionsFromUser(context, permissions).then((data) => {
172 …console.error(`Failed to request permissions from user. Code is ${err.code}, message is ${err.mess…
181 reqPermissionsFromUser(permissions, context);