notification_dialog_view_controller.h 934 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef REMOTING_IOS_APP_NOTIFICATION_DIALOG_VIEW_CONTROLLER_H_
  5. #define REMOTING_IOS_APP_NOTIFICATION_DIALOG_VIEW_CONTROLLER_H_
  6. #import <UIKit/UIKit.h>
  7. namespace remoting {
  8. struct NotificationMessage;
  9. } // namespace remoting
  10. using NotificationDialogCompletionBlock = void (^)(BOOL silenced);
  11. // This is the view controller for showing the notification dialog.
  12. @interface NotificationDialogViewController : UIViewController
  13. - (instancetype)initWithNotificationMessage:
  14. (const remoting::NotificationMessage&)message
  15. allowSilence:(BOOL)allowSilence;
  16. - (void)presentOnTopVCWithCompletion:
  17. (NotificationDialogCompletionBlock)completion;
  18. @end
  19. #endif // REMOTING_IOS_APP_NOTIFICATION_DIALOG_VIEW_CONTROLLER_H_