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
isAllowed
Whether or not the user would like to receive any push notifications.
completion
A 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
completion
A block executed when the request has completed.
-
Unavailable
Block call of
init
andnew
because this object cannot be created directlyDeclaration
Objective-C
- (nonnull instancetype)init;