WKTextInputListViewController.h [plain text]
#pragma once
#if PLATFORM(WATCHOS)
#import "WKQuickboardListViewController.h"
typedef NS_ENUM(NSInteger, WKNumberPadInputMode) {
WKNumberPadInputModeNone,
WKNumberPadInputModeNumbersAndSymbols,
WKNumberPadInputModeTelephone,
WKNumberPadInputModeNumbersOnly
};
@class WKTextInputListViewController;
@protocol WKTextInputListViewControllerDelegate <WKQuickboardViewControllerDelegate>
- (WKNumberPadInputMode)numericInputModeForListViewController:(WKTextInputListViewController *)controller;
- (NSString *)textContentTypeForListViewController:(WKTextInputListViewController *)controller;
- (NSArray<UITextSuggestion *> *)textSuggestionsForListViewController:(WKTextInputListViewController *)controller;
- (void)listViewController:(WKTextInputListViewController *)controller didSelectTextSuggestion:(UITextSuggestion *)suggestion;
- (BOOL)allowsDictationInputForListViewController:(PUICQuickboardViewController *)controller;
@end
@interface WKTextInputListViewController : WKQuickboardListViewController
- (instancetype)initWithDelegate:(id <WKTextInputListViewControllerDelegate>)delegate NS_DESIGNATED_INITIALIZER;
- (void)reloadTextSuggestions;
@property (nonatomic, weak) id <WKTextInputListViewControllerDelegate> delegate;
@end
@interface WKTextInputListViewController (Testing)
- (void)enterText:(NSString *)text;
@end
#endif // PLATFORM(WATCHOS)