VLCBaseInterfaceController.m 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*****************************************************************************
  2. * VLCBaseInterfaceController.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Author: Tobias Conradi <videolan # tobias-conradi.de>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCBaseInterfaceController.h"
  13. @implementation VLCBaseInterfaceController
  14. - (void)awakeWithContext:(id)context {
  15. [super awakeWithContext:context];
  16. }
  17. - (void)addNowPlayingMenu {
  18. [self addMenuItemWithItemIcon:WKMenuItemIconMore title: NSLocalizedString(@"NOW_PLAYING", nil) action:@selector(showNowPlaying:)];
  19. }
  20. - (void)showNowPlaying:(id)sender {
  21. [self presentControllerWithName:@"nowPlaying" context:nil];
  22. }
  23. - (void)willActivate {
  24. [super willActivate];
  25. _activated = YES;
  26. }
  27. - (void)didDeactivate {
  28. [super didDeactivate];
  29. _activated = NO;
  30. }
  31. @end