diff --git a/Classes/TWMessageBarManager.h b/Classes/TWMessageBarManager.h index 4a53eaa..d6caeb5 100644 --- a/Classes/TWMessageBarManager.h +++ b/Classes/TWMessageBarManager.h @@ -147,7 +147,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) { * @param type Type dictates color, stroke and icon shown in the message view. * @param callback Callback block to be executed if a message is tapped. */ -- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type callback:(nullable void (^)())callback; +- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type callback:(nullable void (^)(void))callback; /** * Shows a message with the supplied title, description, type & duration. @@ -168,7 +168,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) { * @param duration Default duration is 3 seconds, this can be overridden by supplying an optional duration parameter. * @param callback Callback block to be executed if a message is tapped. */ -- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration callback:(nullable void (^)())callback; +- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration callback:(nullable void (^)(void))callback; /** * Shows a message with the supplied title, description, type, status bar style and callback block. @@ -179,7 +179,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) { * @param statusBarStyle Applied during the presentation of the message. If not supplied, style will default to UIStatusBarStyleDefault. * @param callback Callback block to be executed if a message is tapped. */ -- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type statusBarStyle:(UIStatusBarStyle)statusBarStyle callback:(nullable void (^)())callback; +- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type statusBarStyle:(UIStatusBarStyle)statusBarStyle callback:(nullable void (^)(void))callback; /** * Shows a message with the supplied title, description, type, duration, status bar style and callback block. @@ -191,7 +191,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) { * @param statusBarStyle Applied during the presentation of the message. If not supplied, style will default to UIStatusBarStyleDefault. * @param callback Callback block to be executed if a message is tapped. */ -- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration statusBarStyle:(UIStatusBarStyle)statusBarStyle callback:(nullable void (^)())callback; +- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration statusBarStyle:(UIStatusBarStyle)statusBarStyle callback:(nullable void (^)(void))callback; /** * Shows a message with the supplied title, description, type, status bar hidden toggle and callback block. @@ -202,7 +202,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) { * @param statusBarHidden Status bars are shown by default. To hide it during the presentation of a message, set to NO. * @param callback Callback block to be executed if a message is tapped. */ -- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type statusBarHidden:(BOOL)statusBarHidden callback:(nullable void (^)())callback; +- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type statusBarHidden:(BOOL)statusBarHidden callback:(nullable void (^)(void))callback; /** * Shows a message with the supplied title, description, type, duration, status bar hidden toggle and callback block. @@ -214,7 +214,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) { * @param statusBarHidden Status bars are shown by default. To hide it during the presentation of a message, set to NO. * @param callback Callback block to be executed if a message is tapped. */ -- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration statusBarHidden:(BOOL)statusBarHidden callback:(nullable void (^)())callback; +- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration statusBarHidden:(BOOL)statusBarHidden callback:(nullable void (^)(void))callback; /** * Hides the topmost message and removes all remaining messages in the queue.