Skip to content

Commit 5b41565

Browse files
committed
fix: js doc
1 parent 407deca commit 5b41565

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/index.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NativeModules } from 'react-native';
22

33
interface IMyTracker {
4-
/**
4+
/**
55
* Initializing the tracker
66
*/
77
initTracker(SDK_KEY: string): void;
@@ -18,19 +18,19 @@ interface IMyTracker {
1818
* It is important to set the parameter before event tracking to pass the user ID with each tracked event.
1919
*/
2020
setCustomUserId(USER_ID: string): void;
21-
/**
21+
/**
2222
* Authorization event. The method must be called immediately after the user registers with the application. vkConnectId can be empty string.
2323
*/
2424
trackLoginEvent(userId: string, vkConnectId: string): void;
25-
/**
25+
/**
2626
* Authorization event. The method must be called immediately after the user registers with the application. vkConnectId can be empty string. The user ID must be passed in the userId parameter.
2727
*/
2828
trackLoginEventWithParams(
2929
userId: string,
3030
vkConnectId: string,
3131
attributes: Object
3232
): void;
33-
/**
33+
/**
3434
* An event to send an invitation.
3535
*/
3636
trackInviteEvent(): void;
@@ -43,11 +43,11 @@ interface IMyTracker {
4343
To reduce the channel load and minimize the impact on application performance, the SDK buffers all events on the device before sending them to the server, and regularly sends the collected data in a compressed packet. By default, data is sent to the server every 15 minutes. This interval can be set via the bufferingPeriod parameter from 1 second to 1 day. If the user has closed the application, it will be sent the next time it is started. But some events are very important to get to the analytics as early as possible, especially in the first sessions after the installation of the application. The flush() method will help here.
4444
*/
4545
flush(): void;
46-
/**
46+
/**
4747
* Registration event. The method must be called immediately after the user registers with the application. vkConnectId can be empty string.
4848
*/
4949
trackRegistrationEvent(userId: string, vkConnectId: string): void;
50-
/**
50+
/**
5151
* Registration event. The method must be called immediately after the user registers with the application. vkConnectId can be empty string. The user ID must be passed in the userId parameter.
5252
*/
5353
trackRegistrationEventWithParams(
@@ -106,15 +106,15 @@ If your application requests access to the device's location, you can enable thi
106106
trackLocation(number: 0 | 1 | 2): void;
107107
/**
108108
* The region where the statistics collection server is located. The need to change the region may arise, for example, due to legal requirements. Available values:
109-
* @default 0
110-
* 0 — region not set(default value)
111-
* 1 — server located on the territory of the Russian Federation
112-
* 2 — server located in Europe
109+
* @default 0
110+
* 0 — region not set(default value)
111+
* 1 — server located on the territory of the Russian Federation
112+
* 2 — server located in Europe
113113
*/
114114
region(region: 0 | 1 | 2): void;
115-
/**
116-
* Enables/disables debug mode. The default is false.
117-
* @default 0
115+
/**
116+
* Enables/disables debug mode. The default is false.
117+
* @default 0
118118
*/
119119
setDebugMode(enable: boolean): void;
120120
}

0 commit comments

Comments
 (0)