WKInterfaceController+VLCConnectionAlert.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*****************************************************************************
  2. * WKInterfaceController+VLCConnectionAlert.h
  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 <WatchKit/WatchKit.h>
  13. @interface WKInterfaceController (VLCConnectionAlert)
  14. /*+*
  15. * Same as method below, with nil as default okActionBlock
  16. ***/
  17. - (void)vlc_performBlockIfSessionReachable:(void(^__nullable)())reachableBlock
  18. showUnreachableAlert:(BOOL)unreachableAlert;
  19. /*+*
  20. * check if the default session is reachable ^== iPhone connected to Watch
  21. * If the session is reachable, perform the block.
  22. * If the session is unreachable, show a unreachable alert if unreachable alert
  23. * is true.
  24. * okActionBlock is executed if the session is unreachable, the alert was
  25. * presented and the user pressed the ok button.
  26. ***/
  27. - (void)vlc_performBlockIfSessionReachable:(void(^__nullable)())reachableBlock
  28. showUnreachableAlert:(BOOL)unreachableAlert
  29. alertOKAction:(void(^__nullable)())okActionBlock;
  30. @end