UserInfoViewController.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright 2017 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. @class FIRUser;
  18. @class StaticContentTableViewManager;
  19. /** @class UserInfoViewController
  20. @brief A view controller for displaying @c FIRUser data.
  21. */
  22. @interface UserInfoViewController : UIViewController
  23. /** @property tableViewManager
  24. @brief A @c StaticContentTableViewManager which is used to manage the contents of the table
  25. view.
  26. */
  27. @property(nonatomic, strong) IBOutlet StaticContentTableViewManager *tableViewManager;
  28. /** @fn initWithUser:
  29. @biref Initializes with a @c FIRUser instance.
  30. @param user The user to be displayed in the view.
  31. */
  32. - (instancetype)initWithUser:(FIRUser *)user NS_DESIGNATED_INITIALIZER;
  33. /** @fn initWithNibName:bundle:
  34. @brief Not available. Call initWithUser: instead.
  35. */
  36. - (instancetype)initWithNibName:(NSString *)nibNameOrNil
  37. bundle:(NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
  38. /** @fn initWithCoder:
  39. @brief Not available. Call initWithUser: instead.
  40. */
  41. - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
  42. /** @fn done
  43. @brief Called when user taps the "Done" button.
  44. */
  45. - (IBAction)done:(id)sender;
  46. @end