// // MPNotificationView.h // Moped // // Created by Engin Kurutepe on 1/2/13. // Copyright (c) 2013 Moped Inc. All rights reserved. // #import extern NSString *kMPNotificationViewTapReceivedNotification; typedef void (^MPNotificationSimpleAction)(id); @protocol MPNotificationViewDelegate; @interface MPNotificationView : UIView @property (nonatomic, strong) UILabel *textLabel; @property (nonatomic, strong) UILabel *detailTextLabel; @property (nonatomic, strong) UIImageView *imageView; @property (nonatomic, assign) id delegate; @property (nonatomic) NSTimeInterval duration; + (MPNotificationView *) notifyWithText:(NSString*)text detail:(NSString*)detail image:(UIImage*)image andDuration:(NSTimeInterval)duration; + (MPNotificationView *) notifyWithText:(NSString*)text detail:(NSString*)detail andDuration:(NSTimeInterval)duration; + (MPNotificationView *) notifyWithText:(NSString*)text andDetail:(NSString*)detail; + (MPNotificationView *) notifyWithText:(NSString*)text detail:(NSString*)detail image:(UIImage*)image duration:(NSTimeInterval)duration andTouchBlock:(MPNotificationSimpleAction)block; + (MPNotificationView *) notifyWithText:(NSString*)text detail:(NSString*)detail duration:(NSTimeInterval)duration andTouchBlock:(MPNotificationSimpleAction)block; + (MPNotificationView *) notifyWithText:(NSString*)text detail:(NSString*)detail andTouchBlock:(MPNotificationSimpleAction)block; @end @protocol MPNotificationViewDelegate @optional - (void)didTapOnNotificationView:(MPNotificationView *)notificationView; @end