You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sdks/android/methods.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ title: Methods
9
9
10
10
To initialize the CleverPush SDK, use the following method.
11
11
12
-
CLEVERPUSH_CHANNEL_ID (String): Your unique CleverPush channel ID. This ID is required to link the app with your CleverPush account.
12
+
**CLEVERPUSH_CHANNEL_ID (String):** Your unique CleverPush channel ID. This ID is required to link the app with your CleverPush account.
13
13
14
14
<!--DOCUSAURUS_CODE_TABS-->
15
15
@@ -38,11 +38,11 @@ class MainActivity:Activity() {
38
38
39
39
You can add a `NotificationReceivedListener` and a `NotificationOpenedListener` and a `SubscribedListener`
40
40
41
-
NotificationReceivedListener: A listener that handles the event when a notification is received. The notificationReceived method is triggered with a NotificationOpenedResult object containing the details of the received notification. It fires when notifications have been received.
41
+
**NotificationReceivedListener:** A listener that handles the event when a notification is received. The notificationReceived method is triggered with a NotificationOpenedResult object containing the details of the received notification. It fires when notifications have been received.
42
42
43
-
NotificationOpenedListener: A listener that handles the event when a notification is opened. The notificationOpened method is triggered with a NotificationOpenedResult object containing the details of the opened notification. It fires when notifications have been opened.
43
+
**NotificationOpenedListener:** A listener that handles the event when a notification is opened. The notificationOpened method is triggered with a NotificationOpenedResult object containing the details of the opened notification. It fires when notifications have been opened.
44
44
45
-
SubscribedListener: A listener that handles the event when a user subscribes. The subscribed method is triggered with the subscriptionId. it fires when the user has successfully been subscribed.
45
+
**SubscribedListener:** A listener that handles the event when a user subscribes. The subscribed method is triggered with the subscriptionId. it fires when the user has successfully been subscribed.
46
46
47
47
<!--DOCUSAURUS_CODE_TABS-->
48
48
@@ -92,9 +92,9 @@ class MainActivity:Activity() {
92
92
93
93
<!--END_DOCUSAURUS_CODE_TABS-->
94
94
95
-
You can set autoRegister.
95
+
You can set **`autoRegister`**.
96
96
97
-
autoRegister: The autoRegister parameter controls whether the CleverPush SDK will automatically attempt to subscribe the user upon the first launch of the app. In the below example, autoRegister is set to true. This means that the CleverPush SDK will automatically try to subscribe the user when they first launch the app. If you later call unsubscribe(), the SDK will not automatically try to subscribe the user again. You would need to call subscribe() manually to resubscribe the user.
97
+
**autoRegister:** The autoRegister parameter controls whether the CleverPush SDK will automatically attempt to subscribe the user upon the first launch of the app. In the below example, autoRegister is set to true. This means that the CleverPush SDK will automatically try to subscribe the user when they first launch the app. If you later call unsubscribe(), the SDK will not automatically try to subscribe the user again. You would need to call subscribe() manually to resubscribe the user.
98
98
99
99
By default, the autoRegister parameter in the SDK is set to true. This ensures that new users are automatically subscribed unless explicitly specified otherwise.
100
100
@@ -151,15 +151,15 @@ class MainActivity:Activity() {
151
151
152
152
<!--END_DOCUSAURUS_CODE_TABS-->
153
153
154
-
You can add a `InitializeListener`
154
+
You can add a **`InitializeListener`**
155
155
156
156
The `InitializeListener` handles the initialization status of the CleverPush SDK. It provides methods that are called at different stages of the initialization process, allowing developers to respond accordingly. Can get notified if the initialization was successful or if it failed,
157
157
158
-
onInitialized(): This method is called when the initialization process starts. Logs that the initialization process has started.
158
+
**onInitialized():** This method is called when the initialization process starts. Logs that the initialization process has started.
159
159
160
-
onInitializationSuccess(): This optional method is called when the initialization is successful. You can override this method to handle the initialization success. Logs that the initialization was successful.
160
+
**onInitializationSuccess():** This optional method is called when the initialization is successful. You can override this method to handle the initialization success. Logs that the initialization was successful.
161
161
162
-
onInitializationFailure(Throwable throwable): This optional method is called when the initialization fails. You can override this method to handle the initialization failure. Logs the error message and details if the initialization fails.
162
+
**onInitializationFailure(Throwable throwable):** This optional method is called when the initialization fails. You can override this method to handle the initialization failure. Logs the error message and details if the initialization fails.
0 commit comments