forked from autopear/SpringBoard-iOS5-Headers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SBAssistantController.h
318 lines (311 loc) · 13.6 KB
/
SBAssistantController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "SBShowcaseViewController.h"
#import "AFAssistantUIService-Protocol.h"
#import "AFSpeechDelegate-Protocol.h"
#import "AFUISnippetDelegate-Protocol.h"
#import "SBAssistantTableViewCellDelegate-Protocol.h"
#import "SBAssistantTourGuideDelegate-Protocol.h"
#import "SBAssistantViewDelegate-Protocol.h"
#import "SBDeviceLockViewDelegate-Protocol.h"
#import "SBDeviceLockViewOwner-Protocol.h"
#import "UITableViewDataSource-Protocol.h"
#import "UITableViewDelegate-Protocol.h"
#import "VSSpeechSynthesizerDelegate-Protocol.h"
@class AFConnection, AFSpeechRequestOptions, AFUISnippetController, BluetoothDevice, NSMutableArray, NSMutableSet, NSString, NSTimer, SAUIAddViews, SBAssistantNavigationController, SBAssistantSpaceController, SBAssistantSpeechElement, SBAssistantTourGuideController, SBAssistantUserUtterance, SBAssistantUserUtteranceController, SBAssistantView, VSSpeechSynthesizer;
@interface SBAssistantController : SBShowcaseViewController <AFAssistantUIService, UITableViewDataSource, UITableViewDelegate, VSSpeechSynthesizerDelegate, AFSpeechDelegate, SBAssistantViewDelegate, AFUISnippetDelegate, SBAssistantTableViewCellDelegate, SBAssistantTourGuideDelegate, SBDeviceLockViewDelegate, SBDeviceLockViewOwner>
{
id <SBAssistantControllerOwner> _owner;
SBAssistantView *_assistantDisplay;
AFConnection *_assistantConnection;
NSMutableArray *_conversation;
SAUIAddViews *_tempPendingElements;
NSMutableArray *_speechQueue;
NSMutableArray *_tempSpeechQueue;
NSMutableArray *_repeatQueue;
NSMutableSet *_modalRequesters;
NSMutableSet *_snippetsToToss;
unsigned int _tableAnimationCount;
VSSpeechSynthesizer *_synthesizer;
NSString *_spokenLanguageCode;
BOOL _pendingRecord;
NSTimer *_statusTimer;
int _state;
int _currentPhase;
NSString *_currentAudioRoute;
BluetoothDevice *_bluetoothDevice;
BOOL _awaitingResponse;
AFUISnippetController *_pinnedSnippet;
AFUISnippetController *_pendingPinnedSnippet;
AFUISnippetController *_lastSnippetInTranscript;
SBAssistantUserUtterance *_pendingSpeechUtterance;
SBAssistantTourGuideController *_tourGuideSnippet;
SBAssistantSpaceController *_extraSpace;
SBAssistantUserUtteranceController *_lastCorrectableUtterance;
SBAssistantSpeechElement *_currentSpeechElement;
id _passcodeUnlockCompletionHandler;
NSMutableArray *_pausedEvents;
AFSpeechRequestOptions *_activationOptions;
BOOL _notifiedAfterActivate;
BOOL _shouldSpeak;
BOOL _assistantVisible;
BOOL _expectsFaceContact;
BOOL _guideDone;
BOOL _connectionCurrentlyAvailable;
BOOL _unlockedDeviceWithinAssistant;
BOOL _requestFinished;
BOOL _hasAddedToTTS;
BOOL _hasShownFirstTimeGuide;
BOOL _delayConnectionEndUntilPhoneCall;
BOOL _deactivatedForPendingPhoneCall;
BOOL _registeredForActiveNotifications;
BOOL _registeredForCallNotifications;
BOOL _keyboardAnimating;
BOOL _removedSnippetDuringThisUpdate;
BOOL _notifyingChangeInLastSnippet;
BOOL _endVoiceSessionWhenDoneSpeaking;
NSString *_currentAddViewsIdentifier;
int _networkErrorIndex;
SBAssistantNavigationController *_viewController;
NSMutableArray *_nextRecognitionAudioInputPaths;
BOOL _shouldRouteToReceiver;
BOOL _audioRouteNeedsUpdate;
BOOL _enableProxForGesture;
}
+ (id)sharedInstance;
+ (id)sharedInstanceIfExists;
+ (BOOL)deviceSupported;
+ (BOOL)preferenceEnabled;
+ (BOOL)supportedAndEnabled;
+ (BOOL)shouldEnterAssistant;
+ (BOOL)hasUserBeenEducated;
+ (void)setUserHasBeenEducated;
+ (void)educateUserAboutAssistantWhenAppropriate;
+ (BOOL)canActivateWithActiveTouchesUsingOptions:(id)arg1;
- (id)init;
- (void)dealloc;
- (float)bottomBarHeight;
- (id)_connection;
- (void)_clearConnection;
- (void)_cleanUpConnectionIfNeeded;
- (id)view;
- (id)_extraSpace;
- (id)_assistantView;
- (void)_detachFromAssistantView;
- (void)viewWillAppear;
- (void)viewDidAppear;
- (void)viewWillDisappear;
- (void)viewDidDisappear;
- (void)setRevealMode:(int)arg1;
- (BOOL)isAssistantVisible;
- (int)viewState;
- (BOOL)currentRouteExpectsFaceContact;
- (void)_updateExpectsFaceContact;
- (void)_registerForActiveNotifications:(BOOL)arg1;
- (void)_registerForCallNotification:(BOOL)arg1;
@property(nonatomic) BOOL willOpenTelURL; // @synthesize willOpenTelURL=_delayConnectionEndUntilPhoneCall;
- (void)_updateCurrentAudioRoute;
- (void)updateCurrentAudioRoute;
- (void)_setExpectsFaceContact:(BOOL)arg1;
- (void)_endBTVoiceSession;
- (BOOL)expectsFaceContact;
- (BOOL)shouldShowLockStatusBarTime;
- (BOOL)shouldShowLockStatusBarIcon;
- (void)noteSpokenLanguageDidChange;
- (BOOL)assistantVisibleAndRequiresPasscodeUnlockForOpenURL:(id)arg1 withDisplay:(id)arg2;
- (void)passcodeUnlockWithCompletion:(id)arg1;
- (BOOL)preventGesture;
- (void)_keyboardWillShow:(id)arg1;
- (void)_keyboardDidShow:(id)arg1;
- (void)_keyboardWillHide:(id)arg1;
- (void)_keyboardDidHide:(id)arg1;
- (void)_callStateChanged:(id)arg1;
- (void)_cleanUpPreheatedConnection;
- (void)preheat;
- (void)_updateConnectionAudioRouteIfNecessary;
- (void)activateWithOptions:(id)arg1;
- (void)deactivate;
- (void)_clearDeactivatedForPendingPhoneCall;
- (void)_setDeactivatedForPendingPhoneCall:(BOOL)arg1 withDelay:(double)arg2;
- (void)_displayDidLaunchFrontmost:(id)arg1;
- (BOOL)cancelPendingPhoneCall;
@property(nonatomic) id <SBAssistantControllerOwner> owner; // @synthesize owner=_owner;
- (void)dismissAssistant;
- (void)dismissAssistantWithFade:(double)arg1;
- (void)dismissAssistantForAlertActivation:(id)arg1;
- (void)_clearState;
- (void)_sendActivationNotification;
- (void)_notifyAllSnippetsOfInterruption;
- (void)resetAndStartListeningWithOptions:(id)arg1;
- (void)pauseConnectionCallbacks:(BOOL)arg1;
- (BOOL)allowsEventOnlySuspension;
- (double)autoDimTime;
- (void)proximityStateChanged:(id)arg1;
- (void)_stopSpeechAndHandleAudioInput;
- (void)_micButtonHit:(id)arg1;
- (void)_appendExchange:(id)arg1;
- (void)_appendSnippet:(id)arg1;
- (void)_removeSnippet:(id)arg1;
- (void)_reloadSnippet:(id)arg1 animation:(int)arg2;
- (void)_beginConversationUpdates;
- (void)_endConversationUpdates;
- (void)_startProcessingRequest;
- (void)_clearLastCorrectableUtterance;
- (void)_appendUserUtterance:(id)arg1 beginProcessing:(BOOL)arg2;
- (void)_submitQuery:(id)arg1;
- (void)_handleAudioInput;
- (void)_handleAudioTimeout;
- (void)_listen;
- (void)_listenAttemptDidFinish;
- (void)_listenFailed;
- (void)_setState:(int)arg1;
- (void)_setViewState:(int)arg1;
- (void)_clearStatusTimer;
- (void)_scheduleStatusTimer;
- (void)_statusTimerFired:(id)arg1;
- (void)_addSpeakableTextForExchange:(id)arg1 listenFollowingSpeech:(BOOL)arg2;
- (id)_addAceView:(id)arg1 phase:(int)arg2;
- (unsigned int)_replaceLastSnippetWithSameSnippetClass:(id)arg1 withPhase:(int)arg2 replacePhase:(int)arg3;
- (void)_scheduleTempSpeechTimer;
- (void)_tempSpeechTimerFired;
- (void)_clearTempSpeechTimer;
- (void)_scheduleTempElementTimer;
- (void)_tempElementTimerFired;
- (void)_clearTempElements;
- (void)_clearTempElementTimer;
- (void)_scheduleScrollToPinned;
- (void)_cancelScrollToPinned;
- (void)_scrollToPinnedTimer;
- (void)_scheduleEducateUserGestureIfNecessary;
- (void)_clearEducateUserGestureTimer;
- (void)_clearScreen;
- (void)_clearConversation;
- (void)_addAceViewAdornmentsIfNecessary:(id)arg1;
- (BOOL)_handleConfirmationPhaseAddViews:(id)arg1 phase:(int)arg2;
- (void)_pinSnippetToTop:(id)arg1;
- (float)_requiredSpaceForCurrentPin;
- (float)_requiredExtraSpaceFromIndex:(unsigned int)arg1;
- (struct CGSize)_calculatedViewSizeForSnippet:(id)arg1 suggestedHeight:(float)arg2;
- (id)_snippetWithFirstResponder;
- (void)_positionSnippet:(id)arg1 aboveKeyboard:(struct CGRect)arg2 withCurve:(int)arg3 duration:(double)arg4 atPosition:(int)arg5 positionHandler:(id)arg6;
- (void)_restoreFromKeyboardShownWithCurve:(int)arg1 duration:(double)arg2 positionHandler:(id)arg3;
- (id)_tableCellIndexPathForSnippet:(id)arg1;
- (void)_addSnippetToToss:(id)arg1;
- (void)_processSnippetTosses;
- (void)_tellUserAboutGesture;
- (struct CGSize)_rowSize:(unsigned int)arg1;
- (struct CGSize)_rowSize:(unsigned int)arg1 suggestedHeight:(float)arg2;
- (void)_removeTemporaryElementsExcept:(id)arg1;
- (void)_say:(id)arg1;
- (void)_say:(id)arg1 forced:(BOOL)arg2;
- (BOOL)_isSpeaking;
- (void)_addTemporaryMessageToSpeechQueue:(id)arg1;
- (void)_clearTemporarySpeechQueue;
- (void)_sendSuccessCommandForRefIdentifier:(id)arg1;
- (void)_sendFailedCommandForRefIdentifier:(id)arg1;
- (void)_processSpeechQueue;
- (void)_stopSpeakingAndProcessCommands:(BOOL)arg1;
- (unsigned long)_prepareSoundFromString:(id)arg1;
- (void)_playSound:(unsigned long)arg1;
- (void)_startListenTimer;
- (void)_cancelListenTimer;
- (void)_addViews:(id)arg1;
- (void)_handleCommand:(id)arg1;
- (void)_handleAddViewsCommand:(id)arg1;
- (void)_handleClearScreenCommand:(id)arg1;
- (void)_handleOpenLinkCommand:(id)arg1;
- (void)_handleSayItCommand:(id)arg1;
- (void)_handleRepeatItCommand:(id)arg1;
- (void)_handlePresentPasscodeUnlockCommand:(id)arg1;
- (void)_handleShowGuideCommand:(id)arg1;
- (int)_phaseFromPhaseString:(id)arg1;
- (BOOL)_phaseReplacesPreviousAvailableSnippetContents:(int)arg1;
- (BOOL)_phaseIsTemporary:(int)arg1;
- (BOOL)_phaseForTemporaryQueue:(int)arg1;
- (BOOL)_phaseIsInterstitial:(int)arg1;
- (id)_lastReplaceableTemporarySnippet;
- (unsigned int)_lastNonSpaceSnippetIndex;
- (id)_lastNonSpaceSnippet;
- (unsigned int)_lastNonTemporarySnippetAbsentFrom:(id)arg1;
- (id)_lastNonStaticSnippet;
- (void)_tossOutLastSnippetAndRemoveFollowingViews;
- (id)_snippetsOfPhase:(int)arg1;
- (BOOL)_shouldActAsIfInConfirmationPhase;
- (void)_notifyFirstResponseReceivedAndHideGuideIfNecessary;
- (void)_forceSnippetsToResignFirstResponder;
- (void)_notifyWantsFullRevealIfNecessary:(id)arg1;
- (void)_clearModality;
- (BOOL)_isModal;
- (void)_updateModality;
- (void)_stampLastSnippetWithStamp:(int)arg1;
- (void)reinterpretUserUtterance:(id)arg1;
- (void)_handleError:(id)arg1;
- (void)_showPasscodeKeypad:(BOOL)arg1;
- (void)_entryFinishedWithPassword:(id)arg1;
- (BOOL)_haveAudioInputPaths;
- (void)_startRequestWithNextAudioInputPath;
- (void)setNextRecognitionAudioInputPaths:(id)arg1;
- (void)_clearPausedEvents;
- (void)_executeOrPendCommand:(id)arg1;
- (id)supportedCommands;
- (void)_clearRepeatQueue;
- (void)_repeatLastResponseWithFallback:(id)arg1;
- (void)assistantConnection:(id)arg1 receivedCommand:(id)arg2;
- (void)assistantConnectionConversationFinished:(id)arg1;
- (void)assistantConnection:(id)arg1 conversationFailedWithError:(id)arg2;
- (void)assistantConnection:(id)arg1 voiceCaptureFinishedWithText:(id)arg2;
- (void)assistantConnection:(id)arg1 voiceCaptureFailedWithError:(id)arg2;
- (void)assistantConnectionRequestFinished:(id)arg1;
- (void)assistantConnection:(id)arg1 requestFailedWithError:(id)arg2;
- (void)assistantConnection:(id)arg1 shouldSpeak:(BOOL)arg2;
- (int)tableView:(id)arg1 numberOfRowsInSection:(int)arg2;
- (id)tableView:(id)arg1 cellForRowAtIndexPath:(id)arg2;
- (float)tableView:(id)arg1 heightForRowAtIndexPath:(id)arg2;
- (void)scrollViewDidScroll:(id)arg1;
- (void)scrollViewDidEndScrollingAnimation:(id)arg1;
- (void)_delayedDeactivateAssistant;
- (void)assistantConnectionSpeechRecordingWillBegin:(id)arg1;
- (void)assistantConnectionSpeechRecordingDidBegin:(id)arg1;
- (void)assistantConnectionSpeechRecordingDidEnd:(id)arg1;
- (void)assistantConnection:(id)arg1 speechRecordingDidFail:(id)arg2;
- (void)assistantConnection:(id)arg1 didRecognizeSpeechPhrases:(id)arg2 correctionIdentifier:(id)arg3;
- (void)assistantConnection:(id)arg1 speechRecognitionDidFail:(id)arg2;
- (void)speechSynthesizerDidStartSpeaking:(id)arg1;
- (void)speechSynthesizer:(id)arg1 didFinishSpeaking:(BOOL)arg2 withError:(id)arg3;
- (void)assistantViewSearchScrolledToView:(id)arg1;
- (void)assistantView:(id)arg1 madeRequest:(id)arg2;
- (void)assistantViewAnimatedIn:(id)arg1;
- (void)assistantViewAnimatedOut:(id)arg1;
- (float)assistantViewAudioLevel:(id)arg1;
- (void)assistantTableViewCellDidRemoveFromSuperview:(id)arg1;
- (void)snippetController:(id)arg1 changeSizeTo:(struct CGSize)arg2;
- (void)snippetControllerRemoveView:(id)arg1;
- (void)snippetController:(id)arg1 sendGenericAceCommand:(id)arg2;
- (id)snippetControllerViewController:(id)arg1;
- (void)snippetControllerTransactionComplete:(id)arg1;
- (void)snippetControllerHaltTTS:(id)arg1;
- (void)snippetControllerCancelScroll:(id)arg1;
- (BOOL)snippetControllerPreventInteraction:(id)arg1;
- (void)snippetController:(id)arg1 stampMostRecentSnippetWithStamp:(int)arg2;
- (id)snippetController:(id)arg1 disambiguationCellForAceObject:(id)arg2 context:(id)arg3;
- (id)snippetController:(id)arg1 domainObjectForIdentifier:(id)arg2;
- (id)snippetControllerEffectiveBundleForCoreLocation:(id)arg1;
- (BOOL)snippetControllerIsDevicePasscodeLocked:(id)arg1;
- (void)snippetControllerModalityRequest:(id)arg1;
- (void)snippetControllerModalityRelinquish:(id)arg1;
- (void)snippetController:(id)arg1 addMessage:(id)arg2 phase:(id)arg3 speakableDescription:(id)arg4;
- (void)snippetController:(id)arg1 addMessage:(id)arg2 speakableDescription:(id)arg3;
- (void)tourGuideWantsToDisplayGuide:(id)arg1;
- (void)deviceLockViewPasscodeEntered:(id)arg1;
- (void)deviceLockViewCancelButtonPressed:(id)arg1;
- (void)deviceUnlockSucceeded;
- (void)deviceUnlockFailed;
- (BOOL)isDisplayingErrorStatus;
- (BOOL)shouldUseTransparentStatusBar;
@property(retain, nonatomic) BluetoothDevice *bluetoothDevice; // @synthesize bluetoothDevice=_bluetoothDevice;
@property(copy) NSString *currentAudioRoute; // @synthesize currentAudioRoute=_currentAudioRoute;
@property(readonly, nonatomic) BOOL unlockedDevice; // @synthesize unlockedDevice=_unlockedDeviceWithinAssistant;
@end