UNPKG

1.13 kBtext/x-cView Raw
1/*
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#import <Foundation/Foundation.h>
9
10#import <React/RCTBridge.h>
11#import <React/RCTBridgeModule.h>
12
13extern NSString *const RCTAccessibilityManagerDidUpdateMultiplierNotification; // posted when multiplier is changed
14
15@interface RCTAccessibilityManager : NSObject <RCTBridgeModule>
16
17@property (nonatomic, readonly) CGFloat multiplier;
18
19/// map from UIKit categories to multipliers
20@property (nonatomic, copy) NSDictionary<NSString *, NSNumber *> *multipliers;
21
22@property (nonatomic, assign) BOOL isBoldTextEnabled;
23@property (nonatomic, assign) BOOL isGrayscaleEnabled;
24@property (nonatomic, assign) BOOL isInvertColorsEnabled;
25@property (nonatomic, assign) BOOL isReduceMotionEnabled;
26@property (nonatomic, assign) BOOL isReduceTransparencyEnabled;
27@property (nonatomic, assign) BOOL isVoiceOverEnabled;
28
29@end
30
31@interface RCTBridge (RCTAccessibilityManager)
32
33@property (nonatomic, readonly) RCTAccessibilityManager *accessibilityManager;
34
35@end