first_launch_view_presenter.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. // Copyright 2017 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_FIRST_LAUNCH_VIEW_PRESENTER_H_
  5. #define REMOTING_IOS_APP_FIRST_LAUNCH_VIEW_PRESENTER_H_
  6. #import <UIKit/UIKit.h>
  7. #import "remoting/ios/app/first_launch_view_controller.h"
  8. // A class to present the first launch view when the user is signed out. The
  9. // class will immediately start tracking the user state once it's initialized.
  10. // Other components should NEVER push/pop/replace the top view controller of
  11. // |navController|.
  12. @interface FirstLaunchViewPresenter : NSObject
  13. - (instancetype)initWithNavController:(UINavigationController*)navController
  14. viewControllerDelegate:
  15. (id<FirstLaunchViewControllerDelegate>)delegate;
  16. // Forcibly present the first launch view. Do nothing if the view is already
  17. // presented.
  18. - (void)presentView;
  19. @end
  20. #endif // REMOTING_IOS_APP_FIRST_LAUNCH_VIEW_PRESENTER_H_