ExamGecko
Question list
Search
Search

Related questions











Question 206 - H14-231_V1.0 discussion

Report
Export

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' ]
Answers
A.
'permissions': [ 'ohos.permission.CAMERA' ]
B.
'defPermissions':[ {'ohos.permission.CAMERA'}]
Answers
B.
'defPermissions':[ {'ohos.permission.CAMERA'}]
C.
'reqPermissions': [ { 'ohos.permission.CAMERA''}]
Answers
C.
'reqPermissions': [ { 'ohos.permission.CAMERA''}]
D.
'permissions': [ 'ohos.permission.LOCATION']
Answers
D.
'permissions': [ 'ohos.permission.LOCATION']
Suggested answer: A
asked 18/09/2024
Alajauan Adams
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first