MainViewController.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright 2019 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <UIKit/UIKit.h>
  17. NS_ASSUME_NONNULL_BEGIN
  18. @class StaticContentTableViewManager;
  19. @class UserTableViewCell;
  20. /** @class MainViewController
  21. @brief The first view controller presented when the application is started.
  22. */
  23. @interface MainViewController : UIViewController
  24. /** @property tableViewManager
  25. @brief A @c StaticContentTableViewManager which is used to manage the contents of the table
  26. view.
  27. */
  28. @property(nonatomic, strong) IBOutlet StaticContentTableViewManager *tableViewManager;
  29. /** @property tableView
  30. @brief A UITableView which is used to display user info and a list of actions.
  31. */
  32. @property(nonatomic, weak) IBOutlet UITableView *tableView;
  33. /** @property userInfoTableViewCell
  34. @brief A custom UITableViewCell for displaying the user info.
  35. */
  36. @property(nonatomic, strong) IBOutlet UserTableViewCell *userInfoTableViewCell;
  37. /** @property userInMemoryInfoTableViewCell
  38. @brief A custom UITableViewCell for displaying the user info.
  39. */
  40. @property(nonatomic, strong) IBOutlet UserTableViewCell *userInMemoryInfoTableViewCell;
  41. /** @property userToUseCell
  42. @brief A custom UITableViewCell for choosing which user to use for user operations (either the
  43. currently signed-in user, or the user in "memory".
  44. */
  45. @property(nonatomic, strong) IBOutlet UITableViewCell *userToUseCell;
  46. /** @property consoleTextView
  47. @brief A UITextView with a log of the actions performed in the sample app.
  48. */
  49. @property(nonatomic, weak) IBOutlet UITextView *consoleTextView;
  50. /** @fn handleIncomingLinkWithURL:
  51. @brief Handles an incoming link to trigger the appropriate OOBCode if possible.
  52. @param URL The webURL of the incoming universal link.
  53. @return Boolean value indicating whether the incoming link could be handled or not.
  54. */
  55. - (BOOL)handleIncomingLinkWithURL:(NSURL *)URL;
  56. @end
  57. NS_ASSUME_NONNULL_END