-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathAGPushNoteView.h
More file actions
27 lines (23 loc) · 935 Bytes
/
Copy pathAGPushNoteView.h
File metadata and controls
27 lines (23 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// IAAPushNoteView.h
// TLV Airport
//
// Created by Aviel Gross on 1/29/14.
// Copyright (c) 2014 NGSoft. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol AGPushNoteViewDelegate <NSObject>
@optional
- (void)pushNoteDidAppear; // Called after the view has been fully transitioned onto the screen. (equel to completion block).
- (void)pushNoteWillDisappear; // Called before the view is hidden, after the message action block.
@end
@interface AGPushNoteView : UIToolbar
+ (void)showWithNotificationMessage:(NSString *)message;
+ (void)showWithNotificationMessage:(NSString *)message completion:(void (^)(void))completion;
+ (void)close;
+ (void)closeWitCompletion:(void (^)(void))completion;
+ (void)awake;
+ (void)setMessageAction:(void (^)(NSString *message))action;
+ (void)setDelegateForPushNote:(id<AGPushNoteViewDelegate>)delegate;
@property (nonatomic, weak) id<AGPushNoteViewDelegate> pushNoteDelegate;
@end