@@ -11,7 +11,7 @@ open class Breinify: NSObject {
11
11
typealias apiFailure = ( _ error: NSDictionary ) -> Void
12
12
13
13
/// contains the current version of the library
14
- static let version : String ! = " 2.0.19 "
14
+ static let version : String ! = " 2.0.20 "
15
15
16
16
/// contains the configuration
17
17
static var config : BreinConfig ?
@@ -71,6 +71,19 @@ open class Breinify: NSObject {
71
71
BreinifyManager . shared. handleDidReceiveNotification ( notification)
72
72
}
73
73
74
+ @available ( iOS 10 , * )
75
+ @objc
76
+ public static func didReceiveNotificationResponse( _ response: UNNotificationResponse ) {
77
+ BreinLogger . shared. log ( " Breinify didReceiveNNotificationResponse invoked " )
78
+ BreinifyManager . shared. handleDidReceiveNotificationResponse ( response)
79
+ }
80
+
81
+ @objc
82
+ public static func didReceive( _ notification: [ AnyHashable : Any ] ) {
83
+ BreinLogger . shared. log ( " Breinify didReceive invoked " )
84
+ BreinifyManager . shared. handleDidReceiveNotification ( notification)
85
+ }
86
+
74
87
@objc
75
88
public static func willPresentNotification( _ notification: [ AnyHashable : Any ] ) {
76
89
BreinLogger . shared. log ( " Breinify willPresentNotification invoked " )
@@ -79,7 +92,7 @@ open class Breinify: NSObject {
79
92
80
93
@objc
81
94
public static func isBreinifyNotification( _ userInfo: [ AnyHashable : Any ] ) -> Bool {
82
- return userInfo. keys. contains ( " breinify " )
95
+ userInfo. keys. contains ( " breinify " )
83
96
}
84
97
85
98
@objc
@@ -626,7 +639,7 @@ open class Breinify: NSObject {
626
639
- Parameter activityType: The type of the activity collected, i.e., one of search, login, logout, addToCart,
627
640
removeFromCart, checkOut, selectProduct, or other. if not specified, the default other will
628
641
be used
629
- - Parameter categoryType: The category of the platform/service/products, i.e., one of apparel, home, education, family,
642
+ - Parameter category: The category of the platform/service/products, i.e., one of apparel, home, education, family,
630
643
food, health, job, services, or other
631
644
- Parameter description: A string with further information about the activity performed
632
645
- Parameter success: A callback function that is invoked in case of success.
@@ -789,7 +802,7 @@ open class Breinify: NSObject {
789
802
790
803
Furthermore it uses the internal instance of BreinTemporalData.
791
804
792
- - parameter ipAddress: Contains an ipAddress to resolve.
805
+ - Parameter ipAddress: Contains an ipAddress to resolve.
793
806
- Parameter success: A callback function that is invoked in case of success.
794
807
- Parameter failure: A callback function that is invoked in case of an error.
795
808
@@ -828,7 +841,7 @@ open class Breinify: NSObject {
828
841
829
842
Furthermore it uses the internal instance of BreinTemporalData.
830
843
831
- - parameter breinTemporalData: Contains a breinTemporalData object.
844
+ - Parameter breinTemporalData: Contains a breinTemporalData object.
832
845
- Parameter success: A callback function that is invoked in case of success.
833
846
- Parameter failure: A callback function that is invoked in case of an error.
834
847
@@ -870,8 +883,8 @@ open class Breinify: NSObject {
870
883
Retrieves a lookup result from the engine. The function needs a valid API-key to be configured to succeed.
871
884
This request is synchronous.
872
885
873
- - parameter user: A plain object specifying information about the user to retrieve data for.
874
- - parameter dimension: An object (with an array) containing the names of the dimensions to lookup.
886
+ - Parameter user: A plain object specifying information about the user to retrieve data for.
887
+ - Parameter dimension: An object (with an array) containing the names of the dimensions to lookup.
875
888
- Parameter success: A callback function that is invoked in case of success.
876
889
- Parameter failure: A callback function that is invoked in case of an error.
877
890
@@ -899,9 +912,9 @@ open class Breinify: NSObject {
899
912
Retrieves a lookup result from the engine. The function needs a valid API-key to be configured to succeed.
900
913
This request is synchronous.
901
914
902
- - parameter breinLookup: An instance of BreinLookup.
903
- - parameter user: A plain object specifying information about the user to retrieve data for.
904
- - parameter dimension: An object (with an array) containing the names of the dimensions to lookup.
915
+ - Parameter breinLookup: An instance of BreinLookup.
916
+ - Parameter user: A plain object specifying information about the user to retrieve data for.
917
+ - Parameter dimension: An object (with an array) containing the names of the dimensions to lookup.
905
918
- Parameter success: A callback function that is invoked in case of success.
906
919
- Parameter failure: A callback function that is invoked in case of an error.
907
920
0 commit comments