Merge pull request #59 from mlilback/develop

Update BITHockeyManagerDelegate.h
This commit is contained in:
Andreas Linde 2013-09-19 03:39:00 -07:00
commit dd0fab33f5

View File

@ -101,12 +101,12 @@
In addition, if this returns not nil for `BITFeedbackManager` the user will In addition, if this returns not nil for `BITFeedbackManager` the user will
not be asked for any user details by the component, including useerName or userEmail. not be asked for any user details by the component, including useerName or userEmail.
You can find out the component requesting the user name like this: You can find out the component requesting the userID like this:
- (NSString *)userNameForHockeyManager:(BITHockeyManager *)hockeyManager componentManager:(BITHockeyBaseManager *)componentManager { - (NSString *)userIDForHockeyManager:(BITHockeyManager *)hockeyManager componentManager:(BITHockeyBaseManager *)componentManager {
if (componentManager == hockeyManager.feedbackManager) { if (componentManager == hockeyManager.feedbackManager) {
return UserNameForFeedback; return UserIDForFeedback;
} else if (componentManager == hockeyManager.crashManager) { } else if (componentManager == hockeyManager.crashManager) {
return UserNameForCrashReports; return UserIDForCrashReports;
} else { } else {
return nil; return nil;
} }
@ -162,12 +162,12 @@
In addition, if this returns not nil for `BITFeedbackManager` the user will In addition, if this returns not nil for `BITFeedbackManager` the user will
not be asked for any user details by the component, including useerName or userEmail. not be asked for any user details by the component, including useerName or userEmail.
You can find out the component requesting the user name like this: You can find out the component requesting the user email like this:
- (NSString *)userNameForHockeyManager:(BITHockeyManager *)hockeyManager componentManager:(BITHockeyBaseManager *)componentManager { - (NSString *)userEmailForHockeyManager:(BITHockeyManager *)hockeyManager componentManager:(BITHockeyBaseManager *)componentManager {
if (componentManager == hockeyManager.feedbackManager) { if (componentManager == hockeyManager.feedbackManager) {
return UserNameForFeedback; return UserEmailForFeedback;
} else if (componentManager == hockeyManager.crashManager) { } else if (componentManager == hockeyManager.crashManager) {
return UserNameForCrashReports; return UserEmailForCrashReports;
} else { } else {
return nil; return nil;
} }