EkoChannelNotificationsManager
@interface EkoChannelNotificationsManager : NSObject
@abstract Responsible to manage the channel level push notification settings.
-
@abstract Updates the channel level push notification setting.
Note
This setting will take effect on every device used by the user.
Declaration
Objective-C
- (void)setIsAllowed:(BOOL)isAllowed completion:(nullable EkoRequestCompletion)completion;Swift
func setIsAllowed(_ isAllowed: Bool, completion: EkoRequestCompletion? = nil)Parameters
isAllowedWhether or not the user would like to receive any push notifications.
completionA block executed when the request has completed.
-
@abstract Retrieve the current channel level push notification state.
Note
This setting is per user, not per device.
Declaration
Objective-C
- (void)isAllowedWithCompletion: (void (^_Nonnull)(BOOL, NSError *_Nullable))completion;Swift
func isAllowed(completion: @escaping (Bool, Error?) -> Void)Parameters
completionA block executed when the request has completed.
-
Unavailable
Block call of
initandnewbecause this object cannot be created directlyDeclaration
Objective-C
- (nonnull instancetype)init;
EkoChannelNotificationsManager Class Reference