The ClickTerm Android SDK uses listener callbacks to communicate results. TheDocumentation Index
Fetch the complete documentation index at: https://docs.clickterm.com/llms.txt
Use this file to discover all available pages before exploring further.
show() and showAcceptedContent() methods accept listener interfaces that fire on success or error.
Show result
WhenClicktermDialog.show() completes:
Possible outcomes
| Outcome | Callback | clicktermSignature value |
|---|---|---|
| User accepts | onSuccess | Non-null Signature string — send it to your backend |
| User declines | onSuccess | Non-null Signature string — verify it to record the decline |
| User already accepted | onSuccess | null — no dialog was shown, no action needed |
| Error | onError | N/A — message contains the error description |
A
null Signature in onSuccess means the user has already accepted the latest major version.
No action is needed on your part.Error handling
Errors are delivered via theonError callback:
| Error | Cause |
|---|---|
| SDK not initialized | ClicktermClient.initialize() was not called |
| Template not found | Template is disabled or has no effective version |
| Network error | Cannot reach the ClickTerm API |
Show accepted content result
TheshowAcceptedContent() method uses a separate listener:
showAcceptedContent only works if the end user has an accepted and verified event for the given template.
