forked from kennytm/iphone-private-frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSBVoiceControlAlertDisplay.h
111 lines (107 loc) · 4.01 KB
/
SBVoiceControlAlertDisplay.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
/**
* This header is generated by class-dump-z 0.2-1.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: (null)
*/
#import "SpringBoard-Structs.h"
#import "VSSpeechSynthesizerDelegate.h"
#import "VSRecognitionSessionDelegate.h"
#import "SBSlidingAlertDisplay.h"
@class UITextField, NSMutableSet, NSTimer, NSDictionary, NSString, NSMutableArray, UIKeyboard, VSRecognitionSession, AVController, VSSpeechSynthesizer, NSInvocation, NSMutableIndexSet;
@interface SBVoiceControlAlertDisplay : SBSlidingAlertDisplay <VSRecognitionSessionDelegate, VSSpeechSynthesizerDelegate> {
VSRecognitionSession* _session;
VSSpeechSynthesizer* _synthesizer;
BOOL _wasRecognizing;
BOOL _didConfigureRouting;
NSInvocation* _postSoundInvocation;
UIView* _leftFadeView;
UIView* _rightFadeView;
UIView* _labelsView;
int _clipCount;
int _currentClipNo;
BOOL _voiceTranscription;
UITextField* _textField;
UIKeyboard* _keyboard;
NSMutableArray* _transcripts;
NSMutableArray* _voiceClips;
AVController* _avController;
NSMutableArray* _waves;
NSMutableSet* _labels;
int _keywordCount;
int _lastKeywordIndex;
NSTimer* _levelTimer;
NSMutableIndexSet* _occupiedLabelSlots;
NSDictionary* _locStrings;
NSString* _languageID;
BOOL _labelsOn;
BOOL _animatingToCall;
BOOL _didDismiss;
BOOL _awaitingButtonRelease;
BOOL _isBecomingVisible;
BOOL _ignoreNextSpeechStop;
BOOL _labelsHaveDisplayed;
}
+(id)createBottomLockBarForDisplay:(id)display;
// inherited: +(id)createBottomBarForInstance:(id)instance;
-(id)initWithFrame:(CGRect)frame session:(id)session;
-(BOOL)_wasTriggeredByMenu;
// inherited: -(void)updateDesktopImage:(id)image;
// inherited: -(void)dealloc;
-(BOOL)alphanumericKeyboard;
-(id)_localizedStringForKey:(id)key;
-(void)setTitleText:(id)text;
-(void)setStatusText:(id)text;
// inherited: -(void)alertDisplayWillBecomeVisible;
-(void)alertWillBeDismissed;
-(void)lockBarUnlocked:(id)unlocked;
// inherited: -(void)setMiddleContentAlpha:(float)alpha;
-(void)_invalidateRouting;
-(void)_notifyDeviceTermination;
-(void)_dismissIfWeHavent;
-(void)_dismissSlightlyLater;
-(void)handleButtonUpCancel;
-(void)handleHeadsetButtonUpFromActivation:(BOOL)activation;
-(id)_desiredRouteDictionary;
-(void)_pickedRouteChanged:(id)changed;
-(void)_configureRoutingIfNecessary;
-(void)_performSoundCompletionAction;
-(BOOL)_attemptPlaySound:(unsigned long)sound synchronously:(BOOL)synchronously;
-(void)_playSound:(unsigned long)sound synchronously:(BOOL)synchronously;
-(void)_startSession;
-(void)_resetSession;
// in a protocol: -(BOOL)recognitionSessionWillBeginAction:(id)recognitionSession;
-(void)_continueRecognitionAction;
// in a protocol: -(void)recognitionSessionDidBeginAction:(id)recognitionSession;
-(void)_performNoMatchFound;
-(void)_promptUserForVoiceTranscription;
-(void)_mediaPlayerDied;
-(void)_userEnteredTextForVoiceClip:(id)voiceClip;
-(void)_startTrancribeAudio;
-(void)_getAudioClipsFromDirectory;
-(void)_playAudioAtPath:(id)path;
-(void)_exitVoiceTranscriptView;
// in a protocol: -(void)recognitionSession:(id)session didCompleteActionWithError:(id)error;
-(void)_finishedFadingToAwayInCallController;
-(void)_animateToAwayInCallController;
-(id)_openTelURL:(id)url;
// in a protocol: -(id)recognitionSession:(id)session openURL:(id)url;
-(void)_continueWithRecognitionAction;
-(void)_performConfirmationAction;
-(void)_speakText:(id)text;
-(void)_stopSpeech;
// in a protocol: -(void)speechSynthesizer:(id)synthesizer didFinishSpeaking:(BOOL)speaking withError:(id)error;
-(void)_updateLevels;
-(void)_startUpdatingLevels;
-(void)_stopUpdatingLevels;
-(void)_setWaveAlpha:(float)alpha withDuration:(double)duration;
-(int)_keywordCount;
-(void)_startLabelForKeywordAtIndex:(int)index now:(BOOL)now delayStart:(BOOL)start;
-(void)_startKeywordIfNecessary;
-(void)_labelFinishedAnimating:(id)animating finished:(id)finished label:(id)label;
-(void)_startMovingLabels;
-(void)_fadeOutCurrentLabels;
-(void)_stopMovingLabels;
-(void)_labelsFadedOut:(id)anOut finished:(id)finished labels:(id)labels;
-(void)_keywordsChanged:(id)changed;
@end