remove redundant interfaces

Signed-off-by: laiguizhong <laiguizhong@huawei.com>
This commit is contained in:
laiguizhong 2022-02-18 16:40:10 +08:00
parent 8f1097c242
commit 0870091944
9 changed files with 404 additions and 3053 deletions

View File

@ -1,49 +0,0 @@
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed 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 { Rect } from './rect'
//@note hide
export interface DisplayResizeInfo {
/**
* The rect of the display resized.
* @default -
* @since 3
* @sysCap AccessibilityAbility
*/
rect: Rect;
/**
* The scale of the display resized.
* @default -
* @since 3
* @sysCap AccessibilityAbility
*/
scale: number;
/**
* the x coordinate of the resize center.
* @default -
* @since 3
* @sysCap AccessibilityAbility
*/
centerX: number;
/**
* the y coordinate of the resize center.
* @default -
* @since 3
* @sysCap AccessibilityAbility
*/
centerY: number;
}

View File

@ -1,69 +0,0 @@
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed 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.
*/
//@note hide
export class GesturePath {
/**
* The path list of the gesture.
* @default -
* @since 3
* @sysCap AccessibilityAbility
* @note The max number of the path is 10;
*/
pos: Array<GesturePos>;
/**
* The start position of the gesture.
* @default -
* @since 3
* @sysCap AccessibilityAbility
*/
startPos: GesturePos;
/**
* The end position of the gesture.
* @default -
* @since 3
* @sysCap AccessibilityAbility
*/
endPos: GesturePos;
/**
* The duration time of the gesture.
* @default -
* @since 3
* @sysCap AccessibilityAbility
* @note The max of the durationtime is 60 * 1000 ms;
*/
durationTime: number;
}
//@note hide
export class GesturePos {
constructor(x: number, y: number);
/**
* The x coordinate of position.
* @default -
* @since 3
* @sysCap AccessibilityAbility
*/
posX: number;
/**
* The y coordinate of position.
* @default -
* @since 3
* @sysCap AccessibilityAbility
*/
posY: number;
}

View File

@ -1,90 +0,0 @@
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed 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.
*/
export interface GridInfo {
/**
* Row count of the collection.
* @default 0
* @since 3
* @sysCap Accessibility
*/
rowCount: number;
/**
* Column count of the collection.
* @default 0
* @since 3
* @sysCap Accessibility
*/
columnCount: number;
/**
* Selection mode of collection.
* @default 0
* @since 3
* @sysCap Accessibility
*/
selectionMode: number;
}
export interface GridItemInfo {
/**
* Whether is head.
* @default false
* @since 3
* @sysCap Accessibility
*/
heading: boolean;
/**
* The index of the column.
* @default 0
* @since 3
* @sysCap Accessibility
*/
columnIndex: number;
/**
* The index of the row.
* @default 0
* @since 3
* @sysCap Accessibility
*/
rowIndex: number;
/**
* column span.
* @default 0
* @since 3
* @sysCap Accessibility
*/
columnSpan: number;
/**
* row span.
* @default 0
* @since 3
* @sysCap Accessibility
*/
rowSpan: number;
/**
* Whether is selected.
* @default false
* @since 3
* @sysCap Accessibility
*/
selected: boolean;
}

View File

@ -1,40 +0,0 @@
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed 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.
*/
//define for progressbar
export interface RangeInfo {
/**
* The min of the ProgressBar.
* @default 0
* @since 3
* @sysCap Accessibility
*/
min: number;
/**
* The max of the ProgressBar.
* @default 100
* @since 3
* @sysCap Accessibility
*/
max: number;
/**
* The current value of the ProgressBar.
* @default 0
* @since 3
* @sysCap Accessibility
*/
current: number;
}

View File

@ -1,21 +0,0 @@
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed 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.
*/
// Rect
export interface Rect{
leftTopX:number;
leftTopY: number;
rightBottomX: number;
rightBottomY: number;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,64 +0,0 @@
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed 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 accessibility from "./@ohos.accessibility";
import { KeyEvent } from 'keyevent'
/**
* class of accessibility extension.
*
* @since
* @sysCap AccessibilityExtension
*/
export default class AccessibilityExtension {
/**
* Indicates accessibility extension context.
*
* @since
* @sysCap AccessibilityExtension
* @systemapi hide for inner use.
* @StageModelOnly
*/
context: accessibility.AccessibilityExtensionContext;
/**
* Called when your accessibility service is successfully connected to the OS. You can implement
this method to perform subsequent initialization operations.
* @since
* @note hide
* @sysCap AccessibilityExtension
* @param -
* @return -
*/
onAbilityConnected(): void;
/**
* Called when an accessibility event occurs.
* @since
* @sysCap AccessibilityExtension
* @param -
* @return -
*/
onAccessibilityEvent(accessibilityEvent: accessibility.EventInfo): void;
/**
* Called when a key event occurs, for example, a user presses the key to increase or decrease the volume.
* @since
* @sysCap AccessibilityExtension
* @param -
* @return -
*/
onKeyPressEvent(keyEvent: KeyEvent): boolean;
}

View File

@ -1,42 +0,0 @@
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed 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.
*/
declare namespace tts {
function getInstance(): TtsClient;
interface TtsClient {
create(context, ttsListener): void;
release(): void; //不用实现,有接口就可以
init(ttsParams): boolean; //不用实现有接口就可以返回true
setParams(ttsParams):boolean; //不用实现有接口就可以返回true
setAudioType(audioType): boolean; //不用实现有接口就可以返回true
speakText(text, utteranceId): void;
isSpeaking(): boolean;
stopSpeak(): void;
destroy(): void;
}
}
export default media;