> For the complete documentation index, see [llms.txt](https://onestore-dev.gitbook.io/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onestore-dev.gitbook.io/dev/eng/tools/alc/alc-v2-reference/interfaces_/v2-licensecheckerlistener.md).

# 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](/dev/eng/tools/alc/alc-v2-reference/annotation/v2-applicensechecker.responsecode.md)) |
| error       | Error message                                                                                                             |
