spiegel-keyman/mac/Keyman4MacIM/Keyman4MacIM/KMInputMethodLifecycle.h
sgschantz 8e833c8314 chore(mac): reworked sentry testing
can now force crashes or send messages by typing a
single character when sentry testing is enabled
in the UserDefaults
2025-01-13 14:08:22 +07:00

28 lines
706 B
Objective-C

/*
* Keyman is copyright (C) SIL International. MIT License.
*
* Created by Shawn Schantz on 2024-09-09.
*
*/
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
extern NSString *const kInputMethodActivatedNotification;
extern NSString *const kInputMethodDeactivatedNotification;
extern NSString *const kInputMethodClientChangeNotification;
@interface KMInputMethodLifecycle : NSObject
+ (KMInputMethodLifecycle *)shared;
+ (NSString*)getRunningApplicationId;
@property NSString *clientApplicationId;
- (void)startLifecycle;
- (void)activateClient:(id)client;
- (void)deactivateClient:(id)client;
- (BOOL)shouldEnableEventTap;
- (BOOL)shouldShowOskOnActivate;
@end
NS_ASSUME_NONNULL_END