mirror of
https://gitee.com/shuto-github/phonegap-mobile-accessibility.git
synced 2026-04-19 00:01:32 +08:00
bcdaa23d35
iOS will now support adjusting text to preferred point size.
59 lines
2.0 KiB
Objective-C
59 lines
2.0 KiB
Objective-C
/*
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
*/
|
|
|
|
#import <Cordova/CDVPlugin.h>
|
|
|
|
static const int BASE_UI_FONT_TEXT_STYLE_BODY_POINT_SIZE = 16;
|
|
|
|
@interface CDVMobileAccessibility : CDVPlugin {
|
|
NSString* callbackId;
|
|
NSString* commandCallbackId;
|
|
BOOL voiceOverRunning;
|
|
BOOL closedCaptioningEnabled;
|
|
BOOL guidedAccessEnabled;
|
|
BOOL invertColorsEnabled;
|
|
BOOL monoAudioEnabled;
|
|
}
|
|
|
|
@property (strong) NSString* callbackId;
|
|
@property (strong) NSString* commandCallbackId;
|
|
@property BOOL voiceOverRunning;
|
|
@property BOOL closedCaptioningEnabled;
|
|
@property BOOL guidedAccessEnabled;
|
|
@property BOOL invertColorsEnabled;
|
|
@property BOOL monoAudioEnabled;
|
|
@property float mFontScale;
|
|
|
|
|
|
- (void) isScreenReaderRunning:(CDVInvokedUrlCommand*)command;
|
|
- (void) isClosedCaptioningEnabled:(CDVInvokedUrlCommand*)command;
|
|
- (void) isGuidedAccessEnabled:(CDVInvokedUrlCommand*)command;
|
|
- (void) isInvertColorsEnabled:(CDVInvokedUrlCommand*)command;
|
|
- (void) isMonoAudioEnabled:(CDVInvokedUrlCommand*)command;
|
|
- (void) getTextZoom:(CDVInvokedUrlCommand*)command;
|
|
- (void) setTextZoom:(CDVInvokedUrlCommand*)command;
|
|
- (void) updateTextZoom:(CDVInvokedUrlCommand*)command;
|
|
- (void) postNotification:(CDVInvokedUrlCommand*)command;
|
|
- (void) start:(CDVInvokedUrlCommand*)command;
|
|
- (void) stop:(CDVInvokedUrlCommand*)command;
|
|
|
|
@end
|
|
|
|
|