Skip to content

Commit 986891c

Browse files
committed
added override notes for function calls
1 parent b3e4f69 commit 986891c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ public class xApiIntegration : MonoBehaviour
147147
// Note that you can set LRSActivityId and LRSActivityDefinition to override the default activity (which is LRSGameId).
148148
publisher.SendStartedStatement();
149149

150-
// you can overload SendStartedStatement with a custom ActivityID if you wish to dynamically modify the activity like so (overrides $.object.id and $.object.definition.name.en-US):
150+
// you can overload SendStartedStatement with a custom ActivityID if you wish to dynamically modify the activity.
151+
// this overrides $.object.id and $.object.definition.name.en-US):
151152
publisher.SendStartedStatement("http://video.games/clicker/level/1", "Level 1 of clicking game");
152153
}
153154

@@ -162,9 +163,11 @@ public class xApiIntegration : MonoBehaviour
162163

163164
void OnApplicationQuit() {
164165
// Example of sending a statement only configuring the verb.
166+
// overrides $.verb.id and $.verb.display.en-US
165167
publisher.SendStatement("http://video.games/verbs/quit", "Quit");
166168

167169
// Or if you wish to send both a custom verb and activity...
170+
// overrides $.verb.id, $.verb.display.en-US, $.object.id, and $.object.definition.name.en-US
168171
publisher.SendStatement("http://video.games/verbs/quit", "Quit", "http://video.games/clicker/level/1", "Level 1 of clicking game");
169172

170173
}

0 commit comments

Comments
 (0)