mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 11:25:38 +00:00
Merge pull request #59 from mlilback/develop
Update BITHockeyManagerDelegate.h
This commit is contained in:
commit
dd0fab33f5
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user