Skip to content

Commit

Permalink
Added in the open/close methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kcharwood committed Aug 14, 2013
1 parent e51630b commit 0cf2ea5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions MMDrawerController/MMDrawerController+Subclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,30 @@
*/
-(void)prepareToPresentDrawer:(MMDrawerSide)drawer animated:(BOOL)animated __attribute((objc_requires_super));

///---------------------------------------
/// @name Opening/Closing Drawer
///---------------------------------------
/**
The method that handles closing the drawer. You can subclass this method to get a callback every time the drawer is about to be closed. You can inspect the current open side to determine what side is about to be closed.
@param animated A boolean that indicates whether the drawer should close with animation
@param velocity A float indicating how fast the drawer should close
@param animationOptions A mask defining the animation options of the animation
@param completion A completion block to be called when the drawer is finished closing
*/
-(void)closeDrawerAnimated:(BOOL)animated velocity:(CGFloat)velocity animationOptions:(UIViewAnimationOptions)options completion:(void (^)(BOOL))completion __attribute((objc_requires_super));

/**
The method that handles opening the drawer. You can subclass this method to get a callback every time the drawer is about to be opened.
@param drawerSide The drawer side that will be opened
@param animated A boolean that indicates whether the drawer should open with animation
@param velocity A float indicating how fast the drawer should open
@param animationOptions A mask defining the animation options of the animation
@param completion A completion block to be called when the drawer is finished opening
*/
-(void)openDrawerSide:(MMDrawerSide)drawerSide animated:(BOOL)animated velocity:(CGFloat)velocity animationOptions:(UIViewAnimationOptions)options completion:(void (^)(BOOL))completion __attribute((objc_requires_super));;

///---------------------------------------
/// @name `UIViewController` Subclass Methods
///---------------------------------------
Expand Down

0 comments on commit 0cf2ea5

Please sign in to comment.