@@ -33,7 +33,7 @@ repositories {
3333 }
3434}
3535```
36- * Note:*
36+ * Note:*
3737* Requires minimum API level 21+.
3838
3939## Usage
@@ -67,7 +67,7 @@ One.init(
6767```
6868* See example of usage [ here] ( https://github.com/thunderheadone/one-sdk-react-native/tree/master/example/src/App.tsx#L34 )
6969
70- ### Send an Interaction
70+ ### Send an Interaction
7171To send an Interaction request without properties, call the following method:
7272``` javascript
7373One .sendInteraction (" /interactionPath" , null );
@@ -87,6 +87,26 @@ One.getTid();
8787```
8888* See example of usage [ here] ( https://github.com/thunderheadone/one-sdk-react-native/tree/master/example/src/App.tsx#L78 )
8989
90+ ### Opt an end-user out of tracking
91+ To opt an end-user out of all tracking options, when the end-user does not give permission to be tracked in the client app, call the following method:
92+ ``` javascript
93+ // Opts out of all tracking options.
94+ One .optOut (true );
95+ ```
96+
97+ To opt back in, call the following method:
98+ ``` javascript
99+ // Opt in for all tracking options.
100+ One .optOut (false );
101+ ```
102+
103+ #### Opt an end user out of city country level tracking
104+ To opt an end-user out of city/country level tracking, call the following method:
105+ ``` javascript
106+ // Calling this method will opt the end-user back in for all tracking.
107+ One .optOutCityCountryDetection (true );
108+ ```
109+
90110### Access debug information
91111To configure logging, call the following method:
92112``` javascript
0 commit comments