Skip to content

Commit 5ab881f

Browse files
committed
Add code comments
1 parent 8498744 commit 5ab881f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

LeanplumSDK/LeanplumSDK/ClassesSwift/Actions/ActionManager+Configuration.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ extension ActionManager {
1717
/// push notification will go into the queue and will be presented after in-app dismissal, otherwise
1818
/// the in-app is dismissed and the push notification's action is presented.
1919
///
20+
/// If `useAsyncHandlers` is `true`, this configuration will not have any effect and
21+
/// push notification open will not dismiss the currently shown message.
22+
///
2023
/// - Default value: `true`
2124
public let dismissOnPushArrival: Bool
2225

LeanplumSDK/LeanplumSDK/ClassesSwift/Actions/ActionManager.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ import Foundation
1515
/// Set a new configuration to override a configuration option
1616
public var configuration: Configuration = .default
1717

18+
/// Setting `useAsyncHandlers` to `true` will have `prioritizeMessages` and
19+
/// `shouldDisplayMessage` handlers to be invoked in a background dispatch queue.
20+
/// OnMessage handlers will also be invoked in that background queue.
21+
/// Enabling `useAsyncHandlers` disables `ActionManager.Configuration.dismissOnPushArrival` and
22+
/// push notification open action will not dismiss currently shown message.
1823
public var useAsyncHandlers = false
1924
public let actionQueue = DispatchQueue(label: "leanplum.background_action_queue", qos: .background, target: DispatchQueue.global())
2025

0 commit comments

Comments
 (0)