Related questions
Question 206 - H14-231_V1.0 discussion
A developer is writing a piece of code to control the access rights of an Ability
Apps with the ohos.permission.CAMERA permission can access this ability. The relevant code completed by the developer in config.json is as follows:
'abilities': [
{
'name': '. MainAbility',
'description':
'Sstring:description_main_abi1ity',
'icon' : '$media:hiworld.png',
'label': 'HiCamera',
'1aunchType': 'standard',
'orientation': 'portrait',
'visible': false,______________________________
} ]
Which of the following should the developer add to the horizontal line?
A.
'permissions': [ 'ohos.permission.CAMERA' ]
B.
'defPermissions':[ {'ohos.permission.CAMERA'}]
C.
'reqPermissions': [ { 'ohos.permission.CAMERA''}]
D.
'permissions': [ 'ohos.permission.LOCATION']
Your answer:
0 comments
Sorted by
Leave a comment first