HIDSessionFilterExample.h [plain text]
#ifndef HIDSessionFilterExample_h
#define HIDSessionFilterExample_h
#import <HID/HID_Private.h>
NS_ASSUME_NONNULL_BEGIN
@interface HIDSessionFilterExample : NSObject <HIDSessionFilter>
- (nullable instancetype)initWithSession:(HIDSession *)session;
- (nullable id)propertyForKey:(NSString *)key;
- (BOOL)setProperty:(nullable id)value
forKey:(NSString *)key;
- (nullable HIDEvent *)filterEvent:(HIDEvent *)event
forService:(HIDEventService *)service;
- (void)activate;
- (void)serviceNotification:(HIDEventService *)service added:(BOOL)added;
- (void)setDispatchQueue:(dispatch_queue_t)queue;
@property (weak) HIDSession *session;
@property (weak) HIDEventService *keyboard;
@end
NS_ASSUME_NONNULL_END
#endif