# V2 LicenseCheckerListener

```
public interface LicenseCheckerListener
```

```
com.onestore.extern.licensing.LicenseCheckerListener

```

Listener for processing results of the license information verification.

## Public methods <a href="#v2licensecheckerlistener-publicmethods" id="v2licensecheckerlistener-publicmethods"></a>

***

### granted <a href="#v2licensecheckerlistener-granted" id="v2licensecheckerlistener-granted"></a>

```
void granted(String license, String signature)
```

Called when an application license from the ONE store server is received.&#x20;

<br>

| Parameters: |                                                                       |
| ----------- | --------------------------------------------------------------------- |
| license     | App license data                                                      |
| signature   | Signature of app license data signed with the developer’s private key |

### denied <a href="#v2licensecheckerlistener-denied" id="v2licensecheckerlistener-denied"></a>

```
void denied()
```

Called when purchase data from the ONE store server cannot be found.

### error <a href="#v2licensecheckerlistener-error" id="v2licensecheckerlistener-error"></a>

```
void error(int errorCode, String error)
```

Called when the license query fails.

| Parameters: |                                                                                                                                                       |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| errorCode   | Error code (refer to [ResponseCode](https://onestore-dev.gitbook.io/dev/chi/tools/alc/alc-v2-reference/annotation/v2-applicensechecker.responsecode)) |
| error       | Error message                                                                                                                                         |
