Skip to content

Commit 6ed5a01

Browse files
committed
Add comment for prioritization of the push iam
1 parent 6aa003e commit 6ed5a01

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

AndroidSDKCore/src/main/java/com/leanplum/actions/LeanplumActions.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ object LeanplumActions {
3535
*
3636
* Default value is true.
3737
*
38+
* If you set [useWorkerThreadForDecisionHandlers] flag as true, calling this method won't have
39+
* any effect and opening a chained message from a push notification won't dismiss currently shown
40+
* message.
41+
*
3842
* @param flag If true in-app is dismissed, otherwise push action goes into the queue.
3943
*/
4044
@JvmStatic
@@ -118,6 +122,12 @@ object LeanplumActions {
118122
@JvmStatic
119123
fun isQueueEnabled() = ActionManager.getInstance().isEnabled
120124

125+
/**
126+
* Setting this flag as true would have the methods of [MessageDisplayController] and
127+
* [MessageDisplayListener] to be invoked in a worker thread. Also the chained message from a push
128+
* notification won't have priority over the currently shown message and will go into the queue,
129+
* so calling [setDismissOnPushOpened] wouldn't have any effect.
130+
*/
121131
@JvmStatic
122132
var useWorkerThreadForDecisionHandlers = false
123133
}

0 commit comments

Comments
 (0)