提交 5ba96623 编写于 作者: J jinqi6

无障碍拓展文档修改格式

Signed-off-by: Njinqi6 <jinqi6@huawei.com>
上级 3e717b1d
...@@ -609,7 +609,7 @@ try { ...@@ -609,7 +609,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>>;
...@@ -635,7 +635,7 @@ rootElement.attributeNames().then((data) => { ...@@ -635,7 +635,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;
...@@ -663,7 +663,7 @@ rootElement.attributeNames((err, data) => { ...@@ -663,7 +663,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]>;
...@@ -708,7 +708,7 @@ try { ...@@ -708,7 +708,7 @@ try {
console.log('failed to get attribute value, because ' + JSON.stringify(exception)); console.log('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;
...@@ -751,7 +751,7 @@ try { ...@@ -751,7 +751,7 @@ try {
console.log('failed to get attribute value, because ' + JSON.stringify(exception)); console.log('failed to get attribute value, because ' + JSON.stringify(exception));
} }
``` ```
## actionNames ### actionNames
actionNames(): Promise\<Array\<string>>; actionNames(): Promise\<Array\<string>>;
...@@ -777,7 +777,7 @@ rootElement.actionNames().then((data) => { ...@@ -777,7 +777,7 @@ rootElement.actionNames().then((data) => {
console.log('failed to get action names because ' + JSON.stringify(err)); console.log('failed to get action names because ' + JSON.stringify(err));
}); });
``` ```
## actionNames ### actionNames
actionNames(callback: AsyncCallback\<Array\<string>>): void; actionNames(callback: AsyncCallback\<Array\<string>>): void;
...@@ -805,7 +805,7 @@ rootElement.actionNames((err, data) => { ...@@ -805,7 +805,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>;
...@@ -848,7 +848,7 @@ try { ...@@ -848,7 +848,7 @@ try {
console.log('failed to perform action, because ' + JSON.stringify(exception)); console.log('failed to perform action, because ' + JSON.stringify(exception));
} }
``` ```
## performAction ### performAction
performAction(actionName: string, callback: AsyncCallback\<void>): void; performAction(actionName: string, callback: AsyncCallback\<void>): void;
...@@ -887,7 +887,7 @@ try { ...@@ -887,7 +887,7 @@ try {
console.log('failed to perform action, because ' + JSON.stringify(exception)); console.log('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;
...@@ -931,7 +931,7 @@ try { ...@@ -931,7 +931,7 @@ try {
console.log('failed to perform action, because ' + JSON.stringify(exception)); console.log('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>>;
...@@ -970,7 +970,7 @@ try { ...@@ -970,7 +970,7 @@ try {
console.log('failed to find element, because ' + JSON.stringify(exception)); console.log('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;
...@@ -1006,7 +1006,7 @@ try { ...@@ -1006,7 +1006,7 @@ try {
console.log('failed to find element, because ' + JSON.stringify(exception)); console.log('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>;
...@@ -1045,7 +1045,7 @@ try { ...@@ -1045,7 +1045,7 @@ try {
console.log('failed to find element, because ' + JSON.stringify(exception)); console.log('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;
...@@ -1081,7 +1081,7 @@ try { ...@@ -1081,7 +1081,7 @@ try {
console.log('failed to find element, because ' + JSON.stringify(exception)); console.log('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>;
...@@ -1120,7 +1120,7 @@ try { ...@@ -1120,7 +1120,7 @@ try {
console.log('failed to find element, because ' + JSON.stringify(exception)); console.log('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.
先完成此消息的编辑!
想要评论请 注册