Skip to content
This repository was archived by the owner on Nov 25, 2022. It is now read-only.

Commit 0178628

Browse files
committed
Updated hook definitions documentation
Closes #12
1 parent dfeacd4 commit 0178628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DEFINE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ The most important functions of *param* are:
110110

111111
* *param:getApplicationContext()*: see remarks below
112112
* *param:getThis()*: the current object instance or *nil* if the method is static
113-
* *param:getArgument(index)*: get the argument at the specified index (one based)
113+
* *param:getArgument(index)*: get the argument at the specified index (zero based)
114114
* *param:setArgument(index, value)*
115115
* *param:getResult()*: only available after the hooked method has been executed
116116
* *param:setResult(value)*
117117
* For other functions, see [here](https://github.com/M66B/XPrivacyLua/blob/master/app/src/main/java/eu/faircode/xlua/XParam.java) for the available public methods
118118

119-
The before/after function should return *true* when something was done and *false* otherwise.
119+
The before/after function **must** return *true* when something was done and **must** return *false* otherwise.
120120
XPrivacyLua will show the last date/time of the last time *true* was returned.
121121

122122
Special cases

0 commit comments

Comments
 (0)