<a name="AskForPermissionsConsent"></a>

## AskForPermissionsConsent
{AskForPermissionsConsent} 用户授权

**Kind**: global class  

* [AskForPermissionsConsent](#AskForPermissionsConsent)
    * [new AskForPermissionsConsent()](#new_AskForPermissionsConsent_new)
    * [.setToken(token)](#AskForPermissionsConsent+setToken)
    * [.addPermission(name)](#AskForPermissionsConsent+addPermission)

<a name="new_AskForPermissionsConsent_new"></a>

### new AskForPermissionsConsent()
构造方法

<a name="AskForPermissionsConsent+setToken"></a>

### askForPermissionsConsent.setToken(token)
设置directive的token. 默认在构造时自动生成了token，可以覆盖

**Kind**: instance method of [<code>AskForPermissionsConsent</code>](#AskForPermissionsConsent)  

| Param | Type | Description |
| --- | --- | --- |
| token | <code>string</code> | token |

<a name="AskForPermissionsConsent+addPermission"></a>

### askForPermissionsConsent.addPermission(name)
增加权限

**Kind**: instance method of [<code>AskForPermissionsConsent</code>](#AskForPermissionsConsent)  

| Param | Type | Description |
| --- | --- | --- |
| name | <code>string</code> | 权限名称 |

