mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-24 19:38:55 -04:00
39 lines
1.1 KiB
Objective-C
39 lines
1.1 KiB
Objective-C
//
|
|
// FLEXKeyPathSearchController.h
|
|
// FLEX
|
|
//
|
|
// Created by Tanner on 3/23/17.
|
|
// Copyright © 2017 Tanner Bennett. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "FLEXRuntimeBrowserToolbar.h"
|
|
#import "FLEXMethod.h"
|
|
|
|
@protocol FLEXKeyPathSearchControllerDelegate <UITableViewDataSource>
|
|
|
|
@property (nonatomic, readonly) UITableView *tableView;
|
|
@property (nonatomic, readonly) UISearchController *searchController;
|
|
|
|
/// For loaded images which don't have an NSBundle
|
|
- (void)didSelectImagePath:(NSString *)message shortName:(NSString *)shortName;
|
|
- (void)didSelectBundle:(NSBundle *)bundle;
|
|
- (void)didSelectClass:(Class)cls;
|
|
|
|
@end
|
|
|
|
|
|
@interface FLEXKeyPathSearchController : NSObject <UISearchBarDelegate, UITableViewDataSource, UITableViewDelegate>
|
|
|
|
+ (instancetype)delegate:(id<FLEXKeyPathSearchControllerDelegate>)delegate;
|
|
|
|
@property (nonatomic) FLEXRuntimeBrowserToolbar *toolbar;
|
|
|
|
/// Suggestions for the toolbar
|
|
@property (nonatomic, readonly) NSArray<NSString *> *suggestions;
|
|
|
|
- (void)didSelectKeyPathOption:(NSString *)text;
|
|
- (void)didPressButton:(NSString *)text insertInto:(UISearchBar *)searchBar;
|
|
|
|
@end
|