Skip to content

Commit 3f87394

Browse files
authored
Update REFERENCE.md
Add getLastARC reference
1 parent 3b4506f commit 3f87394

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

REFERENCE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,12 @@ Fetches a [custom JWT](https://approov.io/docs/latest/approov-usage-documentatio
164164
String fetchCustomJWT(String payload) throws ApproovException
165165
```
166166

167+
## getLastARC
168+
Obtains the last [Attestation Response Code](https://ext.approov.io/docs/latest/approov-usage-documentation/#attestation-response-code) provided a network request to the Approov servers has succeeded.
169+
170+
```Java
171+
String getLastARC()
172+
```
173+
174+
In the event of no network available this function returns an empty string. This function should be used with *CAUTION* and instead rely on a customized error response from the server which includes the `ARC` code if one is available.
167175
This throws `ApproovException` if there was a problem obtaining the custom JWT. This may require network access so may take some time to complete, and should not be called from the UI thread.

0 commit comments

Comments
 (0)