# wx.miniapp.getPrivacySetting
Android >= 1.1.10
This interface is used to query theWhether the user has agreed to the Privacy Agreement
- Note: In the event that the user does not agree to the privacy service agreement, the developer may not invoke any interface capabilities related to personal information.
# JSAPI Examples of code
wx.miniapp.getPrivacySetting({
success (res) {
console.log(GetPrivacySetting success', res)
if (res.needAuthorization) {
console.log("The user must first agree to the privacy agreement, that is, the user has not agreed to the agreement.")
} else {
console.log('Users have agreed to the privacy agreement. ')
}
}
})