help_and_feedback.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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_HELP_AND_FEEDBACK_H_
  5. #define REMOTING_IOS_APP_HELP_AND_FEEDBACK_H_
  6. #import <UIKit/UIKit.h>
  7. #include "remoting/client/feedback_data.h"
  8. // This is the base class to provide help and feedback functionalities.
  9. @interface HelpAndFeedback : NSObject
  10. // This will present the Send Feedback view controller onto the topmost view
  11. // controller.
  12. // context: a unique identifier for the user's place within the app which can be
  13. // used to categorize the feedback report and segment usage metrics.
  14. // The base implementation simply calls
  15. // presentFeedbackFlowWithContext:feedbackData: with empty feedback data.
  16. - (void)presentFeedbackFlowWithContext:(NSString*)context;
  17. // Presents a feedback view controller with extra feedback data.
  18. // The base implementation does nothing.
  19. - (void)presentFeedbackFlowWithContext:(NSString*)context
  20. feedbackData:(const remoting::FeedbackData&)data;
  21. // Instance can only be set once.
  22. @property(nonatomic, class) HelpAndFeedback* instance;
  23. @end
  24. #endif // REMOTING_IOS_APP_HELP_AND_FEEDBACK_H_