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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onestore-dev.gitbook.io/dev/eng/tools/alc/alc-v2-reference/interfaces_/v2-licensecheckerlistener.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
