Skip to main content

bn.openSetting

openSetting(): Promise<Settings>

description Set up the client Mini Program setup interface, return the result of user setup. The interface only contains what the Mini Program has already requested from the user.

example

const res = await bn.openSetting()
console.log(res.authSetting)

Returns

Promise<Settings>

Settings

Ƭ Settings: Object

Type declaration

NameTypeDescription
authSettingAuthSettingsResult of user's permission

AuthSettings

Ƭ AuthSettings: Object

Type declaration

NameTypeDescription
scope.camera?booleancamera
scope.userLocation?booleanphysical location
scope.writePhotosAlbum?booleanadd picture to photo album