Skip to content

Commit d77130d

Browse files
committed
Update README with disable tracking
1 parent 6ec086d commit d77130d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ using com.adjust.sdk;
238238

239239
public class ExampleGUI : MonoBehaviour {
240240
{
241-
void OnGUI () {
241+
void OnGUI () {
242242
{
243243
if (GUI.Button (new Rect (0, 0, Screen.width, Screen.height),
244244
"callback")) {
@@ -255,6 +255,18 @@ public class ExampleGUI : MonoBehaviour {
255255
}
256256
```
257257

258+
### 8. Disable tracking
259+
260+
You can disable the adjust SDK from tracking by invoking the method `setEnabled`
261+
with the enabled parameter as `false`. This setting is remembered between sessions, but it can only
262+
be activated after the first session.
263+
264+
```cs
265+
Adjust.setEnabled(enabled: false);
266+
```
267+
268+
You can verify if the adjust SDK is currently active with the method `isEnabled`. It is always possible
269+
to activate the adjust SDK by invoking `setEnabled` with the enabled parameter as `true`.
258270

259271
## Possible problems
260272

0 commit comments

Comments
 (0)