â–¸ getSetting(): Promise<Settings>
description Gets the user's current settings. The return value only contains what the Mini
Program has already requested from the user.
example
Code
Returns
Promise<Settings>
Settings
Ƭ Settings: Object
Type declaration
| Name | Type | Description |
|---|---|---|
authSetting | AuthSettings | Result of user's permission |
AuthSettings
Ƭ AuthSettings: Object
Type declaration
| Name | Type | Description |
|---|---|---|
scope.camera? | boolean | camera |
scope.userLocation? | boolean | physical location |
scope.writePhotosAlbum? | boolean | add picture to photo album |
Was this page helpful?
Last modified on