提交 efbf0604 编写于 作者: J jinqi6

无障碍拓展文档修改格式

Signed-off-by: Njinqi6 <jinqi6@huawei.com>
上级 7ec35625
...@@ -610,7 +610,7 @@ try { ...@@ -610,7 +610,7 @@ try {
**系统能力**:以下各项对应的系统能力均为SystemCapability.BarrierFree.Accessibility.Core **系统能力**:以下各项对应的系统能力均为SystemCapability.BarrierFree.Accessibility.Core
## attributeNames ### attributeNames
attributeNames\<T extends keyof ElementAttributeValues>(): Promise\<Array\<T>>; attributeNames\<T extends keyof ElementAttributeValues>(): Promise\<Array\<T>>;
...@@ -636,7 +636,7 @@ rootElement.attributeNames().then((data) => { ...@@ -636,7 +636,7 @@ rootElement.attributeNames().then((data) => {
console.log('failed to get attribute names, because ${JSON.stringify(err)}'); console.log('failed to get attribute names, because ${JSON.stringify(err)}');
}); });
``` ```
## attributeNames ### attributeNames
attributeNames\<T extends keyof ElementAttributeValues>(callback: AsyncCallback\<Array\<T>>): void; attributeNames\<T extends keyof ElementAttributeValues>(callback: AsyncCallback\<Array\<T>>): void;
...@@ -664,7 +664,7 @@ rootElement.attributeNames((err, data) => { ...@@ -664,7 +664,7 @@ rootElement.attributeNames((err, data) => {
console.info('get attribute names success'); console.info('get attribute names success');
}); });
``` ```
## AccessibilityElement.attributeValue ### attributeValue
attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T): Promise\<ElementAttributeValues[T]>; attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T): Promise\<ElementAttributeValues[T]>;
...@@ -709,7 +709,7 @@ try { ...@@ -709,7 +709,7 @@ try {
console.error('failed to get attribute value, because ${JSON.stringify(exception)}'); console.error('failed to get attribute value, because ${JSON.stringify(exception)}');
} }
``` ```
## AccessibilityElement.attributeValue ### attributeValue
attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T, attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T,
callback: AsyncCallback\<ElementAttributeValues[T]>): void; callback: AsyncCallback\<ElementAttributeValues[T]>): void;
...@@ -752,7 +752,7 @@ try { ...@@ -752,7 +752,7 @@ try {
console.error('failed to get attribute value, because ${JSON.stringify(exception)}'); console.error('failed to get attribute value, because ${JSON.stringify(exception)}');
} }
``` ```
## actionNames ### actionNames
actionNames(): Promise\<Array\<string>>; actionNames(): Promise\<Array\<string>>;
...@@ -778,7 +778,7 @@ rootElement.actionNames().then((data) => { ...@@ -778,7 +778,7 @@ rootElement.actionNames().then((data) => {
console.error('failed to get action names because ${JSON.stringify(err)}'); console.error('failed to get action names because ${JSON.stringify(err)}');
}); });
``` ```
## actionNames ### actionNames
actionNames(callback: AsyncCallback\<Array\<string>>): void; actionNames(callback: AsyncCallback\<Array\<string>>): void;
...@@ -806,7 +806,7 @@ rootElement.actionNames((err, data) => { ...@@ -806,7 +806,7 @@ rootElement.actionNames((err, data) => {
console.info('get action names success'); console.info('get action names success');
}); });
``` ```
## performAction ### performAction
performAction(actionName: string, parameters?: object): Promise\<void>; performAction(actionName: string, parameters?: object): Promise\<void>;
...@@ -849,7 +849,7 @@ try { ...@@ -849,7 +849,7 @@ try {
console.error('failed to perform action, because ${JSON.stringify(exception)}'); console.error('failed to perform action, because ${JSON.stringify(exception)}');
} }
``` ```
## performAction ### performAction
performAction(actionName: string, callback: AsyncCallback\<void>): void; performAction(actionName: string, callback: AsyncCallback\<void>): void;
...@@ -888,7 +888,7 @@ try { ...@@ -888,7 +888,7 @@ try {
console.error('failed to perform action, because ${JSON.stringify(exception)}'); console.error('failed to perform action, because ${JSON.stringify(exception)}');
} }
``` ```
## performAction ### performAction
performAction(actionName: string, parameters: object, callback: AsyncCallback\<void>): void; performAction(actionName: string, parameters: object, callback: AsyncCallback\<void>): void;
...@@ -932,7 +932,7 @@ try { ...@@ -932,7 +932,7 @@ try {
console.error('failed to perform action, because ${JSON.stringify(exception)}'); console.error('failed to perform action, because ${JSON.stringify(exception)}');
} }
``` ```
## findElement('content') ### findElement('content')
findElement(type: 'content', condition: string): Promise\<Array\<AccessibilityElement>>; findElement(type: 'content', condition: string): Promise\<Array\<AccessibilityElement>>;
...@@ -971,7 +971,7 @@ try { ...@@ -971,7 +971,7 @@ try {
console.error('failed to find element, because ${JSON.stringify(exception)}'); console.error('failed to find element, because ${JSON.stringify(exception)}');
} }
``` ```
## findElement('content') ### findElement('content')
findElement(type: 'content', condition: string, callback: AsyncCallback\<Array\<AccessibilityElement>>): void; findElement(type: 'content', condition: string, callback: AsyncCallback\<Array\<AccessibilityElement>>): void;
...@@ -1007,7 +1007,7 @@ try { ...@@ -1007,7 +1007,7 @@ try {
console.error('failed to find element, because ${JSON.stringify(exception)}'); console.error('failed to find element, because ${JSON.stringify(exception)}');
} }
``` ```
## findElement('focusType') ### findElement('focusType')
findElement(type: 'focusType', condition: FocusType): Promise\<AccessibilityElement>; findElement(type: 'focusType', condition: FocusType): Promise\<AccessibilityElement>;
...@@ -1046,7 +1046,7 @@ try { ...@@ -1046,7 +1046,7 @@ try {
console.error('failed to find element, because ${JSON.stringify(exception)}'); console.error('failed to find element, because ${JSON.stringify(exception)}');
} }
``` ```
## findElement('focusType') ### findElement('focusType')
findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback\<AccessibilityElement>): void; findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback\<AccessibilityElement>): void;
...@@ -1082,7 +1082,7 @@ try { ...@@ -1082,7 +1082,7 @@ try {
console.error('failed to find element, because ${JSON.stringify(exception)}'); console.error('failed to find element, because ${JSON.stringify(exception)}');
} }
``` ```
## findElement('focusDirection') ### findElement('focusDirection')
findElement(type: 'focusDirection', condition: FocusDirection): Promise\<AccessibilityElement>; findElement(type: 'focusDirection', condition: FocusDirection): Promise\<AccessibilityElement>;
...@@ -1121,7 +1121,7 @@ try { ...@@ -1121,7 +1121,7 @@ try {
console.error('failed to find element, because ${JSON.stringify(exception)}'); console.error('failed to find element, because ${JSON.stringify(exception)}');
} }
``` ```
## findElement('focusDirection') ### findElement('focusDirection')
findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback\<AccessibilityElement>): void; findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback\<AccessibilityElement>): void;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册