From 8fa8e7a2145826c9599fc1841709cd4e9b48a346 Mon Sep 17 00:00:00 2001 From: yangbo <1442420648@qq.com> Date: Thu, 2 Jun 2022 16:05:30 +0800 Subject: [PATCH] yangbo198@huawei.com Signed-off-by: yangbo <1442420648@qq.com> Change-Id: I0406d0b3430e43d3cae379fa87dfb550e19685ec --- api/@internal/component/ets/animator.d.ts | 159 -- api/@internal/component/ets/calendar.d.ts | 604 ----- api/@internal/component/ets/common.d.ts | 719 ----- .../component/ets/form_component.d.ts | 112 - api/@internal/component/ets/inspector.d.ts | 97 - api/@internal/component/ets/middle_class.d.ts | 2337 ----------------- .../component/ets/state_management.d.ts | 392 +-- api/@internal/component/ets/xcomponent.d.ts | 17 - api/@internal/ets/lifecycle.d.ts | 15 - api/@ohos.ability.wantConstant.d.ts | 21 - api/@ohos.abilityAccessCtrl.d.ts | 35 - api/@ohos.account.osAccount.d.ts | 987 ------- api/@ohos.application.abilityManager.d.ts | 40 - api/@ohos.application.appManager.d.ts | 74 - api/@ohos.application.formHost.d.ts | 240 -- api/@ohos.application.formInfo.d.ts | 14 - api/@ohos.application.missionManager.d.ts | 112 - api/@ohos.backgroundTaskManager.d.ts | 18 - api/@ohos.batteryStatistics.d.ts | 103 - api/@ohos.bluetooth.d.ts | 11 - api/@ohos.brightness.d.ts | 8 - api/@ohos.bundle.d.ts | 66 - api/@ohos.bundle.innerBundleManager.d.ts | 66 - api/@ohos.bundleState.d.ts | 47 - api/@ohos.commonEvent.d.ts | 27 - api/@ohos.configPolicy.d.ts | 34 - api/@ohos.distributedBundle.d.ts | 25 - ...hos.distributedHardware.deviceManager.d.ts | 409 --- api/@ohos.environment.d.ts | 16 - api/@ohos.fileManager.d.ts | 118 +- api/@ohos.geolocation.d.ts | 51 - api/@ohos.i18n.d.ts | 66 - api/@ohos.multimedia.audio.d.ts | 76 - api/@ohos.multimedia.mediaLibrary.d.ts | 151 -- api/@ohos.multimodalInput.inputConsumer.d.ts | 40 - ...ohos.multimodalInput.inputEventClient.d.ts | 26 - api/@ohos.multimodalInput.inputMonitor.d.ts | 31 - api/@ohos.net.connection.d.ts | 16 - api/@ohos.notification.d.ts | 582 ---- api/@ohos.power.d.ts | 12 - api/@ohos.process.d.ts | 174 -- api/@ohos.screenshot.d.ts | 59 - api/@ohos.settings.d.ts | 14 - api/@ohos.storageStatistics.d.ts | 16 - api/@ohos.systemTimer.d.ts | 85 - api/@ohos.systemparameter.d.ts | 74 - api/@ohos.telephony.call.d.ts | 543 ---- api/@ohos.telephony.data.d.ts | 51 - api/@ohos.telephony.observer.d.ts | 21 - api/@ohos.telephony.radio.d.ts | 360 --- api/@ohos.telephony.sim.d.ts | 424 --- api/@ohos.telephony.sms.d.ts | 473 ---- api/@ohos.update.d.ts | 427 --- api/@ohos.wallpaper.d.ts | 22 - api/@ohos.wantAgent.d.ts | 18 - api/@ohos.wifi.d.ts | 540 ---- api/@ohos.window.d.ts | 110 - api/@system.app.d.ts | 13 - api/application/AbilityRunningInfo.d.ts | 60 +- api/application/AbilityStateData.d.ts | 64 - api/application/AppStateData.d.ts | 37 - api/application/ApplicationStateObserver.d.ts | 56 +- api/application/MissionInfo.d.ts | 76 +- api/application/MissionListener.d.ts | 51 - api/application/MissionSnapshot.d.ts | 28 +- api/application/ProcessData.d.ts | 39 +- api/application/abilityDelegator.d.ts | 13 - api/bundle/PermissionDef.d.ts | 37 - api/bundle/bundleInstaller.d.ts | 106 +- api/bundle/bundleStatusCallback.d.ts | 43 - api/bundle/remoteAbilityInfo.d.ts | 31 - api/bundle/shortcutInfo.d.ts | 24 - api/common/full/featureability.d.ts | 127 - api/common/full/global.d.ts | 16 - api/common/full/viewmodel.d.ts | 30 - api/common/lite/featureability.d.ts | 126 - api/notification/notificationFlags.ts | 24 - api/notification/notificationRequest.d.ts | 39 - api/notification/notificationSorting.d.ts | 17 +- api/notification/notificationSortingMap.d.ts | 16 +- .../notificationSubscribeInfo.d.ts | 16 +- api/notification/notificationSubscriber.d.ts | 65 - 82 files changed, 11 insertions(+), 12528 deletions(-) diff --git a/api/@internal/component/ets/animator.d.ts b/api/@internal/component/ets/animator.d.ts index ff253c2eba..cb8a070fb3 100644 --- a/api/@internal/component/ets/animator.d.ts +++ b/api/@internal/component/ets/animator.d.ts @@ -13,74 +13,12 @@ * limitations under the License. */ -/** - * Customize spring properties. - * @since 7 - * @systemapi - */ -declare class SpringProp { - /** - * Constructor parameters - * @since 7 - * @systemapi - */ - constructor(mass: number, stiffness: number, damping: number); -} - -/** - * Spring animation model. You can build a spring animation based on the start point, end point, initial speed, and spring attributes. - * @since 7 - * @systemapi - */ -declare class SpringMotion { - /** - * Constructor parameters - * @since 7 - * @systemapi - */ - constructor(start: number, end: number, velocity: number, prop: SpringProp); -} - -/** - * Friction animation model. You can build friction animation by friction force, initial position, and initial velocity. - * @since 7 - * @systemapi - */ -declare class FrictionMotion { - /** - * Constructor parameters - * @since 7 - * @systemapi - */ - constructor(friction: number, position: number, velocity: number); -} - -/** - * Rolling animation model: You can build rolling animation based on the initial position, initial speed, boundary position, and spring attributes. - * @since 7 - * @systemapi - */ -declare class ScrollMotion { - /** - * Constructor parameters - * @since 7 - * @systemapi - */ - constructor(position: number, velocity: number, min: number, max: number, prop: SpringProp); -} - /** * Defines Animtor. * @since 7 * @systemapi */ interface AnimatorInterface { - /** - * Constructor parameters - * @since 7 - * @systemapi - */ - (value: string): AnimatorAttribute; } /** @@ -89,103 +27,6 @@ interface AnimatorInterface { * @systemapi */ declare class AnimatorAttribute extends CommonMethod { - /** - * Controls the playback status. The default value is the initial state. - * @since 7 - * @systemapi - */ - state(value: AnimationStatus): AnimatorAttribute; - - /** - * Animation duration, in milliseconds. - * @since 7 - * @systemapi - */ - duration(value: number): AnimatorAttribute; - - /** - * Animation curve, default to linear curve - * @since 7 - * @systemapi - */ - curve(value: Curve): AnimatorAttribute; - - /** - * Delayed animation playback duration, in milliseconds. By default, the animation is not delayed. - * @since 7 - * @systemapi - */ - delay(value: number): AnimatorAttribute; - - /** - * Sets the state before and after the animation starts. - * @since 7 - * @systemapi - */ - fillMode(value: FillMode): AnimatorAttribute; - - /** - * The default playback is once. If the value is -1, the playback is unlimited. - * @since 7 - * @systemapi - */ - iterations(value: number): AnimatorAttribute; - - /** - * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. - * @since 7 - * @systemapi - */ - playMode(value: PlayMode): AnimatorAttribute; - - /** - * Configure the physical animation algorithm. - * @since 7 - * @systemapi - */ - motion(value: SpringMotion | FrictionMotion | ScrollMotion): AnimatorAttribute; - - /** - * Status callback, which is triggered when the animation starts to play. - * @since 7 - * @systemapi - */ - onStart(event: () => void): AnimatorAttribute; - - /** - * Status callback, triggered when the animation pauses. - * @since 7 - * @systemapi - */ - onPause(event: () => void): AnimatorAttribute; - - /** - * Status callback, triggered when the animation is replayed. - * @since 7 - * @systemapi - */ - onRepeat(event: () => void): AnimatorAttribute; - - /** - * Status callback, which is triggered when the animation is canceled. - * @since 7 - * @systemapi - */ - onCancel(event: () => void): AnimatorAttribute; - - /** - * Status callback, which is triggered when the animation playback is complete. - * @since 7 - * @systemapi - */ - onFinish(event: () => void): AnimatorAttribute; - - /** - * The callback input parameter is the interpolation during animation playback. - * @since 7 - * @systemapi - */ - onFrame(event: (value: number) => void): AnimatorAttribute; } declare const Animator: AnimatorInterface; diff --git a/api/@internal/component/ets/calendar.d.ts b/api/@internal/component/ets/calendar.d.ts index 63569d8107..bce256a335 100644 --- a/api/@internal/component/ets/calendar.d.ts +++ b/api/@internal/component/ets/calendar.d.ts @@ -13,517 +13,11 @@ * limitations under the License. */ -/** - * Provides a monthly view component to display information such as date, shift break, and schedule. - * @since 7 - * @systemapi - */ -interface CalendarDay { - /** - * Indicates the sequence number of the 7 x 7 (7 x 6) grid layout on a calendar page by row. - * The week sequence is one, two, three, four, five, six. - * @since 7 - * @systemapi - */ - index: number; - - /** - * Lunar moon. - * The week sequence is one, two, three, four, five, six. - * @since 7 - * @systemapi - */ - lunarMonth: string; - - /** - * Lunar day. - * @since 7 - * @systemapi - */ - lunarDay: string; - - /** - * Day. - * @since 7 - * @systemapi - */ - dayMark: string; - - /** - * Indicates the off-duty flag information. The options are work and off.By default, the off-duty flag information is not required. - * @since 7 - * @systemapi - */ - dayMarkValue: string; - - /** - * Gregorian calendar year. - * @since 7 - * @systemapi - */ - year: number; - - /** - * Gregorian calendar month. - * @since 7 - * @systemapi - */ - month: number; - - /** - * Gregorian calendar day. - * @since 7 - * @systemapi - */ - day: number; - - /** - * - * Indicates whether the default value is Lunar calendar. - * @since 7 - * @systemapi - */ - isFirstOfLunar: boolean; - - /** - * Indicates whether to display has Schedule. - * The week sequence is one, two, three, four, five, six. - * @since 7 - * @systemapi - */ - hasSchedule: boolean; - - /** - * Display Lunar Date.The week sequence is one, two, three, four, five, six. - * @since 7 - * @systemapi - */ - markLunarDay: boolean; -} - -/** - * Date object. - * @since 7 - * @systemapi - */ -interface MonthData { - /** - * Gregorian calendar year. - * @since 7 - * @systemapi - */ - year: number; - - /** - * Gregorian calendar month. - * @since 7 - * @systemapi - */ - month: number; - - /** - * CalendarDay. - * @since 7 - * @systemapi - */ - data: CalendarDay[]; -} - -/** - * CurrentDayStyle object. - * @since 7 - * @systemapi - */ -interface CurrentDayStyle { - /** - * Text color. - * @since 7 - * @systemapi - */ - dayColor?: ResourceColor; - - /** - * lunar Text color. - * @since 7 - * @systemapi - */ - lunarColor?: ResourceColor; - - /** - * lunar Work and rest text color. - * @since 7 - * @systemapi - */ - markLunarColor?: ResourceColor; - - /** - * Text fontSize. - * @since 7 - * @systemapi - */ - dayFontSize?: number; - - /** - * lunar text fontSize. - * @since 7 - * @systemapi - */ - lunarDayFontSize?: number; - - /** - * Single date height. - * @since 7 - * @systemapi - */ - dayHeight?: number; - - /** - * Single date width. - * @since 7 - * @systemapi - */ - dayWidth?: number; - - /** - * Gregorian calendar height. - * @since 7 - * @systemapi - */ - gregorianCalendarHeight?: number; - - /** - * Data y axis Off set. - * @since 7 - * @systemapi - */ - dayYAxisOffset?: number; - - /** - * Lunar data y axis Off set. - * @since 7 - * @systemapi - */ - lunarDayYAxisOffset?: number; - - /** - * Under score X Axis Off set. - * @since 7 - * @systemapi - */ - underscoreXAxisOffset?: number; - - /** - * Under score Y Axis Off set - * @since 7 - * @systemapi - */ - underscoreYAxisOffset?: number; - - /** - * Schedule marker X axis Off set - * @since 7 - * @systemapi - */ - scheduleMarkerXAxisOffset?: number; - - /** - * schedule Marker Y Axis Off set - * @since 7 - * @systemapi - */ - scheduleMarkerYAxisOffset?: number; - - /** - * Number of columns. - * @since 7 - * @systemapi - */ - colSpace?: number; - - /** - * Daily five row space. - * @since 7 - * @systemapi - */ - dailyFiveRowSpace?: number; - - /** - * Daily six row space. - * @since 7 - * @systemapi - */ - dailySixRowSpace?: number; - - /** - * Single lunar height. - * @since 7 - * @systemapi - */ - lunarHeight?: number; - - /** - * Under score width. - * @since 7 - * @systemapi - */ - underscoreWidth?: number; - - /** - * Under score length. - * @since 7 - * @systemapi - */ - underscoreLength?: number; - - /** - * Schedule marker radius. - * @since 7 - * @systemapi - */ - scheduleMarkerRadius?: number; - - /** - * Bound dary row offset. - * @since 7 - * @systemapi - */ - boundaryRowOffset?: number; - - /** - * Boundary col offset. - * @since 7 - * @systemapi - */ - boundaryColOffset?: number; -} - -/** - * Non current day style. - * @since 7 - * @systemapi - */ -interface NonCurrentDayStyle { - /** - * Non-current month day color. - * @since 7 - * @systemapi - */ - nonCurrentMonthDayColor?: ResourceColor; - - /** - * Lunar style of non-current month. - * @since 7 - * @systemapi - */ - nonCurrentMonthLunarColor?: ResourceColor; - - /** - * Non-Current Month Workday Marker Color. - * @since 7 - * @systemapi - */ - nonCurrentMonthWorkDayMarkColor?: ResourceColor; - - /** - * Non-Current Month Off Day Marker Color. - * @since 7 - * @systemapi - */ - nonCurrentMonthOffDayMarkColor?: ResourceColor; -} - -/** - * Non current day style. - * @since 7 - * @systemapi - */ -interface TodayStyle { - /** - * Style of focus color. - * @since 7 - * @systemapi - */ - focusedDayColor?: ResourceColor; - - /** - * Focus on Lunar Colors. - * @since 7 - * @systemapi - */ - focusedLunarColor?: ResourceColor; - - /** - * Background color of the focus area. - * @since 7 - * @systemapi - */ - focusedAreaBackgroundColor?: ResourceColor; - - /** - * Focus area radius. - * @since 7 - * @systemapi - */ - focusedAreaRadius?: number; -} - -/** - * Week Style. - * @since 7 - * @systemapi - */ -interface WeekStyle { - /** - * Style of week color. - * @since 7 - * @systemapi - */ - weekColor?: ResourceColor; - - /** - * Style of week day color. - * @since 7 - * @systemapi - */ - weekendDayColor?: ResourceColor; - - /** - * Style of lunar color. - * @since 7 - * @systemapi - */ - weekendLunarColor?: ResourceColor; - - /** - * Style of week font size. - * @since 7 - * @systemapi - */ - weekFontSize?: number; - - /** - * Style of week height. - * @since 7 - * @systemapi - */ - weekHeight?: number; - - /** - * Style of week width. - * @since 7 - * @systemapi - */ - weekWidth?: number; - - /** - * Style of week space. - * @since 7 - * @systemapi - */ - weekAndDayRowSpace?: number; -} - -/** - * Work state style. - * @since 7 - * @systemapi - */ -interface WorkStateStyle { - /** - * Style of day color. - * @since 7 - * @systemapi - */ - workDayMarkColor?: ResourceColor; - - /** - * Style of day color. - * @since 7 - * @systemapi - */ - offDayMarkColor?: ResourceColor; - - /** - * Style of day size. - * @since 7 - * @systemapi - */ - workDayMarkSize?: number; - - /** - * Style of day size. - * @since 7 - * @systemapi - */ - offDayMarkSize?: number; - - /** - * Style of width. - * @since 7 - * @systemapi - */ - workStateWidth?: number; - - /** - * Style of distance. - * @since 7 - * @systemapi - */ - workStateHorizontalMovingDistance?: number; - - /** - * Style of distance. - * @since 7 - * @systemapi - */ - workStateVerticalMovingDistance?: number; -} - -/** - * Calendar controller. - * @since 7 - * @systemapi - */ -declare class CalendarController { - /** - * Constructor. - * @since 7 - * @systemapi - */ - constructor(); - - /** - * Back to day. - * @since 7 - * @systemapi - */ - backToToday(); - - /** - * To the specified element. - * @since 7 - * @systemapi - */ - goTo(value: { year: number; month: number; day: number }); -} - /** * @since 7 * @systemapi */ interface CalendarInterface { - /** - * Set value. - * @since 7 - * @systemapi - */ - (value: { - date: { year: number; month: number; day: number }; - currentData: MonthData; - preData: MonthData; - nextData: MonthData; - controller?: CalendarController; - }): CalendarAttribute; } /** @@ -531,104 +25,6 @@ interface CalendarInterface { * @systemapi */ declare class CalendarAttribute { - /** - * Specifies whether the component displays the lunar calendar information. - * @since 7 - * @systemapi - */ - showLunar(value: boolean): CalendarAttribute; - - /** - * Setting whether to display holiday information - * @since 7 - * @systemapi - */ - showHoliday(value: boolean): CalendarAttribute; - - /** - * Indicates whether the page can be scrolled. - * @since 7 - * @systemapi - */ - needSlide(value: boolean): CalendarAttribute; - - /** - * Set the start day of the week for the calendar. - * @since 7 - * @systemapi - */ - startOfWeek(value: number): CalendarAttribute; - - /** - * Set weekend. The default value is Sunday and Saturday. - * @since 7 - * @systemapi - */ - offDays(value: number): CalendarAttribute; - - /** - * Sets the sliding direction. - * @since 7 - * @systemapi - */ - direction(value: Axis): CalendarAttribute; - - /** - * Sets the date style in the current month. - * @since 7 - * @systemapi - */ - currentDayStyle(value: CurrentDayStyle): CalendarAttribute; - - /** - * Sets the non-monthly date style. - * @since 7 - * @systemapi - */ - nonCurrentDayStyle(value: NonCurrentDayStyle): CalendarAttribute; - - /** - * Set the date style for today. - * @since 7 - * @systemapi - */ - todayStyle(value: TodayStyle): CalendarAttribute; - - /** - * Sets the date style for the weekend. - * @since 7 - * @systemapi - */ - weekStyle(value: WeekStyle): CalendarAttribute; - - /** - * Sets the style of the working state. - * @since 7 - * @systemapi - */ - workStateStyle(value: WorkStateStyle): CalendarAttribute; - - /** - * Click a date to return the information about the date you clicked. - * @since 7 - * @systemapi - */ - onSelectChange(event: (event: { year: number; month: number; day: number }) => void): CalendarAttribute; - - /** - * When you swipe to switch months, the information about the previous month and the next month is requested. - * @since 7 - * @systemapi - */ - onRequestData( - event: (event: { - year: number; - month: number; - currentYear: number; - currentMonth: number; - monthState: number; - }) => void, - ): CalendarAttribute; } declare const Calendar: CalendarInterface; diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 4ebfb501cb..7330954381 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -168,13 +168,6 @@ declare interface Rectangle { height?: Length; } -/** - * Defining isSystemplugin Constants. - * @since 7 - * @systemapi - */ -declare const isSystemplugin: (...args: string[]) => any; - /** * global $r function * @since 7 @@ -413,68 +406,6 @@ declare interface TransitionOptions { rotate?: RotateOptions; } -/** - * Define Preview property - * @since 8 - * @systemapi - */ -interface PreviewParams { - /** - * Define Preview title - * @since 8 - * @systemapi - */ - title?: string; - /** - * Define Preview width - * @since 8 - * @systemapi - */ - width?: number; - /** - * Define Preview height - * @since 8 - * @systemapi - */ - height?: number; - /** - * Define Preview locale - * @since 8 - * @systemapi - */ - locale?: string; - /** - * Define Preview colorMode - * @since 8 - * @systemapi - */ - colorMode?: string; - /** - * Define Preview deviceType - * @since 8 - * @systemapi - */ - deviceType?: string; - /** - * Define Preview dpi - * @since 8 - * @systemapi - */ - dpi?: number; - /** - * Define Preview orientation - * @since 8 - * @systemapi - */ - orientation?: string; - /** - * Define Preview roundScreen - * @since 8 - * @systemapi - */ - roundScreen?: boolean; -} - /** * ItemDragInfo object description * @since 8 @@ -775,20 +706,6 @@ declare interface TouchEvent extends BaseEvent { */ declare type PixelMap = PixelMapMock; -/** - * pixelmap object with release function. - * @systemapi - * @since 7 - */ -declare interface PixelMapMock { - /** - * release function. - * @systemapi - * @since 7 - */ - release(): void; -} - /** * DragEvent object description * @since 7 @@ -1006,626 +923,6 @@ declare interface CustomPopupOptions { onStateChange?: (event: { isVisible: boolean }) => void; } -/** - * CommonMethod. - * @since 7 - */ -declare class CommonMethod { - /** - * constructor. - * @systemapi - * @since 7 - * @ignore - */ - constructor(); - - /** - * Sets the width of the current component. - * @since 7 - */ - width(value: Length): T; - - /** - * Sets the width of the current component. - * @since 7 - */ - height(value: Length): T; - - /** - * Sets the response region of the current component. - * @since 8 - */ - responseRegion(value: Array | Rectangle): T; - - /** - * The size of the current component. - * @since 7 - */ - size(value: SizeOptions): T; - - /** - * constraint Size: - * minWidth:minimum Width,maxWidth:maximum Width,minHeight:minimum Height ,maxHeight:maximum Height, - * @since 7 - */ - constraintSize(value: ConstraintSizeOptions): T; - - /** - * Sets the touchable of the current component - * @since 7 - */ - touchable(value: boolean): T; - - /** - * layout Weight - * @since 7 - */ - layoutWeight(value: number | string): T; - - /** - * Inner margin. - * @since 7 - */ - padding(value: Padding | Length): T; - - /** - * Outer Margin. - * @since 7 - */ - margin(value: Margin | Length): T; - - /** - * Background color - * @since 7 - */ - backgroundColor(value: ResourceColor): T; - - /** - * Background image - * src: Image address url - * @since 7 - */ - backgroundImage(src: ResourceStr, repeat?: ImageRepeat): T; - - /** - * Background image size - * @since 7 - */ - backgroundImageSize(value: SizeOptions | ImageSize): T; - - /** - * Background image position - * x:Horizontal coordinate;y:Vertical axis coordinate. - * @since 7 - */ - backgroundImagePosition(value: Position | Alignment): T; - - /** - * Opacity - * @since 7 - */ - opacity(value: number | Resource): T; - - /** - * Opacity - * width:Border width;color:Border color;radius:Border radius; - * @since 7 - */ - border(value: BorderOptions): T; - - /** - * Border style - * @since 7 - */ - borderStyle(value: BorderStyle): T; - - /** - * Border width - * @since 7 - */ - borderWidth(value: Length): T; - - /** - * Border color - * @since 7 - */ - borderColor(value: ResourceColor): T; - - /** - * Border radius - * @since 7 - */ - borderRadius(value: Length): T; - - /** - * Trigger a click event when a click is clicked. - * @since 7 - */ - onClick(event: (event?: ClickEvent) => void): T; - - /** - * Trigger a mouse hover event. - * @since 8 - */ - onHover(event: (isHover?: boolean) => void): T; - - /** - * Set hover effect. - * @since 8 - */ - hoverEffect(value: HoverEffect): T; - - /** - * Trigger a mouse event. - * @since 8 - */ - onMouse(event: (event?: MouseEvent) => void): T; - - /** - * Trigger a touch event when touched. - * @since 7 - */ - onTouch(event: (event?: TouchEvent) => void): T; - - /** - * Keyboard input - * @since 7 - */ - onKeyEvent(event: (event?: KeyEvent) => void): T; - - /** - * Set focusable. - * @since 8 - */ - focusable(value: boolean): T; - - /** - * Trigger a event when got focus. - * @since 8 - */ - onFocus(event: () => void): T; - - /** - * Trigger a event when lose focus. - * @since 8 - */ - onBlur(event: () => void): T; - - /** - * animation - * @since 7 - */ - animation(value: AnimateParam): T; - - /** - * Transition parameter - * @since 7 - */ - transition(value: TransitionOptions): T; - - /** - * Bind gesture recognition. - * gesture:Bound Gesture Type,mask:GestureMask; - * @since 7 - */ - gesture(gesture: GestureType, mask?: GestureMask): T; - - /** - * Binding Preferential Recognition Gestures - * gesture:Bound Gesture Type,mask:GestureMask; - * @since 7 - */ - priorityGesture(gesture: GestureType, mask?: GestureMask): T; - - /** - * Binding gestures that can be triggered simultaneously with internal component gestures - * gesture:Bound Gesture Type,mask:GestureMask; - * @since 7 - */ - parallelGesture(gesture: GestureType, mask?: GestureMask): T; - - /** - * Adds the content blurring effect for the current component. The input parameter is the blurring radius. - * The larger the blurring radius, the more blurring the content. - * If the value is 0, the content blurring effect is not blurring. - * @since 7 - */ - blur(value: number): T; - - /** - * Adds a highlight effect to the current component. - * The input parameter is the highlight proportion. 0 indicates no highlight effect, and 1 indicates the maximum highlight proportion. - * The component is displayed as all white (percentage). - * @since 7 - */ - brightness(value: number): T; - - /** - * Adds a contrast effect to the current component. The input parameter is the contrast value. - * A larger contrast value indicates a sharper image. When the contrast value is 0, the image becomes gray. (%) - * @since 7 - */ - contrast(value: number): T; - - /** - * Adds a grayscale effect to the current component. - * The value is the gray scale conversion ratio. If the input parameter is 1.0, the gray scale image is completely converted to the gray scale image. If the input parameter is 0.0, the image does not change. - * If the input parameter is between 0.0 and 1.0, the effect changes. (Percentage) - * @since 7 - */ - grayscale(value: number): T; - - /** - * Adds a color overlay effect for the current component. The input parameter is the superimposed color. - * @since 7 - */ - colorBlend(value: Color | string | Resource): T; - - /** - * Adds a saturation effect to the current component. - * The saturation is the ratio of the color-containing component to the achromatic component (gray). - * The larger the color-containing component, the greater the saturation. - * The larger the achromatic component, the smaller the saturation. (Percentage) - * @since 7 - */ - saturate(value: number): T; - - /** - * Converts the image to sepia. Value defines the scale of the conversion. - * A value of 1 is completely sepia, and a value of 0 does not change the image. (Percentage) - * @since 7 - */ - sepia(value: number): T; - - /** - * Inverts the input image. Value defines the scale of the conversion. 100% of the value is a complete reversal. - * A value of 0% does not change the image. (Percentage) - * @since 7 - */ - invert(value: number): T; - - /** - * Adds the hue rotation effect to the current component. - * The input parameter is the rotation angle. When the input parameter is 0deg, the image does not change (the default value is 0deg), and the input parameter does not have a maximum value. - * If the value exceeds 360deg, the image is circled again. - * @since 7 - */ - hueRotate(value: number | string): T; - - /** - * Adds the background blur effect for the current component. The input parameter is the blur radius. - * The larger the blur radius, the more blurred the background. If the value is 0, the background blur is not blurred. - * @since 7 - */ - backdropBlur(value: number): T; - - /** - * Sets the translation effect during page transition. - * The value is the start point of entry and end point of exit. - * When this parameter is set together with slide, slide takes effect by default. - * @since 7 - */ - translate(value: TranslateOptions): T; - - /** - * Sets the zoom effect during page transition. The value is the start point of entry and end point of exit. - * @since 7 - */ - scale(value: ScaleOptions): T; - - /** - * Default number of occupied columns, indicating the number of occupied grid columns when the number of columns (span) of the corresponding size is not set in the useSizeType attribute. - * @since 7 - */ - gridSpan(value: number): T; - - /** - * The default offset column number indicates the number of offset columns of the current component in the start direction of the parent component when the useSizeType attribute does not set the offset of the corresponding dimension. That is, - * the current component is located in the nth column. - * @since 7 - */ - gridOffset(value: number): T; - - /** - * Sets the rotation effect during assembly transition. - * The values are the start point during insertion and the end point during deletion. - * @since 7 - */ - rotate(value: RotateOptions): T; - - /** - * Sets the transformation matrix for the current component. - * @since 7 - */ - transform(value: object): T; - - /** - * This callback is triggered when a component mounts a display. - * @since 7 - */ - onAppear(event: () => void): T; - - /** - * This callback is triggered when component uninstallation disappears. - * @since 7 - */ - onDisAppear(event: () => void): T; - - /** - * This callback is triggered when the size or position of this component change finished. - * @param event event callback. - * @since 8 - */ - onAreaChange(event: (oldValue: Area, newValue: Area) => void): T; - - /** - * Controls the display or hide of the current component. - * @since 7 - */ - visibility(value: Visibility): T; - - /** - * The percentage of the remaining space of the Flex container allocated to the component on which this property resides. - * @since 7 - */ - flexGrow(value: number): T; - - /** - * The proportion of the Flex container compression size assigned to the component on which this attribute resides. - * @since 7 - */ - flexShrink(value: number): T; - - /** - * The base dimension of the assembly on which this attribute is located in the direction of the principal axis in the Flex container. - * @since 7 - */ - flexBasis(value: number | string): T; - - /** - * Overrides the default configuration of alignItems in the Flex Layout container. - * @since 7 - */ - alignSelf(value: ItemAlign): T; - - /** - * Sets the current component and displays the priority in the layout container. This parameter is valid only in Row, Column, and Flex single-row layouts. - * @since 7 - */ - displayPriority(value: number): T; - - /** - * The sibling components in the same container are hierarchically displayed. A larger value of z indicates a higher display level. - * @since 7 - */ - zIndex(value: number): T; - - /** - * If the components of the two pages are configured with the same ID, the shared element transition is performed during transition. If the parameter is set to an empty string, the shared element transition does not occur. For details about the options parameter, see the options parameter description. - * @since 7 - */ - sharedTransition(id: string, options?: sharedTransitionOptions): T; - - /** - * Sets the sliding direction. The enumerated value supports logical AND (&) and logical OR (|). - * @since 7 - */ - direction(value: Direction): T; - - /** - * align - * @since 7 - */ - align(value: Alignment): T; - - /** - * position - * @since 7 - */ - position(value: Position): T; - - /** - * Sets the anchor point of the element when it is positioned. The base point is offset from the top start point of the element. - * @since 7 - */ - markAnchor(value: Position): T; - - /** - * Coordinate offset relative to the layout completion position. - * Setting this attribute does not affect the layout of the parent container. The position is adjusted only during drawing. - * @since 7 - */ - offset(value: Position): T; - - /** - * If the value is true, the component is available and can respond to operations such as clicking. - * If it is set to false, click operations are not responded. - * @since 7 - */ - enabled(value: boolean): T; - - /** - * Sets the number of occupied columns and offset columns for a specific device width type. - * @since 7 - */ - useSizeType(value: { - xs?: number | { span: number; offset: number }; - sm?: number | { span: number; offset: number }; - md?: number | { span: number; offset: number }; - lg?: number | { span: number; offset: number }; - }): T; - - /** - * Specifies the aspect ratio of the current component. - * @since 7 - */ - aspectRatio(value: number): T; - - /** - * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered. - * (To be triggered, press and hold for 170 milliseconds (ms)) - * @since 8 - */ - onDragStart(event: (event?: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo): T; - - /** - * After binding, a callback is triggered when the component is dragged to the range of the component. - * @since 8 - */ - onDragEnter(event: (event?: DragEvent, extraParams?: string) => void): T; - - /** - * After binding, a callback is triggered when the drag moves within the range of a placeable component. - * @since 8 - */ - onDragMove(event: (event?: DragEvent, extraParams?: string) => void): T; - - /** - * After binding, a callback is triggered when the component is dragged out of the component range. - * @since 8 - */ - onDragLeave(event: (event?: DragEvent, extraParams?: string) => void): T; - - /** - * The component bound to this event can be used as the drag release target. - * This callback is triggered when the drag behavior is stopped within the scope of the component. - * @since 8 - */ - onDrop(event: (event?: DragEvent, extraParams?: string) => void): T; - - /** - * Add mask text to the current component. The layout is the same as that of the current component. - * @since 7 - */ - overlay(value: string, options?: { align?: Alignment; offset?: { x?: number; y?: number } }): T; - - /** - * Linear Gradient - * angle: Angle of Linear Gradient; direction:Direction of Linear Gradient; colors:Color description for gradients,repeating:repeating. - * @since 7 - */ - linearGradient(value: { - angle?: number | string; - direction?: GradientDirection; - colors: Array; - repeating?: boolean; - }): T; - - /** - * Angle Gradient - * center:is the center point of the angle gradient - * start:Start point of angle gradient - * end:End point of angle gradient - * number:number - * rotating:rotating - * colors:Color description for gradients - * repeating:repeating - * @since 7 - */ - sweepGradient(value: { - center: Array; - start?: number | string; - end?: number | string; - rotation?: number | string; - colors: Array; - repeating?: boolean; - }): T; - - /** - * Radial Gradient - * center:Center point of radial gradient - * radius:Radius of Radial Gradient - * colors:Color description for gradients - * repeating: Refill - * @since 7 - */ - radialGradient(value: { center: Array; radius: number | string; colors: Array; repeating?: boolean }): T; - - /** - * Set the motion path of the component - * path:Motion path for displacement animation, using the svg path string. - * from:Start point of the motion path. The default value is 0.0. - * to:End point of the motion path. The default value is 1.0. - * rotatble:Whether to follow the path for rotation. - * @since 7 - */ - motionPath(value: MotionPathOptions): T; - - /** - * Add a shadow effect to the current component - * @since 7 - */ - shadow(value: { - radius: number | Resource; - color?: Color | string | Resource; - offsetX?: number | Resource; - offsetY?: number | Resource; - }): T; - - /** - * When the parameter is of the Shape type, the current component is cropped according to the specified shape. - * When the parameter is of the boolean type, this parameter specifies whether to crop based on the edge contour. - * @since 7 - */ - clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): T; - - /** - * Applies a mask of the specified shape to the current assembly. - * @since 7 - */ - mask(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): T; - - /** - * Key. User can set an key to the component to identify it. - * @since 8 - * @systemapi - * @test - */ - key(value: string): T; - - /** - * Id. User can set an id to the component to identify it. - * @since 8 - */ - id(value: string): T; - - /** - * geometryTransition - * @since 7 - */ - geometryTransition(id: string): T; - - /** - * Popup control - * @since 7 - */ - bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): T; - - /** - * Menu control - * @since 7 - */ - bindMenu(content: { value: string; action: () => void }[] | CustomBuilder): T; - - /** - * ContextMenu control - * @since 8 - */ - bindContextMenu(content: CustomBuilder, responseType: ResponseType): T; - - /** - * Sets styles for component state. - * @since 8 - */ - stateStyles(value: StateStyles): T; - - /** - * id for distrubte identification. - * @since 8 - */ - restoreId(value: number): T; -} - /** * CommonAttribute for ide. * @since 7 @@ -1778,19 +1075,3 @@ declare class CustomComponent { */ onBackPress?(): void; } - -/** - * View - * @ignore ide should ignore this class - * @systemapi - * @since 7 - */ -declare class View { - /** - * Just use for generate tsbundle - * @ignore ide should ignore this arrtibute - * @systemapi - * @since 7 - */ - create(value: any): any; -} diff --git a/api/@internal/component/ets/form_component.d.ts b/api/@internal/component/ets/form_component.d.ts index e94054f90f..44431fcdbf 100644 --- a/api/@internal/component/ets/form_component.d.ts +++ b/api/@internal/component/ets/form_component.d.ts @@ -13,61 +13,12 @@ * limitations under the License. */ -/** - * Defines the FormDimension enum. - * @since 7 - * @systemapi - */ -declare enum FormDimension { - /** - * 1 x 2 cards - * @since 7 - * @systemapi - */ - Dimension_1_2, - - /** - * 2 x 2 cards - * @since 7 - * @systemapi - */ - Dimension_2_2, - - /** - * 2 x 4 cards - * @since 7 - * @systemapi - */ - Dimension_2_4, - - /** - * 4 x 4 cards - * @since 7 - * @systemapi - */ - Dimension_4_4, -} - /** * Defines the FormComponent. * @since 7 * @systemapi */ interface FormComponentInterface { - /** - * Set a new value. - * @since 7 - * @systemapi - */ - (value: { - id: number; - name: string; - bundle: string; - ability: string; - module: string; - dimension?: FormDimension; - temporary?: boolean; - }): FormComponentAttribute; } /** @@ -75,69 +26,6 @@ interface FormComponentInterface { * @systemapi */ declare class FormComponentAttribute extends CommonMethod { - /** - * Sets the display area size of the card. - * @since 7 - * @systemapi - */ - size(value: { width: number; height: number }): FormComponentAttribute; - - /** - * Card module name. - * @since 7 - * @systemapi - */ - moduleName(value: string): FormComponentAttribute; - - /** - * Set the card size. - * @since 7 - * @systemapi - */ - dimension(value: FormDimension): FormComponentAttribute; - - /** - * Indicates whether to allow card update. - * @since 7 - * @systemapi - */ - allowUpdate(value: boolean): FormComponentAttribute; - - /** - * Whether the card is visible. - * @since 7 - * @systemapi - */ - visibility(value: Visibility): FormComponentAttribute; - - /** - * This function is triggered after card information is obtained. - * For details about the form information, see the definition of the original capability subsystem. - * @since 7 - * @systemapi - */ - onAcquired(callback: (info: { id: number }) => void): FormComponentAttribute; - - /** - * Card loading error. - * @since 7 - * @systemapi - */ - onError(callback: (info: { errcode: number; msg: string }) => void): FormComponentAttribute; - - /** - * Card to be redirected. - * @since 7 - * @systemapi - */ - onRouter(callback: (info: any) => void): FormComponentAttribute; - - /** - * Uninstall Card. - * @since 7 - * @systemapi - */ - onUninstall(callback: (info: { id: number }) => void): FormComponentAttribute; } declare const FormComponent: FormComponentInterface; diff --git a/api/@internal/component/ets/inspector.d.ts b/api/@internal/component/ets/inspector.d.ts index 7dc106a2ba..2e73d04e2d 100644 --- a/api/@internal/component/ets/inspector.d.ts +++ b/api/@internal/component/ets/inspector.d.ts @@ -12,100 +12,3 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/** - * Get inspector node infos. - * @since 7 - * @systemapi - * @deprecated - */ -declare function getInspectorNodes(): object; - -/** - * Get inspector node info by node id. - * @since 7 - * @systemapi - * @deprecated - */ -declare function getInspectorNodeById(id: number): object; - -/** - * Get inspector info by key. - * @since 8 - * @systemapi - * @test - */ -declare function getInspectorByKey(id: string): string; - -/** - * Get inspector tree. - * @since 8 - * @systemapi - * @test - */ -declare function getInspectorTree(): string; - -/** - * Send event to inspector by key. Return false if no inspector with key is found. - * @since 8 - * @systemapi - * @test - */ -declare function sendEventByKey(id: string, action: number, params: string): boolean; - -/** - * Send touch event. - * @since 8 - * @systemapi - * @test - */ -declare function sendTouchEvent(event: TouchObject): boolean; - -/** - * Send key event. - * @since 8 - * @systemapi - * @test - */ -declare function sendKeyEvent(event: KeyEvent): boolean; - -/** - * Send mouse event. - * @since 8 - * @systemapi - * @test - */ -declare function sendMouseEvent(event: MouseEvent): boolean; - -/** - * Profiler tools for inspectors. - * @since 8 - * @systemapi - * @test - */ -declare namespace Profiler { - /** - * Registers vsync callback for profiler. - * @param callback the callback info is json string with ui update info. - * @since 8 - * @systemapi - * @test - */ - function registerVsyncCallback(callback: (info: string) => void): void; - - /** - * Unregisters vsync callback. - * @since 8 - * @systemapi - * @test - */ - function unregisterVsyncCallback(): void; -} - -/** - * Set app background color. - * @since 8 - * @systemapi - * @test - */ -declare function setAppBgColor(value: string): void; diff --git a/api/@internal/component/ets/middle_class.d.ts b/api/@internal/component/ets/middle_class.d.ts index adad7410a1..2e73d04e2d 100644 --- a/api/@internal/component/ets/middle_class.d.ts +++ b/api/@internal/component/ets/middle_class.d.ts @@ -12,2340 +12,3 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSAlphabetIndexerAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): AlphabetIndexerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): AlphabetIndexerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { arrayValue: Array; selected: number }): AlphabetIndexerAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSAnimatorAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: string): AnimatorAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSBadgeAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): BadgeAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): BadgeAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: BadgeParamWithNumber | BadgeParamWithString): BadgeAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSBlankAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(min?: number | string): BlankAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): BlankAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): BlankAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSButtonAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - createWithChild(label?: ResourceStr, options?: ButtonOptions): ButtonAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - createWithLabel(label?: ResourceStr, options?: ButtonOptions): ButtonAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ButtonAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ButtonAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSCalendarAttribute { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { - date: { - year: number; - month: number; - day: number; - }; - currentData: MonthData; - preData: MonthData; - nextData: MonthData; - controller?: CalendarController; - }): CalendarAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): CalendarAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): CalendarAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSCanvasAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(context?: CanvasRenderingContext2D): CanvasAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): CanvasAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): CanvasAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSCheckboxAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: CheckboxOptions): CheckboxAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): CheckboxAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): CheckboxAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSCheckboxGroupAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: CheckboxGroupOptions): CheckboxGroupAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): CheckboxGroupAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): CheckboxGroupAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSCircleAttribute extends CommonShapeMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: CircleOptions): CircleAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): CircleAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSColumnAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { space?: string | number }): ColumnAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ColumnAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ColumnAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSColumnSplitAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): ColumnSplitAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ColumnSplitAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ColumnSplitAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSCounterAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): CounterAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): CounterAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): CounterAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSDataPanelAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options: DataPanelOptions): DataPanelAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): DataPanelAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): DataPanelAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSDatePickerAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: DatePickerOptions): DatePickerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): DatePickerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): DatePickerAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSDividerAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): DividerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): DividerAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSEllipseAttribute extends CommonShapeMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { width?: string | number; height?: string | number }): EllipseAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): EllipseAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSFlexAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: FlexOptions): FlexAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): FlexAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): FlexAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSForEachInterface { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create( - arr: Array, - itemGenerator: (item: any, index?: number) => void, - keyGenerator?: (item: any, index?: number) => string, - ): ForEachInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ForEachInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ForEachInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSFormComponentAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { - id: number; - name: string; - bundle: string; - ability: string; - module: string; - dimension?: FormDimension; - temporary?: boolean; - }): FormComponentAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): FormComponentAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSGaugeAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options: { value: number; min?: number; max?: number }): GaugeAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): GaugeAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSGridAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(scroller?: Scroller): GridAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): GridAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): GridAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSGridItemAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): GridItemAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): GridItemAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): GridItemAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSGridContainerAttribute extends ColumnAttribute { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: GridContainerOptions): GridContainerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): GridContainerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): GridContainerAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSImageAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(src: string | PixelMap | Resource): ImageAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ImageAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSImageAnimatorAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): ImageAnimatorAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ImageAnimatorAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSLazyForEachInterface { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create( - dataSource: IDataSource, - itemGenerator: (item: any, index?: number) => void, - keyGenerator?: (item: any, index?: number) => string, - ): LazyForEachInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): LazyForEachInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): LazyForEachInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSLineAttribute extends CommonShapeMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { width?: string | number; height?: string | number }): LineAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): LineAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSListAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { initialIndex?: number; space?: number | string; scroller?: Scroller }): ListAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ListAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ListAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSListItemAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: string): ListItemAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ListItemAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ListItemAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSLoadingProgressAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): LoadingProgressAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): LoadingProgressAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - color(value: ResourceColor): LoadingProgressAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSMarqueeAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { start: boolean; step?: number; loop?: number; fromStart?: boolean; src: string }): MarqueeAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): MarqueeAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): MarqueeAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSNavigationAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): NavigationAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): NavigationAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): NavigationAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSNavigatorAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { target: string; type?: NavigationType }): NavigatorAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): NavigatorAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): NavigatorAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPageTransitionEnterInterface extends CommonTransition { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { - type?: RouteType; - duration?: number; - curve?: Curve | string; - delay?: number; - }): PageTransitionEnterInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPageTransitionExitInterface extends CommonTransition { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { - type?: RouteType; - duration?: number; - curve?: Curve | string; - delay?: number; - }): PageTransitionExitInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPanelAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(show: boolean): PanelAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): PanelAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): PanelAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPathAttribute extends CommonShapeMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { width?: number | string; height?: number | string; commands?: string }): PathAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): PathAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): PathAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPatternLockAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(controller?: PatternLockController): TSPatternLockAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): TSPatternLockAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): TSPatternLockAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPieceAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: { content: string; icon?: string }): PieceAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): PieceAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): PieceAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPluginComponentAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { template: PluginComponentTemplate; data: any }): PluginComponentAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): PluginComponentAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): PluginComponentAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPolygonAttribute extends CommonShapeMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { width?: string | number; height?: string | number }): PolygonAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): PolygonAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPolylineAttribute extends CommonShapeMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { width?: string | number; height?: string | number }): PolylineAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): PolylineAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSProgressAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options: ProgressOptions): ProgressAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ProgressAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSQRCodeAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: string): QRCodeAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): QRCodeAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): QRCodeAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSRadioAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options: RadioOptions): RadioAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): RadioAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSRatingAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: { rating: number; indicator?: boolean }): RatingAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): RatingAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): RatingAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSRectAttribute extends CommonShapeMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create( - value?: - | { - width?: number | string; - height?: number | string; - radius?: number | string | Array; - } - | { - width?: number | string; - height?: number | string; - radiusWidth?: number | string; - radiusHeight?: number | string; - }, - ): RectAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): RectAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSRefreshAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { refreshing: boolean; offset?: number | string; friction?: number | string }): RefreshAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): RefreshAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): RefreshAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSRowAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { space?: string | number }): RowAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): RowAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): RowAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSRowSplitAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): RowSplitAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): RowSplitAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): RowSplitAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSScrollAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(scroller?: Scroller): ScrollAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ScrollAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ScrollAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSScrollBarAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: ScrollBarOptions): ScrollBarAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ScrollBarAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ScrollBarAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSSearchAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: { - value?: string; - placeholder?: string; - icon?: string; - controller?: SearchController; - }): SearchAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): SearchAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): SearchAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSSelectAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options: Array): SelectAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): SelectAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): SelectAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSShapeAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: PixelMap): ShapeAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ShapeAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ShapeAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSSheetAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): SheetAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): SheetAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): SheetAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSSliderAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: SliderOptions): SliderAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): SliderAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSSpanAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: string | Resource): SpanAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): SpanAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSStackAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { alignContent?: Alignment }): StackAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): StackAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): StackAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSStepperAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { index?: number }): StepperAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): StepperAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): StepperAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSStepperItemAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): StepperItemAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): StepperItemAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): StepperItemAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSSwiperAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(controller?: SwiperController): SwiperAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): SwiperAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): SwiperAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSTabContentAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(): TabContentAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): TabContentAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): TabContentAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSTabsAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { barPosition?: BarPosition; index?: number; controller?: TabsController }): TabsAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): TabsAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): TabsAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSTextAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(content?: string | Resource): TextAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): TextAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): TextAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSTextAreaAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: TextAreaOptions): TextAreaAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): TextAreaAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSTextClockAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: { timeZoneOffset?: number; controller?: TextClockController }): TextClockAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): TextClockAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): TextClockAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSTextInputAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: TextInputOptions): TextInputAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): TextInputAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSTextPickerAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: TextPickerOptions): TextPickerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): TextPickerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): TextPickerAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSTextTimerAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options?: TextTimerOptions): TextTimerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): TextTimerAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): TextTimerAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSToggleAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(options: { type: ToggleType; isOn?: boolean }): ToggleAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): ToggleAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): ToggleAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSVideoAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { - src?: string | Resource; - previewUri?: string | PixelMap | Resource; - controller?: VideoController; - }): VideoAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): VideoAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSWebAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: WebOptions): WebAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): WebAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSXComponentAttribute extends CommonMethod { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value: { - id: string; - type: string; - libraryname?: string; - controller?: XComponentController; - }): XComponentAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): XComponentAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSRichTextAttribute { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(content: string): RichTextAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): RichTextAttribute; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - debugLine(value: string): RichTextAttribute; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSTapGestureInterface { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { count?: number; fingers?: number }): TapGestureInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): TapGestureInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSLongPressGestureInterface { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { fingers?: number; repeat?: boolean; duration?: number }): LongPressGestureInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): LongPressGestureInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPanGestureInterface { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create( - value?: - | { - fingers?: number; - direction?: PanDirection; - distance?: number; - } - | PanGestureOptions, - ): PanGestureInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): PanGestureInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSSwipeGestureInterface { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { fingers?: number; direction?: SwipeDirection; speed?: number }): SwipeGestureInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): SwipeGestureInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSPinchGestureInterface { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { fingers?: number; distance?: number }): PinchGestureInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): PinchGestureInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSRotationGestureInterface { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(value?: { fingers?: number; angle?: number }): RotationGestureInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): RotationGestureInterface; -} - -/** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ -declare class TSGestureGroupInterface { - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - create(mode: GestureMode, ...gesture: GestureType[]): GestureGroupInterface; - /** - * Used for TS compiler. - * @ignore - * @systemapi - * @since 8 - */ - pop(): GestureGroupInterface; -} diff --git a/api/@internal/component/ets/state_management.d.ts b/api/@internal/component/ets/state_management.d.ts index 310e1ad62b..2311670c92 100644 --- a/api/@internal/component/ets/state_management.d.ts +++ b/api/@internal/component/ets/state_management.d.ts @@ -13,269 +13,6 @@ * limitations under the License. */ -/** - * Provides an interface for attribute subscribers. - * @since 7 - * @systemapi - */ -interface IPropertySubscriber { - /** - * Called when the ID of the property subscriber is queried. - * @since 7 - * @systemapi - */ - id(): number; - - /** - * Provides a single attribute change user interface. - * @since 7 - * @systemapi - */ - aboutToBeDeleted(owningView?: IPropertySubscriber): void; -} - -/** - * Defines the subscriber. - * @since 7 - * @systemapi - */ -interface ISinglePropertyChangeSubscriber extends IPropertySubscriber { - /** - * Provides a single attribute change user interface. - * @since 7 - * @systemapi - */ - hasChanged(newValue: T): void; -} - -/** - * Defines the subscribed abstract property. - * @since 7 - * @systemapi - */ -declare abstract class SubscribedAbstractProperty { - /** - * Setting Subscribers. - * @since 7 - * @systemapi - */ - protected subscribers_: Set; - - /** - * Private user ID. - * @since 7 - * @systemapi - */ - private id_; - - /** - * Private user information. - * @since 7 - * @systemapi - */ - private info_?; - - /** - * @since 7 - * @systemapi - */ - constructor( - /** - * Subscriber IPropertySubscriber. - * @since 7 - * @systemapi - */ - subscribeMe?: IPropertySubscriber, - /** - * Subscriber info. - * @since 7 - * @systemapi - */ - info?: string, - ); - - /** - * Called when the subscriber ID is entered. - * @since 7 - * @systemapi - */ - id(): number; - - /** - * Called when a subscriber information description is entered. - * @since 7 - * @systemapi - */ - info(): string; - - /** - * Called when data is obtained. - * @since 7 - * @systemapi - */ - abstract get(): T; - - /** - * Called when data is created. - * @since 7 - * @systemapi - */ - abstract set(newValue: T): void; - - /** - * Called when a two-way synchronization is created. - * @since 7 - * @systemapi - */ - createTwoWaySync(subscribeMe?: IPropertySubscriber, info?: string): SyncedPropertyTwoWay; - - /** - * Called when a one-way synchronization is created. - * @since 7 - * @systemapi - */ - createOneWaySync(subscribeMe?: IPropertySubscriber, info?: string): SyncedPropertyOneWay; - - /** - * Called when the subscriber is unlinked. - * @since 7 - * @systemapi - */ - unlinkSuscriber(subscriberId: number): void; - - /** - * Called when the notification has changed. - * @since 7 - * @systemapi - */ - protected notifyHasChanged(newValue: T): void; - - /** - * Called when the notification property is read. - * @since 7 - * @systemapi - */ - protected notifyPropertyRead(): void; - - /** - * Called when the number of users is queried. - * @since 7 - * @systemapi - */ - numberOfSubscrbers(): number; -} - -/** - * Defines the state value. - * @since 7 - * @systemapi - */ -declare class SyncedPropertyTwoWay - extends SubscribedAbstractProperty - implements ISinglePropertyChangeSubscriber -{ - /** - * Sources of synchronization attributes bidirectionally. - * @since 7 - * @systemapi - */ - private source_; - - /** - * constructor parameters. - * @since 7 - * @systemapi - */ - constructor(source: SubscribedAbstractProperty, subscribeMe?: IPropertySubscriber, info?: string); - - /** - * Called when processing information about to be deleted. - * @since 7 - * @systemapi - */ - aboutToBeDeleted(unsubscribeMe?: IPropertySubscriber): void; - - /** - * Information Changed. - * @since 7 - * @systemapi - */ - hasChanged(newValue: T): void; - - /** - * Called when data is obtained. - * @since 7 - * @systemapi - */ - get(): T; - - /** - * Called when data is created. - * @since 7 - * @systemapi - */ - set(newValue: T): void; -} - -/** - * Defines the prop state value. - * @since 7 - * @systemapi - */ -declare class SyncedPropertyOneWay - extends SubscribedAbstractProperty - implements ISinglePropertyChangeSubscriber -{ - /** - * Pack value for single-item binding. - * @since 7 - * @systemapi - */ - private wrappedValue_; - - /** - * Sources of synchronization attributes bidirectionally. - * @since 7 - * @systemapi - */ - private source_; - - /** - * Constructor parameters. - * @since 7 - * @systemapi - */ - constructor(source: SubscribedAbstractProperty, subscribeMe?: IPropertySubscriber, info?: string); - - /** - * Called when processing information about to be deleted. - * @since 7 - * @systemapi - */ - aboutToBeDeleted(unsubscribeMe?: IPropertySubscriber): void; - - /** - * Information Changed. - * @since 7 - * @systemapi - */ - hasChanged(newValue: T): void; - - /** - * Called when data is obtained. - * @since 7 - * @systemapi - */ - get(): T; - - /** - * Called when data is created. - * @since 7 - * @systemapi - */ - set(newValue: T): void; -} - /** * Defines the AppStorage interface. * @since 7 @@ -365,14 +102,6 @@ declare class AppStorage { * @since 7 */ declare class Environment { - /** - * Constructor. - * @since 7 - * @systemapi - * @hide - */ - constructor(); - /** * Called when a property value is checked. * @since 7 @@ -444,15 +173,7 @@ declare enum LayoutDirection { * @since 7 */ declare class PersistentStorage { - /** - * Constructor parameters. - * @since 7 - * @systemapi - * @hide - */ - constructor(appStorage: AppStorage, storage: Storage); - - /** + /** * Called when a persistence property is stored. * @since 7 */ @@ -481,114 +202,3 @@ declare class PersistentStorage { */ static Keys(): Array; } - -/** - * Defines the base class of storage. - * @since 7 - * @systemapi - */ -declare class Storage { - /** - * Constructor parameters. - * @since 7 - * @systemapi - * @hide - */ - constructor(needCrossThread?: boolean, file?: string); - - /** - * Called when data is obtained. - * @since 7 - * @systemapi - * @hide - */ - get(key: string): string | undefined; - - /** - * Called when setting. - * @since 7 - * @systemapi - * @hide - */ - set(key: string, val: any): void; - - /** - * Called when data is cleared. - * @since 7 - * @systemapi - * @hide - */ - clear(): void; - - /** - * Called when data is deleted. - * @since 7 - * @systemapi - * @hide - */ - delete(key: string): void; -} - -/** - * Defines the Subscribale base class. - * @since 7 - * @systemapi - * @hide - */ -declare abstract class SubscribaleAbstract { - /** - * Returns the ownership attribute set by the. - * @since 7 - * @systemapi - * @hide - */ - private owningProperties_: Set; - - /** - * Constructor. - * @since 7 - * @systemapi - * @hide - */ - constructor(); - - /** - * Called when the notification property has changed. - * @since 7 - * @systemapi - * @hide - */ - protected notifyPropertyHasChanged(propName: string, newValue: any): void; - - /** - * Called when adding an already owned property. - * @since 7 - * @systemapi - * @hide - */ - public addOwningProperty(subscriber: IPropertySubscriber): void; - - /** - * Called when an already owned property is deleted. - * @since 7 - * @systemapi - * @hide - */ - public removeOwningProperty(property: IPropertySubscriber): void; - - /** - * Called when an already owned property is deleted by ID - * @since 7 - * @systemapi - * @hide - */ - public removeOwningPropertyById(subscriberId: number): void; -} - -/** - * Used for ide. - * @since 7 - * @systemapi - * @hide - */ -declare const appStorage: AppStorage; diff --git a/api/@internal/component/ets/xcomponent.d.ts b/api/@internal/component/ets/xcomponent.d.ts index 119d2f59ed..44c8e4b722 100644 --- a/api/@internal/component/ets/xcomponent.d.ts +++ b/api/@internal/component/ets/xcomponent.d.ts @@ -24,28 +24,11 @@ declare class XComponentController { */ constructor(); - /** - * get the id of surface created by XComponent. - * @since 8 - * @systemapi - */ - getXComponentSurfaceId(); - /** * get the context of native XComponent. * @since 8 */ getXComponentContext(); - - /** - * set the surface size created by XComponent. - * @since 8 - * @systemapi - */ - setXComponentSurfaceSize(value: { - surfaceWidth: number; - surfaceHeight: number; - }); } /** diff --git a/api/@internal/ets/lifecycle.d.ts b/api/@internal/ets/lifecycle.d.ts index f3937f561b..bc86244c6a 100644 --- a/api/@internal/ets/lifecycle.d.ts +++ b/api/@internal/ets/lifecycle.d.ts @@ -180,21 +180,6 @@ export declare interface LifecycleApp { */ onCreate?(): void; - /** - * Called when the window display mode of this ability changes, for example, from fullscreen mode - * to multi-window mode or from multi-window mode to fullscreen mode. - * - * @since 7 - * @syscap SystemCapability.Ability.AbilityRuntime.FAModel - * @param isShownInMultiWindow Specifies whether this ability is currently in multi-window mode. - * The value {@code true} indicates the multi-window mode, and {@code false} indicates another mode. - * @param newConfig Indicates the new configuration information about this Page ability. - * @return - - * @systemapi hide for inner use. - * @FAModelOnly - */ - onWindowDisplayModeChanged?(isShownInMultiWindow: boolean, newConfig: resourceManager.Configuration): void; - /** * Asks a user whether to start the migration. * diff --git a/api/@ohos.ability.wantConstant.d.ts b/api/@ohos.ability.wantConstant.d.ts index c571dbe255..fea9ac5f74 100644 --- a/api/@ohos.ability.wantConstant.d.ts +++ b/api/@ohos.ability.wantConstant.d.ts @@ -290,20 +290,6 @@ declare namespace wantConstant { */ FLAG_ABILITY_FORM_ENABLED = 0x00000020, - /** - * Indicates the grant for possible persisting on the URI. - * - * @systemapi Hide this for inner system use. - */ - FLAG_AUTH_PERSISTABLE_URI_PERMISSION = 0x00000040, - - /** - * Returns the result to the source ability slice. - * - * @systemapi Hide this for inner system use. - */ - FLAG_AUTH_PREFIX_URI_PERMISSION = 0x00000080, - /** * Supports multi-device startup in the distributed scheduling system. */ @@ -315,13 +301,6 @@ declare namespace wantConstant { */ FLAG_START_FOREGROUND_ABILITY = 0x00000200, - /** - * Indicates the continuation is reversible. - * - * @systemapi Hide this for inner system use. - */ - FLAG_ABILITY_CONTINUATION_REVERSIBLE = 0x00000400, - /** * Install the specified ability if it's not installed. */ diff --git a/api/@ohos.abilityAccessCtrl.d.ts b/api/@ohos.abilityAccessCtrl.d.ts index a7e2c44790..43865245af 100644 --- a/api/@ohos.abilityAccessCtrl.d.ts +++ b/api/@ohos.abilityAccessCtrl.d.ts @@ -39,41 +39,6 @@ import { AsyncCallback } from "./basic"; * @since 8 */ verifyAccessToken(tokenID: number, permissionName: string): Promise; - - /** - * Grants a specified user_grant permission to the given application. - * @param tokenID The tokenId of specified application. - * @param permissionName The permission name to be granted. - * @param permissionFlag Flag of permission state. - * @permission ohos.permission.GRANT_SENSITIVE_PERMISSIONS. - * @systemapi hid this for inner system use - * @since 8 - */ - grantUserGrantedPermission(tokenID: number, permissionName: string, permissionFlag: number): Promise; - grantUserGrantedPermission(tokenID: number, permissionName: string, permissionFlag: number, callback: AsyncCallback): void; - - /** - * Revokes a specified user_grant permission to the given application. - * @param tokenID The tokenId of specified application. - * @param permissionName The permission name to be revoked. - * @param permissionFlag Flag of permission state. - * @permission ohos.permission.REVOKE_SENSITIVE_PERMISSIONS. - * @systemapi hid this for inner system use - * @since 8 - */ - revokeUserGrantedPermission(tokenID: number, permissionName: string, permissionFlag: number): Promise; - revokeUserGrantedPermission(tokenID: number, permissionName: string, permissionFlag: number, callback: AsyncCallback): void; - - /** - * Queries specified permission flag of the given application. - * @param tokenID The tokenId of specified application. - * @param permissionName The permission name to be granted. - * @return Return permission flag. - * @permission ohos.permission.GET_SENSITIVE_PERMISSIONS or ohos.permission.GRANT_SENSITIVE_PERMISSIONS or ohos.permission.REVOKE_SENSITIVE_PERMISSIONS. - * @systemapi hid this for inner system use - * @since 8 - */ - getPermissionFlags(tokenID: number, permissionName: string): Promise; } /** diff --git a/api/@ohos.account.osAccount.d.ts b/api/@ohos.account.osAccount.d.ts index 20707b3af7..f10a91b755 100644 --- a/api/@ohos.account.osAccount.d.ts +++ b/api/@ohos.account.osAccount.d.ts @@ -38,22 +38,6 @@ declare namespace osAccount { * @syscap SystemCapability.Account.OsAccount */ interface AccountManager { - /** - * Activates a specified OS account. - *

- * If multiple OS accounts are available, you can call this method to enable a specific OS account - * to run in the foreground. Then, the OS account originally running in the foreground will be - * switched to the background. - *

- * @since 7 - * @param localId Indicates the local ID of the OS account. - * @return void. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION. - * @systemapi Hide this for inner system use. - */ - activateOsAccount(localId: number, callback: AsyncCallback): void; - activateOsAccount(localId: number): Promise; - /** * Checks whether the function of supporting multiple OS accounts is enabled. * @@ -126,55 +110,6 @@ declare namespace osAccount { isOsAccountVerified(localId: number, callback: AsyncCallback): void; isOsAccountVerified(localId?: number): Promise; - /** - * Removes an OS account based on its local ID. - * - * @since 7 - * @param localId Indicates the local ID of the OS account. - * @return void. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. - * @systemapi Hide this for inner system use. - */ - removeOsAccount(localId: number, callback: AsyncCallback): void; - removeOsAccount(localId: number): Promise; - - /** - * Sets constraints for an OS account based on its local ID. - * - * @since 7 - * @param localId Indicates the local ID of the OS account. - * @param constraints Indicates the constraints to set for the OS account. The value can be: - *
    - *
  • {@code constraint.wifi.set} - Indicates the constraint on configuring the Wi-Fi access point. - *
  • - *
  • {@code constraint.sms.use} - Indicates the constraint on sending and receiving short messages. - *
  • - *
  • {@code constraint.calls.outgoing} - Indicates the constraint on making calls.
  • - *
  • {@code constraint.unknown.sources.install} - Indicates the constraint on installing applications - * from unknown sources.
  • - *
- * @param enable Specifies whether to enable the constraint. - * @return void. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. - * @systemapi Hide this for inner system use. - */ - setOsAccountConstraints(localId: number, constraints: Array, enable: boolean, - callback: AsyncCallback): void; - setOsAccountConstraints(localId: number, constraints: Array, enable: boolean): Promise; - - /** - * Sets the local name for an OS account based on its local ID. - * - * @since 7 - * @param localId Indicates the local ID of the OS account. - * @param localName Indicates the local name to set for the OS account. - * @return void. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. - * @systemapi Hide this for inner system use. - */ - setOsAccountName(localId: number, localName: string, callback: AsyncCallback): void; - setOsAccountName(localId: number, localName: string): Promise; - /** * Obtains the number of all OS accounts created on a device. * @@ -215,16 +150,6 @@ declare namespace osAccount { getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback): void; getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise; - /** - * Queries the maximum number of OS accounts that can be created on a device. - * - * @since 7 - * @return Returns the maximum number of OS accounts that can be created. - * @systemapi Hide this for inner system use. - */ - queryMaxOsAccountNumber(callback: AsyncCallback): void; - queryMaxOsAccountNumber(): Promise; - /** * Obtains all constraints of an OS account based on its local ID. * @@ -236,17 +161,6 @@ declare namespace osAccount { getOsAccountAllConstraints(localId: number, callback: AsyncCallback>): void; getOsAccountAllConstraints(localId: number): Promise>; - /** - * Queries the list of all the OS accounts that have been created in the system. - * - * @since 7 - * @return Returns a list of OS accounts. - * @systemapi Hide this for inner system use. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. - */ - queryAllCreatedOsAccounts(callback: AsyncCallback>): void; - queryAllCreatedOsAccounts(): Promise>; - /** * Queries the id list of all activated OS accounts. * @@ -256,34 +170,6 @@ declare namespace osAccount { queryActivatedOsAccountIds(callback: AsyncCallback>): void; queryActivatedOsAccountIds(): Promise>; - /** - * Creates an OS account using the local name and account type. - * - * @since 7 - * @param localName Indicates the local name of the OS account to create. - * @param type Indicates the type of the OS account to create. - * {@link OsAccountType} specifies the account types available in the system. - * @return Returns information about the created OS account; returns {@code null} if the creation fails. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. - * @systemapi Hide this for inner system use. - */ - createOsAccount(localName: string, type: OsAccountType, callback: AsyncCallback): void; - createOsAccount(localName: string, type: OsAccountType): Promise; - - /** - * Creates an OS account using the account type and domain account info - * - * @since 8 - * @param type Indicates the type of the OS account to create. - * {@link OsAccountType} specifies the account types available in the system. - * @param domainInfo Indicates the domain account info. - * @return Returns information about the created OS account; returns {@code null} if the creation fails. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. - * @systemapi Hide this for inner system use. - */ - createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo, callback: AsyncCallback): void; - createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo): Promise; - /** * Queries information about the current OS account. * @@ -294,18 +180,6 @@ declare namespace osAccount { queryCurrentOsAccount(callback: AsyncCallback): void; queryCurrentOsAccount(): Promise; - /** - * Queries OS account information based on the local ID. - * - * @since 7 - * @param localId Indicates the local ID of the OS account. - * @return Returns the OS account information; returns {@code null} if the query fails. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION. - * @systemapi Hide this for inner system use. - */ - queryOsAccountById(localId: number, callback: AsyncCallback): void; - queryOsAccountById(localId: number): Promise; - /** * Obtains the type of this OS account from the current process. * @@ -332,32 +206,6 @@ declare namespace osAccount { getDistributedVirtualDeviceId(callback: AsyncCallback): void; getDistributedVirtualDeviceId(): Promise; - /** - * Obtains the profile photo of an OS account based on its local ID. - * - * @since 7 - * @param localId Indicates the local ID of the OS account. - * @return Returns the profile photo if obtained; - * returns {@code null} if the profile photo fails to be obtained. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. - * @systemapi Hide this for inner system use. - */ - getOsAccountProfilePhoto(localId: number, callback: AsyncCallback): void; - getOsAccountProfilePhoto(localId: number): Promise; - - /** - * Sets the profile photo for an OS account based on its local ID. - * - * @since 7 - * @param localId Indicates the local ID of the OS account. - * @param photo Indicates the profile photo to set for the OS account. - * @return void. - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. - * @systemapi Hide this for inner system use. - */ - setOsAccountProfilePhoto(localId: number, photo: string, callback: AsyncCallback): void; - setOsAccountProfilePhoto(localId: number, photo: string): Promise; - /** * Obtain localId according to serial number * @@ -377,33 +225,6 @@ declare namespace osAccount { */ getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback): void; getSerialNumberByOsAccountLocalId(localId: number): Promise; - - /** - * Subscribes to the change events of OS accounts. - *

- * When user change the account, the subscriber will receive a notification - * about the account change event. - * - * @since 7 - * @param type Event type. - * @param name Indicates the name of subscriber. - * @return void. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION - * @systemapi Hide this for inner system use. - */ - on(type: 'activate' | 'activating', name: string, callback: Callback): void; - - /** - * Unsubscribes from account events. - * - * @since 7 - * @param type Event type. - * @param name Indicates the name of subscriber. - * @return void. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION - * @systemapi Hide this for inner system use. - */ - off(type: 'activate' | 'activating', name: string, callback?: Callback): void; } /** @@ -536,99 +357,6 @@ declare namespace osAccount { * @syscap SystemCapability.Account.OsAccount */ class UserAuth { - /** - * Constructor to get the UserAuth class instance. - * - * @since 8 - * @return Returns the UserAuth class instance. - * @systemapi Hide this for inner system use. - */ - constructor(); - - /** - * Gets version information. - * - * @since 8 - * @return Returns the version information. - * @systemapi Hide this for inner system use. - */ - getVersion(): number; - - /** - * Checks whether the authentication capability is available. - * - * @since 8 - * @param authType Indicates the credential type for authentication. - * @param authTrustLevel Indicates the trust level of authentication result. - * @return Returns a status result. - * @permission ohos.permission.ACCESS_USER_AUTH_INTERNAL - * @systemapi Hide this for inner system use. - */ - getAvailableStatus(authType: AuthType, authTrustLevel: AuthTrustLevel): number; - - /** - * Gets the property based on the specified request information. - * - * @since 8 - * @param request Indicates the request information, including authentication type, and property type list. - * @return Returns an executor property. - * @permission ohos.permission.ACCESS_USER_AUTH_INTERNAL - * @systemapi Hide this for inner system use. - */ - getProperty(request: GetPropertyRequest, callback: AsyncCallback): void; - getProperty(request: GetPropertyRequest): Promise; - - /** - * Sets property that can be used to initialize algorithms. - * - * @since 8 - * @param request Indicates the request information, including authentication type and the key-value to be set. - * @return Returns a number value indicating whether the property setting was successful. - * @permission ohos.permission.ACCESS_USER_AUTH_INTERNAL - * @systemapi Hide this for inner system use. - */ - setProperty(request: SetPropertyRequest, callback: AsyncCallback): void; - setProperty(request: SetPropertyRequest): Promise; - - /** - * Executes authentication. - * - * @since 8 - * @param challenge Indicates the challenge value. - * @param authType Indicates the authentication type. - * @param authTrustLevel Indicates the trust level of authentication result. - * @param callback Indicates the callback to get result and acquireInfo. - * @return Returns a context ID for cancellation. - * @permission ohos.permission.ACCESS_USER_AUTH_INTERNAL - * @systemapi Hide this for inner system use. - */ - auth(challenge: Uint8Array, authType: AuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array; - - /** - * Executes user authentication. - * - * @since 8 - * @param userId Indicates the user identification. - * @param challenge Indicates the challenge value. - * @param authType Indicates the authentication type. - * @param authTrustLevel Indicates the trust level of authentication result. - * @param callback Indicates the callback to get result and acquireInfo. - * @return Returns a context ID for cancellation. - * @permission ohos.permission.ACCESS_USER_AUTH_INTERNAL - * @systemapi Hide this for inner system use. - */ - authUser(userId: number, challenge: Uint8Array, authType: AuthType, authTrustLevel: AuthTrustLevel, callback: IUserAuthCallback): Uint8Array; - - /** - * Cancels authentication with context ID. - * - * @since 8 - * @param contextID Indicates the authentication context ID. - * @return Returns a number indicating whether the cancellation was successful. - * @permission ohos.permission.ACCESS_USER_AUTH_INTERNAL - * @systemapi Hide this for inner system use. - */ - cancelAuth(contextID: Uint8Array): number; } /** @@ -639,32 +367,6 @@ declare namespace osAccount { * @syscap SystemCapability.Account.OsAccount */ class PINAuth { - /** - * Constructor to get the PINAuth class instance. - * - * @since 8 - * @return Returns the PINAuth class instance. - * @systemapi Hide this for inner system use. - */ - constructor(); - - /** - * Register inputer. - * - * @param inputer Indicates the password input box callback - * @return boolean Indicates the registration succeeded or failed. - * @permission ohos.permission.ACCESS_PIN_AUTH - * @systemapi Hide this for inner system use. - */ - registerInputer(inputer: IInputer): boolean; - - /** - * Unregister inputer. - * - * @permission ohos.permission.ACCESS_PIN_AUTH - * @systemapi Hide this for inner system use. - */ - unregisterInputer(): void; } /** @@ -675,695 +377,6 @@ declare namespace osAccount { * @syscap SystemCapability.Account.OsAccount */ class UserIdentityManager { - /** - * Constructor to get the UserIdentityManager class instance. - * - * @since 8 - * @return Returns the UserIdentityManager class instance. - * @systemapi Hide this for inner system use. - */ - constructor(); - - /** - * Opens session. - *

- * Start an IDM operation to obtain challenge value. - * A challenge value of 0 indicates that opensession failed. - * - * @since 8 - * @return Returns a challenge value. - * @permission ohos.permission.MANAGE_USER_IDM - * @systemapi Hide this for inner system use. - */ - openSession(callback: AsyncCallback): void; - openSession(): Promise; - - /** - * Adds credential. - *

- * Add user credential information, pass in credential addition method and credential information - * (credential type, subclass, if adding user's non password credentials, pass in password authentication token), - * and get the result / acquireinfo callback. - * - * @since 8 - * @param credentialInfo Indicates the credential information. - * @param callback Indicates the callback to get results and acquireInfo. - * @permission ohos.permission.MANAGE_USER_IDM - * @systemapi Hide this for inner system use. - */ - addCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void; - - /** - * Updates credential. - * - * @since 8 - * @param credentialInfo Indicates the credential information. - * @param callback Indicates the callback to get results and acquireInfo. - * @permission ohos.permission.MANAGE_USER_IDM - * @systemapi Hide this for inner system use. - */ - updateCredential(credentialInfo: CredentialInfo, callback: IIdmCallback): void; - - /** - * Closes session. - *

- * End an IDM operation. - * - * @since 8 - * @permission ohos.permission.MANAGE_USER_IDM - * @systemapi Hide this for inner system use. - */ - closeSession(): void; - - /** - * Cancels entry with a challenge value. - * - * @since 8 - * @param challenge Indicates the challenge value. - * @return Returns a number indicating whether the cancellation was successful. - * @permission ohos.permission.MANAGE_USER_IDM - * @systemapi Hide this for inner system use. - */ - cancel(challenge: Uint8Array): number; - - /** - * Deletes the user with the authentication token. - * - * @since 8 - * @param token Indicates the authentication token. - * @param callback Indicates the callback to get the deletion result. - * @permission ohos.permission.MANAGE_USER_IDM - * @systemapi Hide this for inner system use. - */ - delUser(token: Uint8Array, callback: IIdmCallback): void; - - /** - * Deletes the user credential information. - * - * @since 8 - * @param credentialId Indicates the credential index. - * @param token Indicates the authentication token. - * @param callback Indicates the callback to get the deletion result. - * @permission ohos.permission.MANAGE_USER_IDM - * @systemapi Hide this for inner system use. - */ - delCred(credentialId: Uint8Array, token: Uint8Array, callback: IIdmCallback): void; - - /** - * Gets authentication information. - * - * @since 8 - * @param authType Indicates the authentication type. - * @param callback Indicates the callback to get all registered credential information of - * the specified type for the current user. - * @permission ohos.permission.ACCESS_USER_IDM - * @systemapi Hide this for inner system use. - */ - getAuthInfo(callback: AsyncCallback>, authType?: AuthType): void; - getAuthInfo(authType?: AuthType): Promise>; - } - - /** - * Password data callback. - * - * @name IInputData - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface IInputData { - /** - * Notifies to set data. - * - * @since 8 - * @param pinSubType Indicates the credential subtype for authentication. - * @param data Indicates the data to set. - * @systemapi Hide this for inner system use. - */ - onSetData: (pinSubType: AuthSubType, data: Uint8Array) => void; - } - - /** - * Password input box callback. - * - * @name IInputer - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface IInputer { - /** - * Notifies to get data. - * - * @since 8 - * @param callback Indicates the password data callback. - * @systemapi Hide this for inner system use. - */ - onGetData: (callback: IInputData) => void; - } - - /** - * User authentication callback. - * - * @name IUserAuthCallback - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface IUserAuthCallback { - /** - * The authentication result code is returned through the callback. - * - * @since 8 - * @param result Indicates the authentication result code. - * @param extraInfo Indicates the specific information for different situation. - * If the authentication is passed, the authentication token is returned in extrainfo, - * If the authentication fails, the remaining authentication times are returned in extrainfo, - * If the authentication executor is locked, the freezing time is returned in extrainfo. - * @systemapi Hide this for inner system use. - */ - onResult: (result: number, extraInfo: AuthResult) => void; - - /** - * During an authentication, the TipsCode is returned through the callback. - * - * @since 8 - * @param module Indicates the executor type for authentication. - * @param acquire Indicates the tip code for different authentication executor. - * @param extraInfo reserved parameter. - * @systemapi Hide this for inner system use. - */ - onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; - } - - /** - * Identity manager callback. - * - * @name IIdmCallback - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface IIdmCallback { - /** - * The authentication result code is returned through the callback. - * - * @since 8 - * @param result Indicates the authentication result code. - * @param extraInfo pass the specific information for different situation. - * @systemapi Hide this for inner system use. - */ - onResult: (result: number, extraInfo: RequestResult) => void; - - /** - * During an authentication, the TipsCode is returned through the callback. - * @since 8 - * @param module Indicates the executor type for authentication. - * @param acquire Indicates the tip code for different authentication executor. - * @param extraInfo reserved parameter. - * @systemapi Hide this for inner system use. - */ - onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; - } - - /** - * Provides the information of the get property request. - * - * @name GetPropertyRequest - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface GetPropertyRequest { - /** - * Indicates the authentication credential type. - */ - authType: AuthType; - - /** - * Indicates the array of property types to get. - */ - keys: Array; - } - - /** - * Provides the information of the set property request. - * - * @name SetPropertyRequest - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface SetPropertyRequest { - /** - * Indicates the authentication credential type. - */ - authType: AuthType; - - /** - * Indicates the property type to set. - */ - key: SetPropertyType; - - /** - * Indicates the information to set. - */ - setInfo: Uint8Array; - } - - /** - * Provides the property of executor. - * - * @name ExecutorProperty - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface ExecutorProperty { - /** - * Indicates the result. - */ - result: number; - - /** - * Indicates the authentication credential subtype. - */ - authSubType: AuthSubType; - - /** - * Indicates the remaining times. - */ - remainTimes?: number; - - /** - * Indicates the freezing times. - */ - freezingTime?: number; - } - - /** - * Indicates the information of authentication result. - * - * @name AuthResult - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface AuthResult { - /** - * Indicates the authentication token. - */ - token?: Uint8Array; - - /** - * Indicates the remaining times. - */ - remainTimes?: number; - - /** - * Indicates the freezing times. - */ - freezingTime?: number; - } - - /** - * Indicates the information of credential. - * - * @name CredentialInfo - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface CredentialInfo { - /** - * Indicates the credential type. - */ - credType: AuthType; - - /** - * Indicates the credential subtype. - */ - credSubType: AuthSubType; - - /** - * Indicates the authentication token. - */ - token: Uint8Array; - } - - /** - * Indicates the information of request result. - * - * @name RequestResult - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface RequestResult { - /** - * Indicates the credential index. - */ - credentialId?: Uint8Array; - } - - /** - * Indicates the information of enrolled credential. - * - * @name EnrolledCredInfo - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - interface EnrolledCredInfo { - /** - * Indicates the credential index. - */ - credentialId: Uint8Array; - - /** - * Indicates the authentication credential type. - */ - authType: AuthType; - - /** - * Indicates the authentication credential subtype. - */ - authSubType: AuthSubType; - - /** - * Indicates the credential template ID. - */ - templateId: Uint8Array; - } - - /** - * Indicates the property type to get. - * - * @name GetPropertyType - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - enum GetPropertyType { - /** - * Indicates the authentication subtype. - */ - AUTH_SUB_TYPE = 1, - - /** - * Indicates the remain times. - */ - REMAIN_TIMES = 2, - - /** - * Indicates the freezing time. - */ - FREEZING_TIME = 3 - } - - /** - * Indicates the property type to set. - * - * @name SetPropertyType - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - enum SetPropertyType { - /** - * Indicates the init algorithm. - */ - INIT_ALGORITHM = 1, - } - - /** - * Indicates the credential type for authentication. - * - * @name AuthType - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - enum AuthType { - /** - * Indicates the PIN authentication type. - */ - PIN = 1, - - /** - * Indicates the FACE authentication type. - */ - FACE = 2 - } - - /** - * Indicates the credential subtype for authentication. - * - * @name AuthSubType - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - enum AuthSubType { - /** - * Indicates the 6-digit credential. - */ - PIN_SIX = 10000, - - /** - * Indicates the self-defined digital credential. - */ - PIN_NUMBER = 10001, - - /** - * Indicates the self-defined mixed credential. - */ - PIN_MIXED = 10002, - - /** - * Indicates the 2D face credential. - */ - FACE_2D = 20000, - - /** - * Indicates the 3D face credential. - */ - FACE_3D = 20001 - } - - /** - * Indicates the trusted level of authentication results. - * - * @name AuthTrustLevel - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - enum AuthTrustLevel { - /** - * Indicates the trusted level 1. - */ - ATL1 = 10000, - - /** - * Indicates the trusted level 2. - */ - ATL2 = 20000, - - /** - * Indicates the trusted level 3. - */ - ATL3 = 30000, - - /** - * Indicates the trusted level 4. - */ - ATL4 = 40000 - } - - /** - * Indicates the module of acquired information. - * - * @name Module - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - enum Module { - /** - * Indicates the information acquired from FaceAuth. - */ - FACE_AUTH = 1 - } - - /** - * Indicates the enumeration of authentication result code. - * - * @name ResultCode - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - enum ResultCode { - /** - * Indicates that authentication is success or ability is supported. - */ - SUCCESS = 0, - - /** - * Indicates the authenticator fails to identify user. - */ - FAIL = 1, - - /** - * Indicates other errors. - */ - GENERAL_ERROR = 2, - - /** - * Indicates that authentication has been canceled. - */ - CANCELED = 3, - - /** - * Indicates that authentication has timed out. - */ - TIMEOUT = 4, - - /** - * Indicates that this authentication type is not supported. - */ - TYPE_NOT_SUPPORT = 5, - - /** - * Indicates that the authentication trust level is not supported. - */ - TRUST_LEVEL_NOT_SUPPORT = 6, - - /** - * Indicates that the authentication task is busy. Wait for a few seconds and try again. - */ - BUSY = 7, - - /** - * Indicates incorrect parameters. - */ - INVALID_PARAMETERS = 8, - - /** - * Indicates that the authenticator is locked. - */ - LOCKED = 9, - - /** - * Indicates that the user has not enrolled the authenticator. - */ - NOT_ENROLLED = 10 - } - - /** - * Indicates the enumeration of prompt codes in the process of face authentication. - * - * @name FaceTipsCode - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - enum FaceTipsCode { - /** - * Indicates that the obtained facial image is too bright due to high illumination. - */ - FACE_AUTH_TIP_TOO_BRIGHT = 1, - - /** - * Indicates that the obtained facial image is too dark due to low illumination. - */ - FACE_AUTH_TIP_TOO_DARK = 2, - - /** - * Indicates that the face is too close to the device. - */ - FACE_AUTH_TIP_TOO_CLOSE = 3, - - /** - * Indicates that the face is too far away from the device. - */ - FACE_AUTH_TIP_TOO_FAR = 4, - - /** - * Indicates that the device is too high, and that only the upper part of the face is captured. - */ - FACE_AUTH_TIP_TOO_HIGH = 5, - - /** - * Indicates that the device is too low, and that only the lower part of the face is captured. - */ - FACE_AUTH_TIP_TOO_LOW = 6, - - /** - * Indicates that the device is deviated to the right, and that only the right part of the face is captured. - */ - FACE_AUTH_TIP_TOO_RIGHT = 7, - - /** - * Indicates that the device is deviated to the left, and that only the left part of the face is captured. - */ - FACE_AUTH_TIP_TOO_LEFT = 8, - - /** - * Indicates that the face moves too fast during facial information collection. - */ - FACE_AUTH_TIP_TOO_MUCH_MOTION = 9, - - /** - * Indicates that the face is not facing the device. - */ - FACE_AUTH_TIP_POOR_GAZE = 10, - - /** - * Indicates that no face is detected. - */ - FACE_AUTH_TIP_NOT_DETECTED = 11, - } - - /** - * Indicates the enumeration of prompt codes in the process of fingerprint authentication. - * - * @name FingerprintTips - * @since 8 - * @syscap SystemCapability.Account.OsAccount - * @systemapi Hide this for inner system use. - */ - enum FingerprintTips { - /** - * Indicates that the image acquired is good. - */ - FINGERPRINT_TIP_GOOD = 0, - - /** - * Indicates that the fingerprint image is too noisy due to suspected or detected dirt on the sensor. - */ - FINGERPRINT_TIP_IMAGER_DIRTY = 1, - - /** - * Indicates that the fingerprint image is too noisy to process due to a detected condition. - */ - FINGERPRINT_TIP_INSUFFICIENT = 2, - - /** - * Indicates that only a partial fingerprint image is detected. - */ - FINGERPRINT_TIP_PARTIAL = 3, - - /** - * Indicates that the fingerprint image is incomplete due to quick motion. - */ - FINGERPRINT_TIP_TOO_FAST = 4, - - /** - * Indicates that the fingerprint image is unreadable due to lack of motion. - */ - FINGERPRINT_TIP_TOO_SLOW = 5 } } diff --git a/api/@ohos.application.abilityManager.d.ts b/api/@ohos.application.abilityManager.d.ts index b71565531c..68280aa80e 100644 --- a/api/@ohos.application.abilityManager.d.ts +++ b/api/@ohos.application.abilityManager.d.ts @@ -26,46 +26,6 @@ import { ExtensionRunningInfo } from './application/ExtensionRunningInfo'; * @permission N/A */ declare namespace abilityManager { - - /** - * @name AbilityState - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi Hide this for inner system use. - * @permission N/A - */ - export enum AbilityState { - INITIAL = 0, - FOREGROUND = 9, - BACKGROUND = 10, - FOREGROUNDING = 11, - BACKGROUNDING = 12 - } - - /** - * Updates the configuration by modifying the configuration. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param config Indicates the new configuration. - * @systemapi Hide this for inner system use. - * @return - - * @permission ohos.permission.UPDATE_CONFIGURATION - */ - function updateConfiguration(config: Configuration, callback: AsyncCallback): void; - function updateConfiguration(config: Configuration): Promise; - - /** - * Get information about running abilitys - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi Hide this for inner system use. - * @return Returns the array of {@link AbilityRunningInfo}. - * @permission ohos.permission.GET_RUNNING_INFO - */ - function getAbilityRunningInfos(): Promise>; - function getAbilityRunningInfos(callback: AsyncCallback>): void; } export default abilityManager; \ No newline at end of file diff --git a/api/@ohos.application.appManager.d.ts b/api/@ohos.application.appManager.d.ts index a116e01990..d14eaa9ed2 100644 --- a/api/@ohos.application.appManager.d.ts +++ b/api/@ohos.application.appManager.d.ts @@ -27,58 +27,6 @@ import { ProcessRunningInfo } from './application/ProcessRunningInfo'; * @permission N/A */ declare namespace appManager { - /** - * Register application state observer. - * - * @default - - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param observer The application state observer. - * @systemapi hide this for inner system use - * @return Returns the number code of the observer. - * @permission ohos.permission.RUNNING_STATE_OBSERVER - */ - function registerApplicationStateObserver(observer: ApplicationStateObserver): number; - - /** - * Unregister application state observer. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param observerId Indicates the number code of the observer. - * @systemapi hide this for inner system use - * @return - - * @permission ohos.permission.RUNNING_STATE_OBSERVER - */ - function unregisterApplicationStateObserver(observerId: number, callback: AsyncCallback): void; - function unregisterApplicationStateObserver(observerId: number): Promise; - - /** - * getForegroundApplications. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide this for inner system use - * @return Returns the list of AppStateData. - * @permission ohos.permission.GET_RUNNING_INFO - */ - function getForegroundApplications(callback: AsyncCallback>): void; - function getForegroundApplications(): Promise>; - - /** - * Kill process with account. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param bundleName The process bundle name. - * @param accountId The account id. - * @systemapi hide this for inner system use - * @return - - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS and ohos.permission.CLEAN_BACKGROUND_PROCESSES - */ - function killProcessWithAccount(bundleName: string, accountId: number): Promise; - function killProcessWithAccount(bundleName: string, accountId: number, callback: AsyncCallback): void; - /** * Is user running in stability test. * @@ -100,28 +48,6 @@ declare namespace appManager { function getProcessRunningInfos(): Promise>; function getProcessRunningInfos(callback: AsyncCallback>): void; - /** - * Kill processes by bundle name - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param bundleName bundle name. - * @systemapi hide this for inner system use - * @permission ohos.permission.CLEAN_BACKGROUND_PROCESSES - */ - function killProcessesByBundleName(bundleName: string): Promise; - function killProcessesByBundleName(bundleName: string, callback: AsyncCallback); - - /** - * Clear up application data by bundle name - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param bundleName bundle name. - * @systemapi hide this for inner system use - * @permission ohos.permission.CLEAN_APPLICATION_DATA - */ - function clearUpApplicationData(bundleName: string): Promise; - function clearUpApplicationData(bundleName: string, callback: AsyncCallback); - /** * Is it a ram-constrained device * @since 7 diff --git a/api/@ohos.application.formHost.d.ts b/api/@ohos.application.formHost.d.ts index 382bbde363..7100521231 100644 --- a/api/@ohos.application.formHost.d.ts +++ b/api/@ohos.application.formHost.d.ts @@ -27,245 +27,5 @@ import formInfo from './@ohos.application.formInfo' * @systemapi hide for inner use. */ declare namespace formHost { - /** - * Deletes an obtained form by its ID. - * - *

After this method is called, the form won't be available for use by the application and the Form Manager - * Service no longer keeps the cache information about the form.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formId Indicates the form ID - * @return - - * @permission ohos.permission.REQUIRE_FORM - */ - function deleteForm(formId: string, callback: AsyncCallback): void; - function deleteForm(formId: string): Promise; - - /** - * Releases an obtained form by its ID. - * - *

After this method is called, the form won't be available for use by the application, but the Form Manager - * Service still keeps the cache information about the form, so that the application can quickly obtain it based on - * the {@code formId}.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formId Indicates the form ID - * @param isReleaseCache Indicates whether or not release cache - * @return - - * @permission ohos.permission.REQUIRE_FORM - */ - function releaseForm(formId: string, callback: AsyncCallback): void; - function releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback): void; - function releaseForm(formId: string, isReleaseCache?: boolean): Promise; - - /** - * Requests for form update. - * - *

This method must be called when the application has detected that a system setting item (such as the language, - * resolution, or screen orientation) being listened for has changed. Upon receiving the update request, the form - * provider automatically updates the form data (if there is any update) through the form framework, with the update - * process being unperceivable by the application.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formId Indicates the ID of the form to update. - * @return - - * @permission ohos.permission.REQUIRE_FORM - */ - function requestForm(formId: string, callback: AsyncCallback): void; - function requestForm(formId: string): Promise; - - /** - * Converts a specified temporary form that has been obtained by the application into a normal form. - * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formId Indicates the ID of the temporary form to convert. - * @return - - * @permission ohos.permission.REQUIRE_FORM - */ - function castTempForm(formId: string, callback: AsyncCallback): void; - function castTempForm(formId: string): Promise; - - /** - * Sends a notification to the form framework to make the specified forms visible. - * - *

After this method is successfully called, onVisibilityChange will be called to notify the form provider of - * the form visibility change event.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formIds Indicates the IDs of the forms to be made visible. - * @return - - * @permission ohos.permission.REQUIRE_FORM - */ - function notifyVisibleForms(formIds: Array, callback: AsyncCallback): void; - function notifyVisibleForms(formIds: Array): Promise; - - /** - * Sends a notification to the form framework to make the specified forms invisible. - * - *

After this method is successfully called, onVisibilityChange will be called to notify the form provider of - * the form visibility change event.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formIds Indicates the IDs of the forms to be made invisible. - * @return - - * @permission ohos.permission.REQUIRE_FORM - */ - function notifyInvisibleForms(formIds: Array, callback: AsyncCallback): void; - function notifyInvisibleForms(formIds: Array): Promise; - - /** - * Notify the form framework to make the specified forms updatable. - * - *

You can use this method to set form refresh state to true, the form can receive new - * update from service.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formIds Indicates the IDs of the forms to be made invisible. - * @return - - * @permission ohos.permission.REQUIRE_FORM - */ - function enableFormsUpdate(formIds: Array, callback: AsyncCallback): void; - function enableFormsUpdate(formIds: Array): Promise; - - /** - * Notifys the form framework to make the specified forms non updatable. - * - *

You can use this method to set form refresh state to false, the form do not receive - * new update from service.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formIds Indicates the IDs of the forms to be made invisible. - * @return - - * @permission ohos.permission.REQUIRE_FORM - */ - function disableFormsUpdate(formIds: Array, callback: AsyncCallback): void; - function disableFormsUpdate(formIds: Array): Promise; - - /** - * Checks whether the system is ready. - * - *

You can use this method to obtain the system is ready.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @return - - */ - function isSystemReady(callback: AsyncCallback): void; - function isSystemReady(): Promise; - - /** - * Obtains the FormInfo objects provided by all applications on the device. - * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @return Returns the {@link FormInfo} - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - */ - function getAllFormsInfo(callback: AsyncCallback>): void; - function getAllFormsInfo(): Promise>; - - /** - * Obtains the FormInfo objects provided by a specified application on the device. - * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param bundleName Indicates the bundle name of the application. - * @param moduleName Indicates the module name of the application. - * @return Returns the {@link FormInfo} - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - */ - function getFormsInfo(bundleName: string, callback: AsyncCallback>): void; - function getFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback>): void; - function getFormsInfo(bundleName: string, moduleName?: string): Promise>; - - /** - * Deletes invalid forms of the application in the Form Manager Service based on the list of. - * - *

You can use this method to delete invalid forms of the application.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formIds Indicates the specify form id. - * @return Returns the number of invalid forms deleted by the Form Manager Service - * @permission ohos.permission.REQUIRE_FORM. - */ - function deleteInvalidForms(formIds: Array, callback: AsyncCallback): void; - function deleteInvalidForms(formIds: Array): Promise; - - /** - * Obtains the Form state. - * - *

You can use this method to obtains the form state.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param want Indicates want of the form. - * @return Returns form state {@link FormStateInfo} - * @permission ohos.permission.GET_BUNDLE_INFO and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED. - */ - function acquireFormState(want: Want, callback: AsyncCallback): void; - function acquireFormState(want: Want): Promise; - - /** - * Listens to the event of uninstall form. - * - *

You can use this method to listen to the event of uninstall form.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param type Indicates event type. - * @return - - */ - function on(type: "formUninstall", callback: Callback): void; - - /** - * Cancels listening to the event of uninstall form. - * - *

You can use this method to cancel listening to the event of uninstall form.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param type Indicates event type. - * @return - - */ - function off(type: "formUninstall", callback?: Callback): void; - - /** - * notify form is Visible - * - *

You can use this method to notify form visible state.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formIds Indicates the specify form id. - * @param isVisible Indicates whether visible. - * @return - - * @permission ohos.permission.REQUIRE_FORM. - */ - function notifyFormsVisible(formIds: Array, isVisible: boolean, callback: AsyncCallback): void; - function notifyFormsVisible(formIds: Array, isVisible: boolean): Promise; - - /** - * notify form enable update state. - * - *

You can use this method to notify form enable update state.

- * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @param formIds Indicates the specify form id. - * @param isEnableUpdate Indicates whether enable update. - * @return - - * @permission ohos.permission.REQUIRE_FORM. - */ - function notifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean, callback: AsyncCallback): void; - function notifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean): Promise; } export default formHost; \ No newline at end of file diff --git a/api/@ohos.application.formInfo.d.ts b/api/@ohos.application.formInfo.d.ts index cbb5746063..f731647f60 100644 --- a/api/@ohos.application.formInfo.d.ts +++ b/api/@ohos.application.formInfo.d.ts @@ -292,20 +292,6 @@ declare namespace formInfo { * @syscap SystemCapability.Ability.Form */ enum FormParam { - /** - * Indicates the key specifying the ID of the form to be obtained, which is represented as - * want: { - * "parameters": { - * IDENTITY_KEY: 1L - * } - * }. - * - * @since 8 - * @syscap SystemCapability.Ability.Form - * @systemapi hide for inner use. - */ - IDENTITY_KEY = "ohos.extra.param.key.form_identity", - /** * Indicates the key specifying the grid style of the form to be obtained, which is represented as * want: { diff --git a/api/@ohos.application.missionManager.d.ts b/api/@ohos.application.missionManager.d.ts index dc6a871c31..e5d85d5477 100644 --- a/api/@ohos.application.missionManager.d.ts +++ b/api/@ohos.application.missionManager.d.ts @@ -29,118 +29,6 @@ import StartOptions from "./@ohos.application.StartOptions"; * @systemapi hide for inner use. */ declare namespace missionManager { - /** - * Register the missionListener to ams. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param listener Indicates the MissionListener to be registered. - * @return The index number of the MissionListener. - */ - function registerMissionListener(listener: MissionListener): number; - - /** - * Unrgister the missionListener to ams. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param listenerId Indicates the listener id to be unregistered. - * @return - - */ - function unregisterMissionListener(listenerId: number, callback: AsyncCallback): void; - function unregisterMissionListener(listenerId: number): Promise; - - /** - * Get the missionInfo with the given missionId. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param deviceId Indicates the device to be queried. - * @param missionId Indicates mission id to be queried. - * @return the {@link MissionInfo} of the given id. - */ - function getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback): void; - function getMissionInfo(deviceId: string, missionId: number): Promise; - - /** - * Get the missionInfo with the given missionId. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param deviceId Indicates the device to be queried. - * @param numMax Indicates the maximum number of returned missions. - * @return The array of the {@link MissionInfo}. - */ - function getMissionInfos(deviceId: string, numMax: number, callback: AsyncCallback>): void; - function getMissionInfos(deviceId: string, numMax: number): Promise>; - - /** - * Get the mission snapshot with the given missionId. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param deviceId Indicates the device to be queried. - * @param missionId Indicates mission id to be queried. - * @return The {@link MissionSnapshot} of the given id. - */ - function getMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback): void; - function getMissionSnapShot(deviceId: string, missionId: number): Promise; - - /** - * Lock the mission. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param missionId Indicates mission id to be locked. - * @return - - */ - function lockMission(missionId: number, callback: AsyncCallback): void; - function lockMission(missionId: number): Promise; - - /** - * Unlock the mission. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param missionId Indicates mission id to be unlocked. - * @return - - */ - function unlockMission(missionId: number, callback: AsyncCallback): void; - function unlockMission(missionId: number): Promise; - - /** - * Clear the given mission in the ability manager service. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param missionId Indicates mission id to be cleared. - * @return - - */ - function clearMission(missionId: number, callback: AsyncCallback): void; - function clearMission(missionId: number): Promise; - - /** - * Clear all missions in the ability manager service. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @return - - */ - function clearAllMissions(callback: AsyncCallback): void; - function clearAllMissions(): Promise; - - /** - * Schedule the given mission to foreground. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param missionId Indicates mission id to be moved to foreground. - * @param options Indicates the start options. - * @return - - */ - function moveMissionToFront(missionId: number, callback: AsyncCallback): void; - function moveMissionToFront(missionId: number, options: StartOptions, callback: AsyncCallback): void; - function moveMissionToFront(missionId: number, options?: StartOptions): Promise; } export default missionManager; \ No newline at end of file diff --git a/api/@ohos.backgroundTaskManager.d.ts b/api/@ohos.backgroundTaskManager.d.ts index dc32230199..b6d4532b8d 100644 --- a/api/@ohos.backgroundTaskManager.d.ts +++ b/api/@ohos.backgroundTaskManager.d.ts @@ -152,24 +152,6 @@ declare namespace backgroundTaskManager { */ MULTI_DEVICE_CONNECTION = 6, - /** - * wifi interaction mode - * - * @since 8 - * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask - * @systemapi Hide this for inner system use. - */ - WIFI_INTERACTION = 7, - - /** - * Voice over Internet Phone mode - * - * @since 8 - * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask - * @systemapi Hide this for inner system use. - */ - VOIP = 8, - /** * background continuous calculate mode, for example 3D render. * only supported in portable computer device diff --git a/api/@ohos.batteryStatistics.d.ts b/api/@ohos.batteryStatistics.d.ts index 2af0b585ed..b4d708a22a 100755 --- a/api/@ohos.batteryStatistics.d.ts +++ b/api/@ohos.batteryStatistics.d.ts @@ -23,108 +23,5 @@ import { AsyncCallback } from "./basic"; * @since 8 */ declare namespace batteryStats { - /** - * Describes the consumption type. - * - * @systemapi - * @since 8 - */ - export enum ConsumptionType { - /** Indicates an invalid consumption type */ - CONSUMPTION_TYPE_INVALID = -17, - - /** Indicates the battery power consumption generated by APP */ - CONSUMPTION_TYPE_APP, - - /** Indicates the battery power consumption generated by bluetooth */ - CONSUMPTION_TYPE_BLUETOOTH, - - /** Indicates the battery power consumption generated when the CPU is idle */ - CONSUMPTION_TYPE_IDLE, - - /** Indicates the battery power consumption generated when phone call is active */ - CONSUMPTION_TYPE_PHONE, - - /** Indicates the battery power consumption generated by radio */ - CONSUMPTION_TYPE_RADIO, - - /** Indicates the battery power consumption generated by screen */ - CONSUMPTION_TYPE_SCREEN, - - /** Indicates the battery power consumption generated by user */ - CONSUMPTION_TYPE_USER, - - /** Indicates the battery power consumption generated by WIFI */ - CONSUMPTION_TYPE_WIFI - } - - /** - * Obtains the power consumption information list. - * - * @return Returns power consumption information list of a device. - * @systemapi - * @since 8 - */ - function getBatteryStats(): Promise>; - function getBatteryStats(callback: AsyncCallback>): void; - - /** - * Obtains power consumption information(Mah) for a given uid. - * - * @param uid Indicates the uid. - * @return Returns power consumption information(Mah). - * @systemapi - * @since 8 - */ - function getAppPowerValue(uid: number): number; - - /** - * Obtains power consumption information(Percent) for a given uid. - * - * @param uid Indicates the uid. - * @return Returns power consumption information(Percent). - * @systemapi - * @since 8 - */ - function getAppPowerPercent(uid: number): number; - - /** - * Obtains power consumption information(Mah) for a given type. - * - * @param ConsumptionType Indicates the hardware type. - * @return Returns power consumption information(Mah). - * @systemapi - * @since 8 - */ - function getHardwareUnitPowerValue(type: ConsumptionType): number; - - /** - * Obtains power consumption information(Percent) for a given type. - * - * @param ConsumptionType Indicates the hardware type. - * @return Returns power consumption information(Percent). - * @systemapi - * @since 8 - */ - function getHardwareUnitPowerPercent(type: ConsumptionType): number; - - /** - * Contains power consumption information of a device. - * - *

Power consumption information includes the uid, type and power consumption value. - * - * @systemapi - * @since 8 - */ - interface BatteryStatsInfo { - /** The uid related with the power consumption info. */ - uid: number; - - /** The type related with the power consumption info. */ - type: ConsumptionType; - - /** The power consumption value(mah). */ - power: number; - } } export default batteryStats; \ No newline at end of file diff --git a/api/@ohos.bluetooth.d.ts b/api/@ohos.bluetooth.d.ts index 38e7044b41..fe8e2fe77a 100644 --- a/api/@ohos.bluetooth.d.ts +++ b/api/@ohos.bluetooth.d.ts @@ -55,17 +55,6 @@ declare namespace bluetooth { */ function pairDevice(deviceId: string): boolean; - /** - * Remove a paired remote device. - * - * @param deviceId The address of the remote device to be removed. - * @return Returns {@code true} if the cancel process is started; returns {@code false} otherwise. - * @since 8 - * @permission ohos.permission.DISCOVER_BLUETOOTH - * @systemapi Hide this for inner system use - */ - function cancelPairedDevice(deviceId: string): boolean; - /** * Obtains the name of a peer Bluetooth device. * diff --git a/api/@ohos.brightness.d.ts b/api/@ohos.brightness.d.ts index bb8b098804..8211cc3dda 100644 --- a/api/@ohos.brightness.d.ts +++ b/api/@ohos.brightness.d.ts @@ -22,13 +22,5 @@ import { AsyncCallback } from './basic'; * @since 7 */ declare namespace brightness { - /** - * Sets the screen brightness. - * - * @param value Brightness value, ranging from 0 to 255. - * @systemapi - * @since 7 - */ - function setValue(value: number): void; } export default brightness; diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 2f5505fb2b..4ee42170dd 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -283,18 +283,6 @@ declare namespace bundle { function getBundleInfo(bundleName: string, bundleFlags: number, options: BundleOptions, callback: AsyncCallback): void; function getBundleInfo(bundleName: string, bundleFlags: number, callback: AsyncCallback): void; function getBundleInfo(bundleName: string, bundleFlags: number, options?: BundleOptions): Promise; - - /** - * Obtains the interface used to install bundles. - * - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @return Returns the IBundleInstaller interface. - * @permission ohos.permission.INSTALL_BUNDLE - * @systemapi Hide this for inner system use - */ - function getBundleInstaller(callback: AsyncCallback): void; - function getBundleInstaller(): Promise; /** * Obtains information about the current ability. @@ -413,60 +401,6 @@ declare namespace bundle { function getLaunchWantForBundle(bundleName: string, callback: AsyncCallback): void; function getLaunchWantForBundle(bundleName: string): Promise; - /** - * Clears cache data of a specified application. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application whose cache data is to be cleared. - * @param callback Indicates the callback to be invoked for returning the operation result. - * @permission ohos.permission.REMOVE_CACHE_FILES - * @systemapi Hide this for inner system use - */ - function cleanBundleCacheFiles(bundleName: string, callback: AsyncCallback): void; - function cleanBundleCacheFiles(bundleName: string): Promise; - - /** - * Sets whether to enable a specified application. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application. - * @param isEnabled Specifies whether to enable the application. The value true means to enable it, and the - * value false means to disable it. - * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE - * @systemapi Hide this for inner system use - */ - function setApplicationEnabled(bundleName: string, isEnable: boolean, callback: AsyncCallback): void; - function setApplicationEnabled(bundleName: string, isEnable: boolean): Promise; - - /** - * Sets whether to enable a specified ability. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param abilityInfo Indicates information about the ability to set. - * @param isEnabled Specifies whether to enable the ability. The value true means to enable it, and the - * value false means to disable it.. - * @permission ohos.permission.CHANGE_ABILITY_ENABLED_STATE - * @systemapi Hide this for inner system use - */ - function setAbilityEnabled(info: AbilityInfo, isEnable: boolean, callback: AsyncCallback): void; - function setAbilityEnabled(info: AbilityInfo, isEnable: boolean): Promise; - - /** - * Get the permission details by permissionName. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param permissionName Indicates permission name. - * @return Returns permissionDef object. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @systemapi - */ - function getPermissionDef(permissionName: string, callback: AsyncCallback): void; - function getPermissionDef(permissionName: string): Promise; - /** * Obtains the label of a specified ability. * diff --git a/api/@ohos.bundle.innerBundleManager.d.ts b/api/@ohos.bundle.innerBundleManager.d.ts index aba733ae16..bc0a056752 100644 --- a/api/@ohos.bundle.innerBundleManager.d.ts +++ b/api/@ohos.bundle.innerBundleManager.d.ts @@ -28,72 +28,6 @@ import { ShortcutInfo } from './bundle/shortcutInfo'; */ declare namespace innerBundleManager { - /** - * Obtains based on a given bundleName and userId. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the application bundle name to be queried. - * @param userId Indicates the id for the user. - * @return Returns the LauncherAbilityInfo object. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @systemapi Hide this for inner system use - */ - function getLauncherAbilityInfos(bundleName: string, userId: number, callback: AsyncCallback>) : void; - function getLauncherAbilityInfos(bundleName: string, userId: number) : Promise>; - - /** - * Register Callback. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param type Indicates the command should be implement. - * @param LauncherStatusCallback Indicates the callback to be register. - * @return Returns the result or error maeeage. - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * @systemapi Hide this for inner system use - */ - function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback, callback: AsyncCallback) : void; - function on(type:"BundleStatusChange", bundleStatusCallback : BundleStatusCallback): Promise; - - /** - * UnRegister Callback. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param type Indicates the command should be implement. - * @return Returns the result or error maeeage. - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * @systemapi Hide this for inner system use - */ - function off(type:"BundleStatusChange", callback: AsyncCallback) : void; - function off(type:"BundleStatusChange"): Promise; - - /** - * Obtains based on a given userId. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param userId Indicates the id for the user. - * @return Returns the LauncherAbilityInfo object. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @systemapi Hide this for inner system use - */ - function getAllLauncherAbilityInfos(userId: number, callback: AsyncCallback>) : void; - function getAllLauncherAbilityInfos(userId: number) : Promise>; - - /** - * Obtains based on a given bundleName. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the application bundle name to be queried. - * @return Returns the LauncherShortcutInfo object. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @systemapi Hide this for inner system use - */ - function getShortcutInfos(bundleName :string, callback: AsyncCallback>) : void; - function getShortcutInfos(bundleName : string) : Promise>; } export default innerBundleManager; diff --git a/api/@ohos.bundleState.d.ts b/api/@ohos.bundleState.d.ts index 0734372b77..e4f381ac4a 100644 --- a/api/@ohos.bundleState.d.ts +++ b/api/@ohos.bundleState.d.ts @@ -153,22 +153,6 @@ declare namespace bundleState { [key: string]: BundleStateInfo; } - /** - * Queries usage information about each bundle within a specified period. - * - *

This method queries usage information at the {@link #BY_OPTIMIZED} interval by default.

- * - * @since 7 - * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App - * @permission ohos.permission.BUNDLE_ACTIVE_INFO - * @systemapi Hide this for inner system use. - * @param begin Indicates the start time of the query period, in milliseconds. - * @param end Indicates the end time of the query period, in milliseconds. - * @return Returns the {@link BundleActiveInfoResponse} objects containing the usage information about each bundle. - */ - function queryBundleStateInfos(begin: number, end: number, callback: AsyncCallback): void; - function queryBundleStateInfos(begin: number, end: number): Promise; - /** * Declares interval type. * @@ -202,37 +186,6 @@ declare namespace bundleState { BY_ANNUALLY = 4 } - /** - * Queries usage information about each bundle within a specified period at a specified interval. - * - * @since 7 - * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App - * @permission ohos.permission.BUNDLE_ACTIVE_INFO - * @systemapi Hide this for inner system use. - * @param byInterval Indicates the interval at which the usage statistics are queried. - * The value can be {@link #BY_OPTIMIZED}, {@link #BY_DAILY}, - * {@link #BY_WEEKLY}, {@link #BY_MONTHLY}, or {@link #BY_ANNUALLY}. - * @param begin Indicates the start time of the query period, in milliseconds. - * @param end Indicates the end time of the query period, in milliseconds. - * @return Returns the list of {@link BundleStateInfo} objects containing the usage information about each bundle. - */ - function queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number, callback: AsyncCallback>): void; - function queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number): Promise>; - - /** - * Queries state data of all bundles within a specified period identified by the start and end time. - * - * @since 7 - * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App - * @permission ohos.permission.BUNDLE_ACTIVE_INFO - * @systemapi Hide this for inner system use. - * @param begin Indicates the start time of the query period, in milliseconds. - * @param end Indicates the end time of the query period, in milliseconds. - * @return Returns the list of {@link BundleActiveState} objects containing the state data of all bundles. - */ - function queryBundleActiveStates(begin: number, end: number, callback: AsyncCallback>): void; - function queryBundleActiveStates(begin: number, end: number): Promise>; - /** * Queries state data of the current bundle within a specified period. * diff --git a/api/@ohos.commonEvent.d.ts b/api/@ohos.commonEvent.d.ts index a017a91324..9d054ace56 100644 --- a/api/@ohos.commonEvent.d.ts +++ b/api/@ohos.commonEvent.d.ts @@ -47,33 +47,6 @@ declare namespace commonEvent { */ function publish(event: string, options: CommonEventPublishData, callback: AsyncCallback): void; - /** - * Publishes an ordered, sticky, or standard common event to a specified user. - * - * @since 8 - * @param event Specified the names of the common events. - * @param userId Specified the user to receive the common events. - * @param callback Specified callback method. - * @return - - * - * @systemapi Hide this for inner system use. - */ - function publishAsUser(event: string, userId: number, callback: AsyncCallback): void; - - /** - * Publishes an ordered, sticky, or standard common event to a specified user. - * - * @since 8 - * @param event Specified the names of the common events. - * @param userId Specified the user to receive the common events. - * @param options Indicate the CommonEventPublishData containing the common event content and attributes. - * @param callback Specified callback method. - * @return - - * - * @systemapi Hide this for inner system use. - */ - function publishAsUser(event: string, userId: number, options: CommonEventPublishData, callback: AsyncCallback): void; - /** * create the CommonEventSubscriber for the SubscriberInfo. * diff --git a/api/@ohos.configPolicy.d.ts b/api/@ohos.configPolicy.d.ts index d12690c30f..e490cfeff6 100644 --- a/api/@ohos.configPolicy.d.ts +++ b/api/@ohos.configPolicy.d.ts @@ -22,40 +22,6 @@ import {AsyncCallback} from "./basic"; * @syscap SystemCapability.Customization.ConfigPolicy */ declare namespace configPolicy { - /** - * Get file from the highest priority config path which contains the given file name. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @syscap SystemCapability.Customization.ConfigPolicy - * @param relPath the relative path of the config file. - * @return Returns the path of the highest priority config file. - */ - function getOneCfgFile(relPath: string, callback: AsyncCallback); - function getOneCfgFile(relPath: string): Promise; - - /** - * Get config files in device architecture, ordered by priority from low to high. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @syscap SystemCapability.Customization.ConfigPolicy - * @param relPath the relative path of the config file. - * @return Returns paths of config files. - */ - function getCfgFiles(relPath: string, callback: AsyncCallback>); - function getCfgFiles(relPath: string): Promise>; - - /** - * Get config directories in device architecture, ordered by priority from low to high. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @syscap SystemCapability.Customization.ConfigPolicy - * @return Returns paths of config directories. - */ - function getCfgDirList(callback: AsyncCallback>); - function getCfgDirList(): Promise>; } export default configPolicy; diff --git a/api/@ohos.distributedBundle.d.ts b/api/@ohos.distributedBundle.d.ts index e9fea81850..22ee2fdaae 100644 --- a/api/@ohos.distributedBundle.d.ts +++ b/api/@ohos.distributedBundle.d.ts @@ -26,29 +26,4 @@ import { RemoteAbilityInfo } from './bundle/remoteAbilityInfo'; * @systemapi Hide this for inner system use */ declare namespace distributedBundle { - /** - * Obtains information about the ability info of the remote device. - * - * @since 8 - * @syscap SystemCapability.BundleManager.DistributedBundleFramework - * @param elementName Indicates the elementName. - * @return Returns the ability info of the remote device. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @systemapi - */ - function getRemoteAbilityInfo(elementName: ElementName, callback: AsyncCallback): void; - function getRemoteAbilityInfo(elementName: ElementName): Promise; - - /** - * Obtains information about the ability infos of the remote device. - * - * @since 8 - * @syscap SystemCapability.BundleManager.DistributedBundleFramework - * @param elementNames Indicates the elementNames, Maximum array length ten. - * @return Returns the ability infos of the remote device. - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * @systemapi - */ - function getRemoteAbilityInfos(elementNames: Array, callback: AsyncCallback>): void; - function getRemoteAbilityInfos(elementNames: Array): Promise>; } \ No newline at end of file diff --git a/api/@ohos.distributedHardware.deviceManager.d.ts b/api/@ohos.distributedHardware.deviceManager.d.ts index 6d84f8a597..688dd6a5b3 100644 --- a/api/@ohos.distributedHardware.deviceManager.d.ts +++ b/api/@ohos.distributedHardware.deviceManager.d.ts @@ -23,35 +23,6 @@ import { AsyncCallback, Callback } from './basic'; * */ declare namespace deviceManager { - /** - * DeviceInfo - * - * @systemapi this method can be used only by system applications. - */ - interface DeviceInfo { - /** - * DeviceId ID. - */ - deviceId: string; - - /** - * Device name of the device. - */ - deviceName: string; - - /** - * Device type of the device. - */ - deviceType: DeviceType; - - /** - * NetworkId of the device. - * - * @since 8 - */ - networkId: string; - } - /** * Device Type definitions */ @@ -92,390 +63,10 @@ declare namespace deviceManager { TV = 0x9C } - /** - * Device state change event definition - * - * @systemapi this method can be used only by system applications. - */ - enum DeviceStateChangeAction { - /** - * device online action - */ - ONLINE = 0, - - /** - * device ready action, the device information synchronization was completed. - */ - READY = 1, - - /** - * device offline action - */ - OFFLINE = 2, - - /** - * device change action - */ - CHANGE = 3 - } - - /** - * Service subscribe info for device discover - * - * @systemapi this method can be used only by system applications. - */ - interface SubscribeInfo { - /** - * Service subscribe ID, the value is in scope [0, 65535], should be unique for each discover process - */ - subscribeId: number; - - /** - * Discovery mode for service subscription. - */ - mode: DiscoverMode; - - /** - * Service subscription medium. - */ - medium: ExchangeMedium; - - /** - * Service subscription frequency. - */ - freq: ExchangeFreq; - - /** - * only find the device with the same account. - */ - isSameAccount: boolean; - - /** - * find the sleeping devices. - */ - isWakeRemote: boolean; - - /** - * Subscribe capability. - */ - capability: SubscribeCap; - } - - /** - * device discover mode - * - * @systemapi this method can be used only by system applications. - */ - enum DiscoverMode { - /** - * Passive - */ - DISCOVER_MODE_PASSIVE = 0x55, - - /** - * Proactive - */ - DISCOVER_MODE_ACTIVE = 0xAA - } - - /** - * device discover medium - * - * @systemapi this method can be used only by system applications. - */ - enum ExchangeMedium { - /** - * Automatic medium selection - */ - AUTO = 0, - - /** - * Bluetooth - */ - BLE = 1, - - /** - * Wi-Fi - */ - COAP = 2, - - /** - * USB - */ - USB = 3 - } - - /** - * device discover freq - * - * @systemapi this method can be used only by system applications. - */ - enum ExchangeFreq { - /** - * Low - */ - LOW = 0, - - /** - * Medium - */ - MID = 1, - - /** - * High - */ - HIGH = 2, - - /** - * Super-high - */ - SUPER_HIGH = 3 - } - - /** - * device discover capability - * - * @systemapi this method can be used only by system applications. - */ - enum SubscribeCap { - /** - * ddmpCapability, will be discarded later. Currently, it will be converted to OSD capability inner. - */ - SUBSCRIBE_CAPABILITY_DDMP = 0, - - /** - * One Super Device Capability - */ - SUBSCRIBE_CAPABILITY_OSD = 1 - } - - /** - * Device Authentication param - * - * @systemapi this method can be used only by system applications - */ - interface AuthParam { - /** - * Authentication type, 1 for pin code. - */ - authType: number; - - /** - * Authentication extra infos. - */ - extraInfo: {[key:string] : any}; - } - - /** - * Device auth info. - * - * @systemapi this method can be used only by system applications - */ - interface AuthInfo { - /** - * Authentication type, 1 for pin code. - */ - authType: number; - - /** - * the token used for this authentication. - */ - token: number; - - /** - * Authentication extra infos. - */ - extraInfo: {[key:string] : any}; - } - - /** - * Creates a {@code DeviceManager} instance. - * - *

To manage devices, you must first call this method to obtain a {@code DeviceManager} instance and then - * use this instance to call other device management methods. - * - * @param bundleName Indicates the bundle name of the application. - * @param callback Indicates the callback to be invoked upon {@code DeviceManager} instance creation. - * @systemapi this method can be used only by system applications. - */ - function createDeviceManager(bundleName: string, callback: AsyncCallback): void; - /** * Provides methods for managing devices. */ interface DeviceManager { - /** - * Releases the {@code DeviceManager} instance after the methods for device management are no longer used. - * - * @systemapi this method can be used only by system applications. - */ - release(): void; - - /** - * Obtains a list of trusted devices. - * - * @return Returns a list of trusted devices. - * @systemapi this method can be used only by system applications. - */ - getTrustedDeviceListSync(): Array; - - /** - * Obtains a list of trusted devices. - * - * @since 8 - * @param callback Indicates the callback to be invoked upon getTrustedDeviceList - * @return Returns a list of trusted devices. - * @systemapi this method can be used only by system applications. - */ - getTrustedDeviceList(callback:AsyncCallback>): void; - - /** - * Obtains a list of trusted devices. - * - * @since 8 - * @return Returns a list of trusted devices. - * @systemapi this method can be used only by system applications. - */ - getTrustedDeviceList(): Promise>; - - /** - * Obtains local device info - * - * @since 8 - * @return Returns local device info. - * @systemapi this method can be used only by system applications. - */ - getLocalDeviceInfoSync(): DeviceInfo; - - /** - * Obtains local device info - * - * @since 8 - * @param callback Indicates the callback to be invoked upon getLocalDeviceInfo - * @return Returns local device info. - * @systemapi this method can be used only by system applications. - */ - getLocalDeviceInfo(callback:AsyncCallback): void; - - /** - * Obtains local device info - * - * @since 8 - * @return Returns local device info. - * @systemapi this method can be used only by system applications. - */ - getLocalDeviceInfo(): Promise; - - /** - * Start to discover device. - * - * @param subscribeInfo subscribe info to discovery device - * @systemapi this method can be used only by system applications. - */ - startDeviceDiscovery(subscribeInfo: SubscribeInfo): void; - - /** - * Stop to discover device. - * - * @param subscribeId Service subscribe ID - * @systemapi this method can be used only by system applications. - */ - stopDeviceDiscovery(subscribeId: number): void; - - /** - * Authenticate the specified device. - * - * @param deviceInfo deviceInfo of device to authenticate - * @param authParam authParam of device to authenticate - * @param callback Indicates the callback to be invoked upon authenticateDevice - * @systemapi this method can be used only by system applications. - */ - authenticateDevice(deviceInfo: DeviceInfo, authParam: AuthParam, callback: AsyncCallback<{deviceId: string, pinTone ?: number}>): void; - - /** - * unAuthenticate the specified device. - * - * @since 8 - * @param deviceInfo deviceInfo of device to unAuthenticate - * @systemapi this method can be used only by system applications. - */ - unAuthenticateDevice(deviceInfo: DeviceInfo): void - - /** - * verify auth info, such as pin code. - * - * @param authInfo device auth info o verify - * @param callback Indicates the callback to be invoked upon verifyAuthInfo - * @systemapi this method can be used only by system applications. - */ - verifyAuthInfo(authInfo: AuthInfo, callback: AsyncCallback<{deviceId: string, level: number}>): void; - - /** - * Register a device state callback so that the application can be notified upon device state changes based on - * the application bundle name. - * - * @param bundleName Indicates the bundle name of the application. - * @param callback Indicates the device state callback to register. - * @systemapi this method can be used only by system applications. - */ - on(type: 'deviceStateChange', callback: Callback<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void; - - /** - * UnRegister device state callback based on the application bundle name. - * - * @param bundleName Indicates the bundle name of the application. - * @param callback Indicates the device state callback to register. - * @systemapi this method can be used only by system applications. - */ - off(type: 'deviceStateChange', callback?: Callback<{ action: DeviceStateChangeAction, device: DeviceInfo }>): void; - - /** - * Register a device found callback so that the application can be notified when the device was found - * - * @param callback Indicates the device found callback to register. - * @systemapi this method can be used only by system applications. - */ - on(type: 'deviceFound', callback: Callback<{ subscribeId: number, device: DeviceInfo }>): void; - - /** - * UnRegister a device found callback so that the application can be notified when the device was found - * - * @param callback Indicates the device found callback to register. - * @systemapi this method can be used only by system applications. - */ - off(type: 'deviceFound', callback?: Callback<{ subscribeId: number, device: DeviceInfo }>): void; - - /** - * Register a device found result callback so that the application can be notified when the device discover was failed - * - * @param callback Indicates the device found result callback to register. - * @systemapi this method can be used only by system applications. - */ - on(type: 'discoverFail', callback: Callback<{ subscribeId: number, reason: number }>): void; - - /** - * UnRegister a device found result callback so that the application can be notified when the device discover was failed - * - * @param callback Indicates the device found result callback to register. - * @systemapi this method can be used only by system applications. - */ - off(type: 'discoverFail', callback?: Callback<{ subscribeId: number, reason: number }>): void; - - /** - * Register a serviceError callback so that the application can be notified when devicemanager service died - * - * @param callback Indicates the service error callback to register. - * @systemapi this method can be used only by system applications. - */ - on(type: 'serviceDie', callback: () => void): void; - - /** - * UnRegister a serviceError callback so that the application can be notified when devicemanager service died - * - * @param callback Indicates the service error callback to register. - * @systemapi this method can be used only by system applications. - */ - off(type: 'serviceDie', callback?: () => void): void; } } diff --git a/api/@ohos.environment.d.ts b/api/@ohos.environment.d.ts index b6d84144b3..47884920f4 100644 --- a/api/@ohos.environment.d.ts +++ b/api/@ohos.environment.d.ts @@ -23,22 +23,6 @@ import {AsyncCallback, Callback} from "./basic"; * @systemapi */ declare namespace Environment { - /** - * Get the user data path. - * - * @since 8 - * @systemapi - */ - function getStorageDataDir(callback: AsyncCallback): void; - function getStorageDataDir(): Promise; - /** - * Get the User storage path. - * - * @since 8 - * @systemapi - */ - function getUserDataDir(callback: AsyncCallback): void; - function getUserDataDir(): Promise; } export default Environment; diff --git a/api/@ohos.fileManager.d.ts b/api/@ohos.fileManager.d.ts index d0404e0adb..9d4d40e4ab 100644 --- a/api/@ohos.fileManager.d.ts +++ b/api/@ohos.fileManager.d.ts @@ -23,120 +23,4 @@ declare namespace filemanager { export { createFile }; export { FileInfo }; export { DevInfo }; -} - -/** - * listFile. - * - * @note N/A - * @syscap SystemCapability.FileManagement.UserFileService - * @since 8 - * @permission N/A - * @function listFile - * @param {string} path - path. - * @param {string} type - type. - * @param {Object} options - options - * @param {DevInfo} [options.dev = {name: "local"}] - dev name. - * @param {number} [options.offset = 0] - offset. - * @param {number} [options.count = 0] - count. - * @param {AsyncCallback} [callback] - callback. - * @returns {void | Promise} no callback return Promise otherwise return void - * @throws {TypedError} Parameter check failed - * @systemapi - */ -declare function listFile(path: string, type: string, options?: {dev?: DevInfo, offset?: number, count?: number}): Promise; -declare function listFile(path: string, type: string, options?: {dev?: DevInfo, offset?: number, count?: number}, callback: AsyncCallback): void; - -/** - * getRoot. - * - * @note N/A - * @syscap SystemCapability.FileManagement.UserFileService - * @since 8 - * @permission N/A - * @function getRoot - * @param {Object} options - options - * @param {DevInfo} [options.dev = {name: "local"}] - dev name. - * @param {AsyncCallback} [callback] - callback. - * @returns {void | Promise} no callback return Promise otherwise return void - * @throws {TypedError} Parameter check failed - * @systemapi - */ -declare function getRoot(options?: {dev?: DevInfo}): Promise; -declare function getRoot(options?: {dev?: DevInfo}, callback: AsyncCallback): void; - -/** - * createFile. - * - * @note N/A - * @syscap SystemCapability.FileManagement.UserFileService - * @since 8 - * @permission N/A - * @function createFile - * @param {string} path - album uri. - * @param {string} filename- file name. - * @param {Object} options - options - * @param {DevInfo} [options.dev = {name: "local"}] - dev name. - * @param {AsyncCallback} [callback] - callback. - * @returns {void | Promise} no callback return Promise otherwise return void - * @throws {TypedError} Parameter check failed - * @systemapi - */ -declare function createFile(path: string, filename: string, options?: {dev?: DevInfo}): Promise; -declare function createFile(path: string, filename: string, options?: {dev?: DevInfo}, callback: AsyncCallback): void; - -/** - * FileInfo - * @note N/A - * @syscap SystemCapability.FileManagement.UserFileService - * @since 8 - * @permission N/A - * @systemapi - */ -declare interface FileInfo { - /** - * @type {string} - * @readonly - */ - name: string; - /** - * @type {string} - * @readonly - */ - path: string; - /** - * @type {string} - * @readonly - */ - type: string; - /** - * @type {string} - * @readonly - */ - size: number; - /** - * @type {string} - * @readonly - */ - addedTime: number; - /** - * @type {string} - * @readonly - */ - modifiedTime: number; -} - -/** - * DevInfo - * @note N/A - * @syscap SystemCapability.FileManagement.UserFileService - * @since 8 - * @permission N/A - * @systemapi - */ - declare interface DevInfo { - /** - * @type {string} - */ - name: string; - } +} \ No newline at end of file diff --git a/api/@ohos.geolocation.d.ts b/api/@ohos.geolocation.d.ts index 13d87e726d..2e2d2bb382 100644 --- a/api/@ohos.geolocation.d.ts +++ b/api/@ohos.geolocation.d.ts @@ -194,30 +194,6 @@ declare namespace geolocation { function requestEnableLocation(callback: AsyncCallback) : void; function requestEnableLocation() : Promise; - /** - * enable location switch - * - * @since 7 - * @syscap SystemCapability.Location.Location.Core - * @systemapi - * @permission ohos.permission.MANAGE_SECURE_SETTINGS - * @param callback Indicates the callback for reporting the location switch result. - */ - function enableLocation(callback: AsyncCallback) : void; - function enableLocation() : Promise; - - /** - * disable location switch - * - * @since 7 - * @syscap SystemCapability.Location.Location.Core - * @systemapi - * @permission ohos.permission.MANAGE_SECURE_SETTINGS - * @param callback Indicates the callback for reporting the location switch result. - */ - function disableLocation(callback: AsyncCallback) : void; - function disableLocation() : Promise; - /** * obtain address info from location * @@ -341,33 +317,6 @@ declare namespace geolocation { expiration: number; } - /** - * querying location privacy protocol confirmation status. - * - * @since 8 - * @systemapi - * @syscap SystemCapability.Location.Location.Core - * @permission ohos.permission.LOCATION - * @param type indicates location privacy protocol type. - * @param callback indicates the callback for reporting the location privacy protocol confirmation status. - */ - function isLocationPrivacyConfirmed(type : LocationPrivacyType, callback: AsyncCallback) : void; - function isLocationPrivacyConfirmed(type : LocationPrivacyType,) : Promise; - - /** - * set location privacy protocol confirmation status. - * - * @since 8 - * @systemapi - * @syscap SystemCapability.Location.Location.Core - * @permission ohos.permission.LOCATION - * @param type indicates location privacy protocol type. - * @param isConfirmed indicates whether the location privacy protocol has been confirmed. - * @param callback Indicates the callback for reporting whether the action is set successfully. - */ - function setLocationPrivacyConfirmStatus(type : LocationPrivacyType, isConfirmed : boolean, callback: AsyncCallback) : void; - function setLocationPrivacyConfirmStatus(type : LocationPrivacyType, isConfirmed : boolean) : Promise; - /** * configuring parameters in reverse geocode requests * diff --git a/api/@ohos.i18n.d.ts b/api/@ohos.i18n.d.ts index cbb3022756..6103c21aab 100644 --- a/api/@ohos.i18n.d.ts +++ b/api/@ohos.i18n.d.ts @@ -44,39 +44,6 @@ export function getDisplayCountry(country: string, locale: string, sentenceCase? */ export function getDisplayLanguage(language: string, locale: string, sentenceCase?: boolean): string; -/** - * Obtain all languages supported by the system. - * - * @syscap SystemCapability.Global.I18n - * @return Returns all languages supported by the system. - * @since 7 - * @systemapi Hide this for inner system use. - */ -export function getSystemLanguages(): Array; - -/** - * Obtain all regions supported by the system in the language. - * - * @syscap SystemCapability.Global.I18n - * @param language The language used to get the list of regions. - * @return Returns all regions supported by the system in the language. - * @since 7 - * @systemapi Hide this for inner system use. - */ -export function getSystemCountries(language: string): Array; - -/** - * Determine whether the current language or region is recommended. - * - * @syscap SystemCapability.Global.I18n - * @param language The language code. - * @param region The region code. - * @return Returns whether the current language or region is recommended. - * @since 7 - * @systemapi Hide this for inner system use. - */ -export function isSuggested(language: string, region?: string): boolean; - /** * Obtain the language currently used by the system. * @@ -86,17 +53,6 @@ export function isSuggested(language: string, region?: string): boolean; */ export function getSystemLanguage(): string; -/** - * Set the language currently used by the system. - * - * @permission ohos.permission.UPDATE_CONFIGURATION - * @syscap SystemCapability.Global.I18n - * @param language The language to be used. - * @since 7 - * @systemapi Hide this for inner system use. - */ -export function setSystemLanguage(language: string): boolean; - /** * Obtain the region currently used by the system. * @@ -106,17 +62,6 @@ export function setSystemLanguage(language: string): boolean; */ export function getSystemRegion(): string; -/** - * Set the region currently used by the system. - * - * @permission ohos.permission.UPDATE_CONFIGURATION - * @syscap SystemCapability.Global.I18n - * @param region The region to be used. - * @since 7 - * @systemapi Hide this for inner system use. - */ -export function setSystemRegion(region: string): boolean; - /** * Obtain the locale currently used by the system. * @@ -126,17 +71,6 @@ export function setSystemRegion(region: string): boolean; */ export function getSystemLocale(): string; -/** - * Set the locale currently used by the system. - * - * @permission ohos.permission.UPDATE_CONFIGURATION - * @syscap SystemCapability.Global.I18n - * @param locale The locale to be used. - * @since 7 - * @systemapi Hide this for inner system use. - */ -export function setSystemLocale(locale: string): boolean; - /** * Provides util functions. * diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index b3df5858f0..e3c20f5950 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -758,20 +758,6 @@ declare namespace audio { * @syscap SystemCapability.Multimedia.Audio.Communication */ AUDIO_SCENE_DEFAULT = 0, - /** - * Ringing audio scene - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Communication - * @systemapi - */ - AUDIO_SCENE_RINGING, - /** - * Phone call audio scene - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Communication - * @systemapi - */ - AUDIO_SCENE_PHONE_CALL, /** * Voice chat audio scene * @since 8 @@ -1064,41 +1050,6 @@ declare namespace audio { * @syscap SystemCapability.Multimedia.Audio.Device */ isDeviceActive(deviceType: ActiveDeviceType): Promise; - /** - * Listens for system volume change events. This method uses a callback to get volume change events. - * @param callback Callback used to get the system volume change event. - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Volume - * @systemapi - */ - on(type: 'volumeChange', callback: Callback): void; - /** - * Listens for ringer mode change events. This method uses a callback to get ringer mode changes. - * @param callback Callback used to get the updated ringer mode. - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Communication - * @systemapi - */ - on(type: 'ringerModeChange', callback: Callback): void; - /** - * Sets the audio scene mode to change audio strategies. This method uses an asynchronous callback to return the - * result. - * @param scene Audio scene mode. - * @param callback Callback used to return the result. - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Communication - * @systemapi - */ - setAudioScene(scene: AudioScene, callback: AsyncCallback ): void; - /** - * Sets the audio scene mode to change audio strategies. This method uses a promise to return the result. - * @param scene Audio scene mode. - * @return Promise used to return the result. - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Communication - * @systemapi - */ - setAudioScene(scene: AudioScene): Promise; /** * Obtains the audio scene mode. This method uses an asynchronous callback to return the query result. * @param callback Callback used to return the audio scene mode. @@ -1179,33 +1130,6 @@ declare namespace audio { */ type AudioDeviceDescriptors = Array>; - /** - * Describes the volume event received by the app when the volume is changed. - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Volume - * @systemapi - */ - interface VolumeEvent { - /** - * Volume type of the current stream. - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Volume - */ - volumeType: AudioVolumeType; - /** - * Volume level. - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Volume - */ - volume: number; - /** - * Whether to show the volume change in UI. - * @since 8 - * @syscap SystemCapability.Multimedia.Audio.Volume - */ - updateUi: boolean; - } - /** * Describes the callback invoked for audio interruption or focus gain events.When the audio of an application * is interrupted by another application, the callback is invoked to notify the former application. diff --git a/api/@ohos.multimedia.mediaLibrary.d.ts b/api/@ohos.multimedia.mediaLibrary.d.ts index 769161ea30..f1b67596eb 100644 --- a/api/@ohos.multimedia.mediaLibrary.d.ts +++ b/api/@ohos.multimedia.mediaLibrary.d.ts @@ -914,26 +914,6 @@ declare namespace mediaLibrary { * @return A Promise instance used to return the FileAsset */ createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise; - /** - * Delete File Asset - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.Core - * @permission ohos.permission.READ_MEDIA and ohos.permission.WRITE_MEDIA - * @param uri FileAsset's URI - * @param callback no value returned - * @systemapi - */ - deleteAsset(uri: string, callback: AsyncCallback): void; - /** - * Delete File Asset - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.Core - * @permission ohos.permission.READ_MEDIA and ohos.permission.WRITE_MEDIA - * @param uri, FileAsset's URI - * @return A Promise instance, no value returned - * @systemapi - */ - deleteAsset(uri: string): Promise; /** * Obtains albums based on the media retrieval options. This method uses an asynchronous callback to return. * @since 7 @@ -1015,42 +995,6 @@ declare namespace mediaLibrary { * @return Promise used to return the list of URIs that store the selected media resources. */ startMediaSelect(option: MediaSelectOption): Promise>; - /** - * Get Active Peer device information - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @permission ohos.permission.READ_MEDIA - * @systemapi - * @param callback, Callback return the list of the active peer devices' information - */ - getActivePeers(callback: AsyncCallback>): void; - /** - * Get Active Peer device information - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @permission ohos.permission.READ_MEDIA - * @systemapi - * @return Promise used to return the list of the active peer devices' information - */ - getActivePeers(): Promise>; - /** - * Get all the peer devices' information - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @permission ohos.permission.READ_MEDIA - * @systemapi - * @param callback Callback return the list of the all the peer devices' information - */ - getAllPeers(callback: AsyncCallback>): void; - /** - * Get all the peer devices' information - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @permission ohos.permission.READ_MEDIA - * @systemapi - * @return Promise used to return the list of the all the peer devices' information - */ - getAllPeers(): Promise>; /** * Release MediaLibrary instance * @since 8 @@ -1085,101 +1029,6 @@ declare namespace mediaLibrary { */ height: number; } - - /** - * peer devices' information - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - * @since 8 - */ - interface PeerInfo { - /** - * Peer device name - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - readonly deviceName: string; - /** - * Peer device network id - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - readonly networkId: string; - /** - * Peer device type - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - readonly deviceType: DeviceType; - /** - * Peer device online status - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - readonly isOnline: boolean; - } - - /** - * peer device type - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - * @since 8 - */ - enum DeviceType { - /** - * Unknow device type - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - TYPE_UNKNOWN = 0, - /** - * Laptop device - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - TYPE_LAPTOP, - /** - * Phone device - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - TYPE_PHONE, - /** - * Tablet device - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - TYPE_TABLET, - /** - * Watch device - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - TYPE_WATCH, - /** - * Car device - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - TYPE_CAR, - /** - * TV device - * @since 8 - * @syscap SystemCapability.Multimedia.MediaLibrary.DistributedCore - * @systemapi - */ - TYPE_TV - } } export default mediaLibrary; diff --git a/api/@ohos.multimodalInput.inputConsumer.d.ts b/api/@ohos.multimodalInput.inputConsumer.d.ts index 973a4404e3..d3f1487004 100644 --- a/api/@ohos.multimodalInput.inputConsumer.d.ts +++ b/api/@ohos.multimodalInput.inputConsumer.d.ts @@ -25,46 +25,6 @@ import { Callback } from './basic'; */ declare namespace inputConsumer { - /** - * Defines event of key that user want to subscribe or unsubscribe. - * - * @syscap SystemCapability.MultimodalInput.Input.InputConsumer - * @systemapi hide for inner use - * @param preKeys The pre-keys that want to subscribe or unsubscribe. - * @param finalKey The post position key that want to subscribe or unsubscribe. - * @param isFinalKeyDown The final key press down or up. - * @param finalKeyDownDuration Duration of final key press. - */ - interface KeyOptions { - preKeys: Array; - finalKey: number; - isFinalKeyDown: boolean; - finalKeyDownDuration: number; - } - - /** - * Subscribe system keys. - * - * @since 8 - * @syscap SystemCapability.MultimodalInput.Input.InputConsumer - * @systemapi hide for inner use - * @param type type of the inputevent about input which is to be subscribed. - * @param keyOption the key events about input which is to be subscribed. - * @param callback callback function, receive reported data. - */ - function on(type: "key", keyOptions: KeyOptions, callback: Callback): void; - - /** - * Subscribe system keys. - * - * @since 8 - * @syscap SystemCapability.MultimodalInput.Input.InputConsumer - * @systemapi hide for inner use - * @param type type of the inputevent about input which is to be subscribed. - * @param keyOption the key events about input which is to be subscribed. - * @param callback callback function, receive reported data. - */ - function off(type: "key", keyOptions: KeyOptions, callback?: Callback): void; } export default inputConsumer; \ No newline at end of file diff --git a/api/@ohos.multimodalInput.inputEventClient.d.ts b/api/@ohos.multimodalInput.inputEventClient.d.ts index d6c8a7c8c1..9e5a08db65 100644 --- a/api/@ohos.multimodalInput.inputEventClient.d.ts +++ b/api/@ohos.multimodalInput.inputEventClient.d.ts @@ -23,32 +23,6 @@ */ declare namespace inputEventClient { - /** - * Defines event of key that user want to inject. - * - * @syscap SystemCapability.MultimodalInput.Input.InputSimulator - * @systemapi hide for inner use - * @param isPressed The status of key. - * @param keyCode The keyCode value of key. - * @param keyDownDuration Key hold duration. - * @param isIntercepted Whether the key is blocked. - */ - interface KeyEvent { - isPressed: boolean, - keyCode: number; - keyDownDuration: number; - isIntercepted: boolean; - } - - /** - * Inject system keys. - * - * @since 8 - * @syscap SystemCapability.MultimodalInput.Input.InputSimulator - * @systemapi hide for inner use - * @param KeyEvent the key event to be injected. - */ - function injectEvent({KeyEvent: KeyEvent}): void; } export default inputEventClient; diff --git a/api/@ohos.multimodalInput.inputMonitor.d.ts b/api/@ohos.multimodalInput.inputMonitor.d.ts index a2139c9e50..1f8bc4864e 100644 --- a/api/@ohos.multimodalInput.inputMonitor.d.ts +++ b/api/@ohos.multimodalInput.inputMonitor.d.ts @@ -22,36 +22,5 @@ * @systemapi hide for inner use */ declare namespace inputMonitor { - /** - * Callback function of the touch input event. If true is returned, the touch input is consumed by the monitor (the system performs the closing action). - * @since 7 - * @syscap SystemCapability.MultimodalInput.Input.InputMonitor - * @systemapi hide for inner use - */ - interface TouchEventReceiver { - (touchEvent:TouchEvent): Boolean; - } - - /** - * Listening for touch input events - * @since 7 - * @syscap SystemCapability.MultimodalInput.Input.InputMonitor - * @systemapi hide for inner use - * @permission ohos.permission.INPUT_MONITORING - * @param type register event type - * @param receiver callback function, receive reported data - */ - function on(type:"touch", receiver:TouchEventReceiver):void; - - /** - * Cancels listening for touch input events - * @since 7 - * @syscap SystemCapability.MultimodalInput.Input.InputMonitor - * @systemapi hide for inner use - * @permission ohos.permission.INPUT_MONITORING - * @param type register event type - * @param receiver callback function, receive reported data - */ - function off(type:"touch", receiver?:TouchEventReceiver):void; } export default inputMonitor; diff --git a/api/@ohos.net.connection.d.ts b/api/@ohos.net.connection.d.ts index ad31470548..b628d95903 100644 --- a/api/@ohos.net.connection.d.ts +++ b/api/@ohos.net.connection.d.ts @@ -84,22 +84,6 @@ declare namespace connection { function hasDefaultNet(callback: AsyncCallback): void; function hasDefaultNet(): Promise; - /** - * Enables the airplane mode for a device. - * - * @systemapi Hide this for inner system use. Only used for system app. - */ - function enableAirplaneMode(callback: AsyncCallback): void; - function enableAirplaneMode(): Promise; - - /** - * Disables the airplane mode for a device. - * - * @systemapi Hide this for inner system use. Only used for system app. - */ - function disableAirplaneMode(callback: AsyncCallback): void; - function disableAirplaneMode(): Promise; - /** * Reports the network state is connected. * diff --git a/api/@ohos.notification.d.ts b/api/@ohos.notification.d.ts index b93b0ba93a..ec15a62cb4 100644 --- a/api/@ohos.notification.d.ts +++ b/api/@ohos.notification.d.ts @@ -49,19 +49,6 @@ declare namespace notification { function publish(request: NotificationRequest, callback: AsyncCallback): void; function publish(request: NotificationRequest): Promise; - /** - * Publishes a notification to the specified user. - * - * @since 8 - * @param Publishes a notification. - * @param userId of subscriber receiving the notification - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - * - */ - function publish(request: NotificationRequest, userId: number, callback: AsyncCallback): void; - function publish(request: NotificationRequest, userId: number): Promise; - /** * Cancels a notification with the specified ID. * @@ -86,28 +73,6 @@ declare namespace notification { function cancelAll(callback: AsyncCallback): void; function cancelAll(): Promise; - /** - * Creates a notification slot. - * - * @param slot Indicates the notification slot to be created, which is set by {@link NotificationSlot}. - * This parameter must be specified. - * @param callback callback function - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function addSlot(slot: NotificationSlot, callback: AsyncCallback): void; - - /** - * Creates a notification slot. - * - * @param slot Indicates the notification slot to be created, which is set by {@link NotificationSlot}. - * This parameter must be specified. - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function addSlot(slot: NotificationSlot): Promise; - /** * Adds a slot type. * @@ -117,28 +82,6 @@ declare namespace notification { function addSlot(type: SlotType, callback: AsyncCallback): void; function addSlot(type: SlotType): Promise; - /** - * Creates a notification slot. - * - * @param slots Indicates the notification slots to be created, which is set by {@link NotificationSlot}. - * This parameter must be specified. - * @param callback callback function - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function addSlots(slots: Array, callback: AsyncCallback): void; - - /** - * Creates a notification slot. - * - * @param slots Indicates the notification slots to be created, which is set by {@link NotificationSlot}. - * This parameter must be specified. - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function addSlots(slots: Array): Promise; - /** * Obtains a notification slot of the specified slot type. * @@ -271,268 +214,6 @@ declare namespace notification { LEVEL_HIGH = 4, } - /** - * subscribe - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback): void; - - /** - * subscribe - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function subscribe(subscriber: NotificationSubscriber, info: NotificationSubscribeInfo, callback: AsyncCallback): void; - - /** - * subscribe - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): Promise; - - /** - * unsubscribe - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function unsubscribe(subscriber: NotificationSubscriber, callback: AsyncCallback): void; - - /** - * unsubscribe - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function unsubscribe(subscriber: NotificationSubscriber): Promise; - - /** - * enableNotification - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function enableNotification(bundle: BundleOption, enable: boolean, callback: AsyncCallback): void; - - /** - * enableNotification - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function enableNotification(bundle: BundleOption, enable: boolean): Promise; - - /** - * isNotificationEnabled - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback): void; - - /** - * isNotificationEnabled - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function isNotificationEnabled(bundle: BundleOption): Promise; - - /** - * isNotificationEnabled - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function isNotificationEnabled(callback: AsyncCallback): void; - - /** - * isNotificationEnabled - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function isNotificationEnabled(): Promise; - - /** - * Checks whether this application has permission to publish notifications under the user. - * - * since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function isNotificationEnabled(userId: number, callback: AsyncCallback): void; - function isNotificationEnabled(userId: number): Promise; - - /** - * displayBadge - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback): void; - - /** - * displayBadge - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function displayBadge(bundle: BundleOption, enable: boolean): Promise; - - /** - * isBadgeDisplayed - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback): void; - - /** - * isBadgeDisplayed - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function isBadgeDisplayed(bundle: BundleOption): Promise; - - /** - * setSlotByBundle - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCallback): void; - - /** - * setSlotByBundle - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise; - - /** - * getSlotsByBundle - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback>): void; - - /** - * getSlotsByBundle - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function getSlotsByBundle(bundle: BundleOption): Promise>; - - /** - * getSlotNumByBundle - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback): void; - - /** - * getSlotNumByBundle - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function getSlotNumByBundle(bundle: BundleOption): Promise; - - /** - * remove - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function remove(bundle: BundleOption, notificationKey: NotificationKey, callback: AsyncCallback): void; - - /** - * remove - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function remove(bundle: BundleOption, notificationKey: NotificationKey): Promise; - - /** - * remove - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function remove(hashCode: string, callback: AsyncCallback): void; - - /** - * remove - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function remove(hashCode: string): Promise; - - /** - * removeAll - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function removeAll(bundle: BundleOption, callback: AsyncCallback): void; - - /** - * removeAll - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function removeAll(callback: AsyncCallback): void; - - /** - * Remove all notifications under the specified user. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function removeAll(userId: number, callback: AsyncCallback): void; - function removeAll(userId: number): Promise; - - /** - * removeAll - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function removeAll(bundle?: BundleOption): Promise; - - /** - * Obtains all active notifications in the current system. The caller must have system permissions to - * call this method. - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function getAllActiveNotifications(callback: AsyncCallback>): void; - - /** - * Obtains all active notifications in the current system. The caller must have system permissions to - * call this method. - * - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function getAllActiveNotifications(): Promise>; - /** * Obtains the number of all active notifications. */ @@ -553,66 +234,6 @@ declare namespace notification { function cancelGroup(groupName: string, callback: AsyncCallback): void; function cancelGroup(groupName: string): Promise; - /** - * Delete the notification of a specified group for this application. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback): void; - function removeGroupByBundle(bundle: BundleOption, groupName: string): Promise; - - /** - * Set the Do Not Disturb date. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback): void; - function setDoNotDisturbDate(date: DoNotDisturbDate): Promise; - - /** - * Set the Do Not Disturb date under the specified user. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallback): void; - function setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise; - - /** - * Obtains the Do Not Disturb date. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function getDoNotDisturbDate(callback: AsyncCallback): void; - function getDoNotDisturbDate(): Promise; - - /** - * Obtains the Do Not Disturb date. - * - * @since 8 - * @systemapi Hide this for inner system use under the specified user. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function getDoNotDisturbDate(userId: number, callback: AsyncCallback): void; - function getDoNotDisturbDate(userId: number): Promise; - - /** - * Obtains whether to support the Do Not Disturb mode. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function supportDoNotDisturbMode(callback: AsyncCallback): void; - function supportDoNotDisturbMode(): Promise; - /** * Obtains whether the template is supported by the system. * @@ -631,16 +252,6 @@ declare namespace notification { function requestEnableNotification(callback: AsyncCallback): void; function requestEnableNotification(): Promise; - /** - * Sets whether the device supports distributed notification. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function enableDistributed(enable: boolean, callback: AsyncCallback): void; - function enableDistributed(enable: boolean): Promise; - /** * Obtains whether the device supports distributed notification. * @@ -649,36 +260,6 @@ declare namespace notification { function isDistributedEnabled(callback: AsyncCallback): void; function isDistributedEnabled(): Promise; - /** - * Sets whether an application supports distributed notification. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function enableDistributedByBundle(bundle: BundleOption, enable: boolean, callback: AsyncCallback): void; - function enableDistributedByBundle(bundle: BundleOption, enable: boolean): Promise; - - /** - * Obtains whether an application supports distributed notification. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function isDistributedEnabledByBundle(bundle: BundleOption, callback: AsyncCallback): void; - function isDistributedEnabledByBundle(bundle: BundleOption): Promise; - - /** - * Obtains the remind modes of the notification. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @permission ohos.permission.NOTIFICATION_CONTROLLER - */ - function getDeviceRemindType(callback: AsyncCallback): void; - function getDeviceRemindType(): Promise; - /** * Describes a BundleOption. */ @@ -694,169 +275,6 @@ declare namespace notification { id: number; label?: string; } - - /** - * The type of the Do Not Disturb. - * - * @since 8 - * @systemapi Hide this for inner system use. - */ - export enum DoNotDisturbType { - /** - * Non do not disturb type notification - */ - TYPE_NONE = 0, - - /** - * Execute do not disturb once in the set time period (only watch hours and minutes) - */ - TYPE_ONCE = 1, - - /** - * Execute do not disturb every day with a set time period (only watch hours and minutes) - */ - TYPE_DAILY = 2, - - /** - * Execute in the set time period (specify the time, month, day and hour) - */ - TYPE_CLEARLY = 3, - } - - /** - * Describes a DoNotDisturbDate instance. - * - * @systemapi Hide this for inner system use. - */ - export interface DoNotDisturbDate { - /** - * the type of the Do Not Disturb. - * - * @since 8 - */ - type: DoNotDisturbType; - - /** - * the start time of the Do Not Disturb. - * - * @since 8 - */ - begin: Date; - - /** - * the end time of the Do Not Disturb. - * - * @since 8 - */ - end: Date; - } - - /** - * The type of the Do Not Disturb. - * - * @since 8 - * @systemapi Hide this for inner system use. - */ - export enum DoNotDisturbType { - /** - * Non do not disturb type notification - */ - TYPE_NONE = 0, - - /** - * Execute do not disturb once in the set time period (only watch hours and minutes) - */ - TYPE_ONCE = 1, - - /** - * Execute do not disturb every day with a set time period (only watch hours and minutes) - */ - TYPE_DAILY = 2, - - /** - * Execute in the set time period (specify the time, month, day and hour) - */ - TYPE_CLEARLY = 3, - } - - /** - * Describes a DoNotDisturbDate instance. - * - * @systemapi Hide this for inner system use. - */ - export interface DoNotDisturbDate { - /** - * the type of the Do Not Disturb. - * - * @since 8 - */ - type: DoNotDisturbType; - - /** - * the start time of the Do Not Disturb. - * - * @since 8 - */ - begin: Date; - - /** - * the end time of the Do Not Disturb. - * - * @since 8 - */ - end: Date; - } - - /** - * The remind type of the nofication. - * - * @since 8 - * @systemapi Hide this for inner system use. - */ - export enum DeviceRemindType { - /** - * The device is not in use, no reminder - */ - IDLE_DONOT_REMIND = 0, - - /** - * The device is not in use, remind - */ - IDLE_REMIND = 1, - - /** - * The device is in use, no reminder - */ - ACTIVE_DONOT_REMIND = 2, - - /** - * The device is in use, reminder - */ - ACTIVE_REMIND = 3, - } - - /** - * Notification source type - * - * @since 8 - * @systemapi Hide this for inner system use. - */ - export enum SourceType { - /** - * General notification - */ - TYPE_NORMAL = 0, - - /** - * Continuous notification - */ - TYPE_CONTINUOUS = 1, - - /** - * Scheduled notification - */ - TYPE_TIMER = 2, - } } export default notification; diff --git a/api/@ohos.power.d.ts b/api/@ohos.power.d.ts index 3b7db0d372..bbf8f9b9ec 100644 --- a/api/@ohos.power.d.ts +++ b/api/@ohos.power.d.ts @@ -22,18 +22,6 @@ import {AsyncCallback} from './basic'; * @since 7 */ declare namespace power { - /** - * Shuts down the system. - * - *

This method requires the ohos.permission.REBOOT permission. - * - * @param reason Indicates the shutdown reason. - * @permission ohos.permission.REBOOT - * @systemapi - * @since 7 - */ - function shutdownDevice(reason: string): void; - /** * Restarts the system. * diff --git a/api/@ohos.process.d.ts b/api/@ohos.process.d.ts index 02b7e123ea..a00160632d 100644 --- a/api/@ohos.process.d.ts +++ b/api/@ohos.process.d.ts @@ -24,113 +24,8 @@ declare namespace process { export interface ChildProcess { - /** - * return pid is the pid of the current process - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return the pid of the current process. - */ - readonly pid: number; - /** - * return ppid is the pid of the current child process - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return the pid of the current child process. - */ - readonly ppid: number; - - /** - * return exitCode is the exit code of the current child process - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return the exit code of the current child process. - */ - readonly exitCode: number; - - /** - * return boolean is whether the current process signal is sent successfully - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return whether the current process signal is sent successfully. - */ - readonly killed: boolean; - - /** - * return 'number' is the target process exit code - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return the target process exit code. - */ - wait(): Promise; - - /** - * return it as 'Uint8Array' of the stdout until EOF - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return subprocess standard outpute. - */ - getOutput(): Promise; - - /** - * return it as 'Uint8Array of the stderr until EOF - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return subprocess standard error output. - */ - getErrorOutput(): Promise; - - /** - * close the target process - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - */ - close(): void; - - /** - * send a signal to process - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @param signal number or string represents the signal sent. - */ - kill(signal: number | string): void; } - /** - * returns the numeric valid group ID of the process - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return the numeric valid group ID of the process. - */ - const egid: number; - - /** - * return the numeric valid user identity of the process - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return the numeric valid user identity of the process. - */ - const euid: number; - - /** - * returns the numeric group id of the process - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return the numeric group if of the process. - */ - const gid: number - /** * returns the digital user id of the process * @since 7 @@ -139,15 +34,6 @@ declare namespace process { */ const uid: number; - /** - * return an array with supplementary group id - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return an array with supplementary group id. - */ - const groups: number[]; - /** * return pid is The pid of the current process * @since 7 @@ -156,15 +42,6 @@ declare namespace process { */ const pid: number; - /** - * return ppid is The pid of the current child process - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return return The pid of the current child process. - */ - const ppid: number; - /** * Returns the tid of the current thread. * @since 8 @@ -251,19 +128,6 @@ declare namespace process { function getEnvironmentVar(name: string): string; type EventListener = (evt: Object) => void; - /** - * Return a child process object and spawns a new ChildProcess to run the command - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @param command string of the shell commands executed by the child process. - * @param options This is an object. The object contains three parameters. Timeout is the running time of the child - * process, killSignal is the signal sent when the child process reaches timeout, and maxBuffer is the size of the - * maximum buffer area for standard input and output. - * @systemapi Hide this for inner system use - * @return Return a child process object. - */ - function runCmd(command: string, - options?: { timeout : number, killSignal : number | string, maxBuffer : number }): ChildProcess; /** * Abort current process @@ -272,26 +136,6 @@ declare namespace process { */ function abort(): void; - /** - * Register for an event - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @param type Indicates the type of event registered. - * @systemapi Hide this for inner system use - * @param listener Represents the registered event function - */ - function on(type: string, listener: EventListener): void; - - /** - * Remove registered event - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @param type Remove the type of registered event. - * @systemapi Hide this for inner system use - * @return Return removed result. - */ - function off(type: string): boolean; - /** * Process exit * @since 7 @@ -300,24 +144,6 @@ declare namespace process { */ function exit(code: number): void; - /** - * Return the current work directory; - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @return Return the current work directory. - */ - function cwd(): string; - - /** - * Change current directory - * @since 7 - * @syscap SystemCapability.Utils.Lang - * @systemapi Hide this for inner system use - * @param dir The path you want to change. - */ - function chdir(dir: string): void; - /** * Returns the running time of the system * @since 7 diff --git a/api/@ohos.screenshot.d.ts b/api/@ohos.screenshot.d.ts index 0e91364d1e..4748fcdb29 100644 --- a/api/@ohos.screenshot.d.ts +++ b/api/@ohos.screenshot.d.ts @@ -23,65 +23,6 @@ import image from './@ohos.multimedia.image'; * @since 7 */ declare namespace screenshot { - /** - * Takes a screenshot and saves it as a PixelMap object - * @param options Screenshot options, which consist of screenRect, imageSize, and rotation. You need to set these parameters - * @permission ohos.permission.CAPTURE_SCREEN - * @since 7 - */ - function save(options?: ScreenshotOptions, callback: AsyncCallback): void; - - /** - * Takes a screenshot and saves it as a PixelMap object - * @param options Screenshot options, which consist of screenRect, imageSize, and rotation. You need to set these parameters - * @permission ohos.permission.CAPTURE_SCREEN - * @since 7 - */ - function save(options?: ScreenshotOptions): Promise; - - /** - * Describes the region of the screen to capture - * @since 7 - */ - interface Rect { - left: number; - top: number; - width: number; - height: number; - } - - /** - * Describes the size of the screen region to capture - * @since 7 - */ - interface Size { - width: number; - height: number; - } - - /** - * Describes screenshot options - * @since 7 - */ - interface ScreenshotOptions { - /** - * Region of the screen to capture. If this parameter is null, the full screen will be captured - */ - screenRect?: Rect; - /** - * Region of the screen to capture. If this parameter is null, the full screen will be captured - */ - imageSize?: Size; - /** - * Rotation angle of the screenshot. The value can be 0, 90, 180, or 270. The default value is 0 - */ - rotation?: number; - /** - * The specify screen to be captured. - * @since 8 - */ - displayId?: number; - } } export default screenshot; diff --git a/api/@ohos.settings.d.ts b/api/@ohos.settings.d.ts index 32bda97b14..66af1fe9e4 100644 --- a/api/@ohos.settings.d.ts +++ b/api/@ohos.settings.d.ts @@ -795,20 +795,6 @@ declare namespace settings { function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback): void; function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise; - /** - * Saves a character string name and its value to the database. - * - * @param dataAbilityHelper Indicates the {@link ohos.aafwk.ability.DataAbilityHelper} used to access - * the database. - * @param name Indicates the name of the character string. - * @param value Indicates the value of the character string. - * @return Returns {@code true} if the operation is successful; returns {@code false} otherwise. - * @since 7 - * @systemapi Hide this for inner system use. SystemApi - */ - function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object, callback: AsyncCallback): void; - function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise; - /** * Enables or disables airplane mode. * diff --git a/api/@ohos.storageStatistics.d.ts b/api/@ohos.storageStatistics.d.ts index bba0bfd943..611485f3c2 100644 --- a/api/@ohos.storageStatistics.d.ts +++ b/api/@ohos.storageStatistics.d.ts @@ -23,22 +23,6 @@ import {AsyncCallback, Callback} from "./basic"; * @systemapi */ declare namespace storageStatistics { - /** - * Get the totalSize of volume. - * - * @since 8 - * @systemapi - */ - function getTotalSizeOfVolume(volumeUuid: string, callback: AsyncCallback): void; - function getTotalSizeOfVolume(volumeUuid: string): Promise; - /** - * Get the free size Of volume. - * - * @since 8 - * @systemapi - */ - function getFreeSizeOfVolume(volumeUuid: string, callback: AsyncCallback): void; - function getFreeSizeOfVolume(volumeUuid: string): Promise; } export default storageStatistics; diff --git a/api/@ohos.systemTimer.d.ts b/api/@ohos.systemTimer.d.ts index 023a3f2644..6257cbdf68 100644 --- a/api/@ohos.systemTimer.d.ts +++ b/api/@ohos.systemTimer.d.ts @@ -24,91 +24,6 @@ import { WantAgent } from './@ohos.wantAgent'; * @systemapi Hide this for inner system use. */ declare namespace systemTimer { - /** - * Indicates the timing policy the timer use, which can be REALTIME or UTC. - */ - const TIMER_TYPE_REALTIME: number; - - /** - * Describes whether a timer will wake the device up. - */ - const TIMER_TYPE_WAKEUP: number; - - /** - * Describes whether a timer will be delivered precisely at a scheduled time. - */ - const TIMER_TYPE_EXACT: number; - - /** - * Indicates whether the timer waking up the system is supported in low-power mode. - */ - const TIMER_TYPE_IDLE: number; - - /** - * Creates a timer. - * @Param options Indicates the timer options. - * @Return timer ID. - */ - function createTimer(options: TimerOptions, callback: AsyncCallback): void; - function createTimer(options: TimerOptions): Promise; - - /** - * Starts a timer. - * - * @Param timer The timer ID. - * @Param triggerTime Indicates the time at which the timer is triggered for the first time, in milliseconds. - * The time will be automatically set to 5000 milliseconds after the current time if the passed - * value is smaller than the current time plus 5000 milliseconds. - */ - function startTimer(timer: number, triggerTime: number, callback: AsyncCallback): void; - function startTimer(timer: number, triggerTime: number): Promise; - - /** - * Stops a timer. - * @Param timer The timer ID. - */ - function stopTimer(timer: number, callback: AsyncCallback): void; - function stopTimer(timer: number): Promise; - - /** - * Destroy a timer. - * @Param timer The timer ID. - */ - function destroyTimer(timer: number, callback: AsyncCallback): void; - function destroyTimer(timer: number): Promise; - - /** - * When the repeat is false,the interval is not needed, choose one of wantAgent and callback. - * When the repeat is true,the interval is required, the wantAgent is required, and the callback can be left blank. - * - */ - interface TimerOptions { - /** - * timer type. - */ - type: number; - - /** - * Indicates a repeating timer - */ - repeat: boolean; - - /** - * Indicates the interval between two consecutive triggers, in milliseconds. - * The interval will be set to 5000 milliseconds automatically if the passed value is smaller than 5000. - */ - interval?: number; - - /** - * Indicates the intent to send when the timer goes off. - */ - wantAgent?: WantAgent; - - /** - * Called back when the timer goes off. - */ - callback?: () => void; - } } export default systemTimer; \ No newline at end of file diff --git a/api/@ohos.systemparameter.d.ts b/api/@ohos.systemparameter.d.ts index 18f92152a4..11766a1484 100644 --- a/api/@ohos.systemparameter.d.ts +++ b/api/@ohos.systemparameter.d.ts @@ -23,80 +23,6 @@ import { AsyncCallback, BusinessError } from './basic'; * @systemapi Hide this for inner system use. */ declare namespace systemParameter { - /** - * Gets the value of the attribute with the specified key. - * - * @param key Key of the system attribute. - * @param def Default value. - * @return if the parameter is empty or doesn't exist, empty string will be returned. - * @syscap SystemCapability.Startup.SystemInfo - * @since 6 - */ - function getSync(key: string, def?: string): string; - - /** - * Gets the value of the attribute with the specified key. - * - * @param key Key of the system attribute. - * @param callback Callback function. - * @syscap SystemCapability.Startup.SystemInfo - * @since 6 - */ - function get(key: string, callback: AsyncCallback): void; - - /** - * Gets the value of the attribute with the specified key. - * - * @param key Key of the system attribute. - * @param def Default value. - * @param callback Callback function. - * @syscap SystemCapability.Startup.SystemInfo - * @since 6 - */ - function get(key: string, def: string, callback: AsyncCallback): void; - - /** - * Gets the value of the attribute with the specified key. - * - * @param key Key of the system attribute. - * @param def Default value. - * @return Promise, which is used to obtain the result asynchronously. - * @syscap SystemCapability.Startup.SystemInfo - * @since 6 - */ - function get(key: string, def?: string): Promise; - - /** - * Sets a value for the attribute with the specified key. - * - * @param key Key of the system attribute. - * @param value System attribute value to set. - * @syscap SystemCapability.Startup.SystemInfo - * @since 6 - */ - function setSync(key: string, value: string): void; - - /** - * Sets a value for the attribute with the specified key. - * - * @param key Key of the system attribute. - * @param value System attribute value to set. - * @param callback Callback function. - * @syscap SystemCapability.Startup.SystemInfo - * @since 6 - */ - function set(key: string, value: string, callback: AsyncCallback): void; - - /** - * Sets a value for the attribute with the specified key. - * - * @param key Key of the system attribute. - * @param value Default value. - * @return Promise, which is used to obtain the result asynchronously. - * @syscap SystemCapability.Startup.SystemInfo - * @since 6 - */ - function set(key: string, value: string): Promise; } export default systemParameter; diff --git a/api/@ohos.telephony.call.d.ts b/api/@ohos.telephony.call.d.ts index ea018eefd1..acfca08b2c 100644 --- a/api/@ohos.telephony.call.d.ts +++ b/api/@ohos.telephony.call.d.ts @@ -68,18 +68,6 @@ declare namespace call { function getCallState(callback: AsyncCallback): void; function getCallState(): Promise; - /** - * Stops the ringtone. - * - *

If an incoming call is ringing, the phone stops ringing. Otherwise, this method does not function. - * - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function muteRinger(callback: AsyncCallback): void; - function muteRinger(): Promise; - /** * Checks whether a device supports voice calls. * @@ -130,426 +118,6 @@ declare namespace call { function formatPhoneNumberToE164(phoneNumber: string, countryCode: string, callback: AsyncCallback): void; function formatPhoneNumberToE164(phoneNumber: string, countryCode: string): Promise; - /** - * @systemapi Hide this for inner system use. - * @permission ohos.permission.ANSWER_CALL - * @since 7 - */ - function answer(callId: number, callback: AsyncCallback): void; - function answer(callId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function hangup(callId: number, callback: AsyncCallback): void; - function hangup(callId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function reject(callId: number, callback: AsyncCallback): void; - function reject(callId: number, options: RejectMessageOptions, callback: AsyncCallback): void; - function reject(callId: number, options?: RejectMessageOptions): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function holdCall(callId: number, callback: AsyncCallback): void; - function holdCall(callId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function unHoldCall(callId: number, callback: AsyncCallback): void; - function unHoldCall(callId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function switchCall(callId: number, callback: AsyncCallback): void; - function switchCall(callId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function combineConference(callId: number, callback: AsyncCallback): void; - function combineConference(callId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function getMainCallId(callId: number, callback: AsyncCallback): void; - function getMainCallId(callId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function getSubCallIdList(callId: number, callback: AsyncCallback>): void; - function getSubCallIdList(callId: number): Promise>; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function getCallIdListForConference(callId: number, callback: AsyncCallback>): void; - function getCallIdListForConference(callId: number): Promise>; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function getCallWaitingStatus(slotId: number, callback: AsyncCallback): void; - function getCallWaitingStatus(slotId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function setCallWaiting(slotId: number, activate: boolean, callback: AsyncCallback): void; - function setCallWaiting(slotId: number, activate: boolean): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function startDTMF(callId: number, character: string, callback: AsyncCallback): void; - function startDTMF(callId: number, character: string): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function stopDTMF(callId: number, callback: AsyncCallback): void; - function stopDTMF(callId: number): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function isInEmergencyCall(callback: AsyncCallback): void; - function isInEmergencyCall(): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function on(type: 'callDetailsChange', callback: Callback): void; - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - function off(type: 'callDetailsChange', callback?: Callback): void; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function on(type: 'callEventChange', callback: Callback): void; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function off(type: 'callEventChange', callback?: Callback): void; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function on(type: 'callDisconnectedCause', callback: Callback): void; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function off(type: 'callDisconnectedCause', callback?: Callback): void; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function isNewCallAllowed(callback: AsyncCallback): void; - function isNewCallAllowed(): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function separateConference(callId: number, callback: AsyncCallback): void; - function separateConference(callId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getCallRestrictionStatus(slotId: number, type: CallRestrictionType, callback: AsyncCallback): void; - function getCallRestrictionStatus(slotId: number, type: CallRestrictionType): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function setCallRestriction(slotId: number, info: CallRestrictionInfo, callback: AsyncCallback): void; - function setCallRestriction(slotId: number, info: CallRestrictionInfo): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getCallTransferInfo(slotId: number, type: CallTransferType, callback: AsyncCallback): void; - function getCallTransferInfo(slotId: number, type: CallTransferType): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function setCallTransfer(slotId: number, info: CallTransferInfo, callback: AsyncCallback): void; - function setCallTransfer(slotId: number, info: CallTransferInfo): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function isRinging(callback: AsyncCallback): void; - function isRinging(): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function setMuted(callback: AsyncCallback): void; - function setMuted(): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function cancelMuted(callback: AsyncCallback): void; - function cancelMuted(): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function setAudioDevice(device: AudioDevice, callback: AsyncCallback): void; - function setAudioDevice(device: AudioDevice): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function joinConference(mainCallId: number, callNumberList: Array, callback: AsyncCallback): void; - function joinConference(mainCallId: number, callNumberList: Array): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function updateImsCallMode(callId: number, mode: ImsCallMode, callback: AsyncCallback): void; - function updateImsCallMode(callId: number, mode: ImsCallMode): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function enableImsSwitch(slotId: number, callback: AsyncCallback): void; - function enableImsSwitch(slotId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function disableImsSwitch(slotId: number, callback: AsyncCallback): void; - function disableImsSwitch(slotId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function isImsSwitchEnabled(slotId: number, callback: AsyncCallback): void; - function isImsSwitchEnabled(slotId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum ImsCallMode { - CALL_MODE_AUDIO_ONLY = 0, - CALL_MODE_SEND_ONLY, - CALL_MODE_RECEIVE_ONLY, - CALL_MODE_SEND_RECEIVE, - CALL_MODE_VIDEO_PAUSED, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum AudioDevice { - DEVICE_MIC, - DEVICE_SPEAKER, - DEVICE_WIRED_HEADSET, - DEVICE_BLUETOOTH_SCO - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum CallRestrictionType { - RESTRICTION_TYPE_ALL_INCOMING = 0, - RESTRICTION_TYPE_ALL_OUTGOING, - RESTRICTION_TYPE_INTERNATIONAL, - RESTRICTION_TYPE_INTERNATIONAL_EXCLUDING_HOME, - RESTRICTION_TYPE_ROAMING_INCOMING, - RESTRICTION_TYPE_ALL_CALLS, - RESTRICTION_TYPE_OUTGOING_SERVICES, - RESTRICTION_TYPE_INCOMING_SERVICES, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface CallTransferInfo { - transferNum: string; - type: CallTransferType; - settingType: CallTransferSettingType; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum CallTransferType { - TRANSFER_TYPE_UNCONDITIONAL = 0, - TRANSFER_TYPE_BUSY, - TRANSFER_TYPE_NO_REPLY, - TRANSFER_TYPE_NOT_REACHABLE, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum CallTransferSettingType { - CALL_TRANSFER_DISABLE = 0, - CALL_TRANSFER_ENABLE = 1, - CALL_TRANSFER_REGISTRATION = 3, - CALL_TRANSFER_ERASURE = 4, - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export interface CallAttributeOptions { - accountNumber: string; - speakerphoneOn: boolean; - accountId: number; - videoState: VideoStateType; - startTime: number; - isEcc: boolean; - callType: CallType; - callId: number; - callState: DetailedCallState; - conferenceState: ConferenceState; - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export enum ConferenceState { - TEL_CONFERENCE_IDLE = 0, - TEL_CONFERENCE_ACTIVE, - TEL_CONFERENCE_DISCONNECTING, - TEL_CONFERENCE_DISCONNECTED, - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export enum CallType { - TYPE_CS = 0, // CS - TYPE_IMS = 1, // IMS - TYPE_OTT = 2, // OTT - TYPE_ERR_CALL = 3, // OTHER - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export enum VideoStateType { - TYPE_VOICE = 0, // Voice - TYPE_VIDEO, // Video - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export enum DetailedCallState { - CALL_STATUS_ACTIVE = 0, - CALL_STATUS_HOLDING, - CALL_STATUS_DIALING, - CALL_STATUS_ALERTING, - CALL_STATUS_INCOMING, - CALL_STATUS_WAITING, - CALL_STATUS_DISCONNECTED, - CALL_STATUS_DISCONNECTING, - CALL_STATUS_IDLE, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface CallRestrictionInfo { - type: CallRestrictionType; - password: string; - mode: CallRestrictionMode; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum CallRestrictionMode { - RESTRICTION_MODE_DEACTIVATION = 0, - RESTRICTION_MODE_ACTIVATION, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface CallEventOptions { - eventId: CallAbilityEventId, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum CallAbilityEventId { - EVENT_DIAL_NO_CARRIER = 1, - EVENT_INVALID_FDN_NUMBER, - } - export enum CallState { /** * Indicates an invalid state, which is used when the call state fails to be obtained. @@ -578,90 +146,6 @@ declare namespace call { * boolean means whether the call to be made is a video call. The value {@code false} indicates a voice call. */ extras?: boolean; - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - accountId?: number; - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - videoState?: VideoStateType; - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - dialScene?: DialScene; - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - dialType?: DialType; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum DialScene { - CALL_NORMAL = 0, - CALL_PRIVILEGED = 1, - CALL_EMERGENCY = 2, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum DialType { - DIAL_CARRIER_TYPE = 0, - DIAL_VOICE_MAIL_TYPE = 1, - DIAL_OTT_TYPE = 2, - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export interface RejectMessageOptions { - messageContent: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface CallTransferResult { - status: TransferStatus; - number: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export enum CallWaitingStatus { - CALL_WAITING_DISABLE = 0, - CALL_WAITING_ENABLE = 1 - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum RestrictionStatus { - RESTRICTION_DISABLE = 0, - RESTRICTION_ENABLE = 1 - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum TransferStatus { - TRANSFER_DISABLE = 0, - TRANSFER_ENABLE = 1 } /** @@ -677,33 +161,6 @@ declare namespace call { export interface NumberFormatOptions { countryCode?: string; } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum DisconnectedDetails { - UNASSIGNED_NUMBER = 1, - NO_ROUTE_TO_DESTINATION = 3, - CHANNEL_UNACCEPTABLE = 6, - OPERATOR_DETERMINED_BARRING = 8, - NORMAL_CALL_CLEARING = 16, - USER_BUSY = 17, - NO_USER_RESPONDING = 18, - USER_ALERTING_NO_ANSWER = 19, - CALL_REJECTED = 21, - NUMBER_CHANGED = 22, - DESTINATION_OUT_OF_ORDER = 27, - INVALID_NUMBER_FORMAT = 28, - NETWORK_OUT_OF_ORDER = 38, - TEMPORARY_FAILURE = 41, - INVALID_PARAMETER = 1025, - SIM_NOT_EXIT = 1026, - SIM_PIN_NEED = 1027, - CALL_NOT_ALLOW = 1029, - SIM_INVALID = 1045, - UNKNOWN = 1279, - }; } export default call; \ No newline at end of file diff --git a/api/@ohos.telephony.data.d.ts b/api/@ohos.telephony.data.d.ts index a82b90e3dd..9718979a77 100644 --- a/api/@ohos.telephony.data.d.ts +++ b/api/@ohos.telephony.data.d.ts @@ -31,17 +31,6 @@ declare namespace data { function getDefaultCellularDataSlotId(callback: AsyncCallback): void; function getDefaultCellularDataSlotId(): Promise; - /** - * Switches cellular data services to another card, without changing the default settings. - * - * @param slotId Indicates the ID of the target card slot. - * The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2. - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - */ - function setDefaultCellularDataSlotId(slotId: number, callback: AsyncCallback): void; - function setDefaultCellularDataSlotId(slotId: number): Promise; - /** * Indicates that there is no uplink or downlink data. * @@ -76,24 +65,6 @@ declare namespace data { function isCellularDataEnabled(callback: AsyncCallback): void; function isCellularDataEnabled(): Promise; - /** - * Enables cellular data services. - * - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - */ - function enableCellularData(callback: AsyncCallback): void; - function enableCellularData(): Promise; - - /** - * Diables cellular data services. - * - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - */ - function disableCellularData(callback: AsyncCallback): void; - function disableCellularData(): Promise; - /** * Checks whether roaming is enabled for cellular data services. * @@ -105,28 +76,6 @@ declare namespace data { function isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback): void; function isCellularDataRoamingEnabled(slotId: number): Promise; - /** - * Enables cellular data roaming. - * - * @param slotId Indicates the ID of a card slot. - * The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2. - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - */ - function enableCellularDataRoaming(slotId: number, callback: AsyncCallback): void; - function enableCellularDataRoaming(slotId: number): Promise; - - /** - * Disables cellular data roaming. - * - * @param slotId Indicates the ID of a card slot. - * The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2. - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - */ - function disableCellularDataRoaming(slotId: number, callback: AsyncCallback): void; - function disableCellularDataRoaming(slotId: number): Promise; - /** * Describes the cellular data flow type. */ diff --git a/api/@ohos.telephony.observer.d.ts b/api/@ohos.telephony.observer.d.ts index 5ea7c6a325..dc5c465640 100644 --- a/api/@ohos.telephony.observer.d.ts +++ b/api/@ohos.telephony.observer.d.ts @@ -65,27 +65,6 @@ declare namespace observer { function off(type: 'signalInfoChange', callback?: Callback>): void; - /** - * Called back when the cell information corresponding to a monitored {@code slotId} updates. - * - * @param type cellInfoChange - * @param options including slotId Indicates the ID of the target card slot. - * The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2. - * @param callback including an array of instances of the classes derived from {@link CellInformation}. - * @permission ohos.permission.LOCATION - * @systemapi Hide this for inner system use. - * @since 8 - */ - function on(type: 'cellInfoChange', callback: Callback>): void; - function on(type: 'cellInfoChange', options: { slotId: number }, - callback: Callback>): void; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function off(type: 'cellInfoChange', callback?: Callback>): void; - /** * Called when the cellular data link connection state updates. * diff --git a/api/@ohos.telephony.radio.d.ts b/api/@ohos.telephony.radio.d.ts index 0975e3245b..80cec14b07 100644 --- a/api/@ohos.telephony.radio.d.ts +++ b/api/@ohos.telephony.radio.d.ts @@ -64,24 +64,6 @@ declare namespace radio { function getNetworkState(slotId: number, callback: AsyncCallback): void; function getNetworkState(slotId?: number): Promise; - /** - * Proactively requests to update location information. - * - * @systemapi Hide this for inner system use. - * @since 8 - */ - function sendUpdateCellLocationRequest(callback: AsyncCallback): void; - function sendUpdateCellLocationRequest(): Promise; - - /** - * @permission ohos.permission.LOCATION - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getCellInformation(callback: AsyncCallback>): void; - function getCellInformation(slotId: number, callback: AsyncCallback>): void; - function getCellInformation(slotId?: number): Promise>; - /** * Obtains the network search mode of the SIM card in a specified slot. * @@ -96,20 +78,6 @@ declare namespace radio { function getNetworkSelectionMode(slotId: number, callback: AsyncCallback): void; function getNetworkSelectionMode(slotId: number): Promise; - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - */ - function setNetworkSelectionMode(options: NetworkSelectionModeOptions, callback: AsyncCallback): void; - function setNetworkSelectionMode(options: NetworkSelectionModeOptions): Promise; - - /** - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - */ - function getNetworkSearchInformation(slotId: number, callback: AsyncCallback): void; - function getNetworkSearchInformation(slotId: number): Promise; - /** * Obtains the ISO-defined country code of the country where the registered network is deployed. * @@ -122,60 +90,6 @@ declare namespace radio { function getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback): void; function getISOCountryCodeForNetwork(slotId: number): Promise; - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getNrOptionMode(callback: AsyncCallback): void; - function getNrOptionMode(slotId: number, callback: AsyncCallback): void; - function getNrOptionMode(slotId?: number): Promise; - - /** - * Obtains the IMEI of a specified card slot of the device. - * - * @param slotId Indicates the card slot index number, ranging from 0 to the maximum card slot index number - * supported by the device. - * @param callback Returns the IMEI; returns an empty string if the IMEI does not exist. - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getIMEI(callback: AsyncCallback): void; - function getIMEI(slotId: number, callback: AsyncCallback): void; - function getIMEI(slotId?: number): Promise; - - /** - * Obtains the MEID of a specified card slot of the device. - * - * @param slotId Indicates the card slot index number, ranging from 0 to the maximum card slot index number - * supported by the device. - * @param callback Returns the MEID; returns an empty string if the MEID does not exist. - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getMEID(callback: AsyncCallback): void; - function getMEID(slotId: number, callback: AsyncCallback): void; - function getMEID(slotId?: number): Promise; - - /** - * Obtains the unique device ID of a specified card slot of the device. - * - *

If the device is registered with a 3GPP-compliant network, the international mobile equipment identity - * (IMEI) is returned. If the device is registered with a 3GPP2-compliant network, the mobile equipment identifier - * (MEID) is returned. - * - * @param slotId Indicates the card slot index number, ranging from 0 to the maximum card slot index number - * supported by the device. - * @param callback Returns the unique device ID; returns an empty string if the unique device ID does not exist. - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getUniqueDeviceId(callback: AsyncCallback): void; - function getUniqueDeviceId(slotId: number, callback: AsyncCallback): void; - function getUniqueDeviceId(slotId?: number): Promise; - /** * Obtains the index number of the card slot where the primary card is located if multiple SIM cards are inserted. * @@ -187,14 +101,6 @@ declare namespace radio { function getPrimarySlotId(callback: AsyncCallback): void; function getPrimarySlotId(): Promise; - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function setPrimarySlotId(slotId: number, callback: AsyncCallback): void; - function setPrimarySlotId(slotId: number): Promise; - /** * Obtains the list of signal strength information of the registered network corresponding to a specified SIM card. * @@ -237,95 +143,12 @@ declare namespace radio { function isRadioOn(slotId: number, callback: AsyncCallback): void function isRadioOn(slotId?: number): Promise; - /** - * Turn on the radio service. - * - * @param slotId Indicates the card slot index number, - * ranging from 0 to the maximum card slot index number supported by the device. - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function turnOnRadio(callback: AsyncCallback): void; - function turnOnRadio(slotId: number, callback: AsyncCallback): void; - function turnOnRadio(slotId?: number): Promise; - - /** - * Turn off the radio service. - * - * @param slotId Indicates the card slot index number, - * ranging from 0 to the maximum card slot index number supported by the device. - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function turnOffRadio(callback: AsyncCallback): void; - function turnOffRadio(slotId: number, callback: AsyncCallback): void; - function turnOffRadio(slotId?: number): Promise; - /** * @since 7 */ function getOperatorName(slotId: number, callback: AsyncCallback): void; function getOperatorName(slotId: number): Promise; - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode, callback: AsyncCallback): void; - function setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise; - - /** - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getPreferredNetwork(slotId: number, callback: AsyncCallback): void; - function getPreferredNetwork(slotId: number): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum PreferredNetworkMode { - PREFERRED_NETWORK_MODE_GSM = 1, - PREFERRED_NETWORK_MODE_WCDMA = 2, - PREFERRED_NETWORK_MODE_LTE = 3, - PREFERRED_NETWORK_MODE_LTE_WCDMA = 4, - PREFERRED_NETWORK_MODE_LTE_WCDMA_GSM = 5, - PREFERRED_NETWORK_MODE_WCDMA_GSM = 6, - PREFERRED_NETWORK_MODE_CDMA = 7, - PREFERRED_NETWORK_MODE_EVDO = 8, - PREFERRED_NETWORK_MODE_EVDO_CDMA = 9, - PREFERRED_NETWORK_MODE_WCDMA_GSM_EVDO_CDMA = 10, - PREFERRED_NETWORK_MODE_LTE_EVDO_CDMA = 11, - PREFERRED_NETWORK_MODE_LTE_WCDMA_GSM_EVDO_CDMA = 12, - PREFERRED_NETWORK_MODE_TDSCDMA = 13, - PREFERRED_NETWORK_MODE_TDSCDMA_GSM = 14, - PREFERRED_NETWORK_MODE_TDSCDMA_WCDMA = 15, - PREFERRED_NETWORK_MODE_TDSCDMA_WCDMA_GSM = 16, - PREFERRED_NETWORK_MODE_LTE_TDSCDMA = 17, - PREFERRED_NETWORK_MODE_LTE_TDSCDMA_GSM = 18, - PREFERRED_NETWORK_MODE_LTE_TDSCDMA_WCDMA = 19, - PREFERRED_NETWORK_MODE_LTE_TDSCDMA_WCDMA_GSM = 20, - PREFERRED_NETWORK_MODE_TDSCDMA_WCDMA_GSM_EVDO_CDMA = 21, - PREFERRED_NETWORK_MODE_LTE_TDSCDMA_WCDMA_GSM_EVDO_CDMA = 22, - PREFERRED_NETWORK_MODE_NR = 31, - PREFERRED_NETWORK_MODE_NR_LTE = 32, - PREFERRED_NETWORK_MODE_NR_LTE_WCDMA = 33, - PREFERRED_NETWORK_MODE_NR_LTE_WCDMA_GSM = 34, - PREFERRED_NETWORK_MODE_NR_LTE_EVDO_CDMA = 35, - PREFERRED_NETWORK_MODE_NR_LTE_WCDMA_GSM_EVDO_CDMA = 36, - PREFERRED_NETWORK_MODE_NR_LTE_TDSCDMA = 37, - PREFERRED_NETWORK_MODE_NR_LTE_TDSCDMA_GSM = 38, - PREFERRED_NETWORK_MODE_NR_LTE_TDSCDMA_WCDMA = 39, - PREFERRED_NETWORK_MODE_NR_LTE_TDSCDMA_WCDMA_GSM = 40, - PREFERRED_NETWORK_MODE_NR_LTE_TDSCDMA_WCDMA_GSM_EVDO_CDMA = 41, - PREFERRED_NETWORK_MODE_MAX_VALUE = 99, - } - /** * Describes the radio access technology. */ @@ -585,189 +408,6 @@ declare namespace radio { NSA_STATE_SA_ATTACHED = 6 } - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface CellInformation { - /** - * Obtains the network type of the serving cell. - * - *

An application can call this method to determine the network type that the child class uses. - * - * @return Returns the the network type of the serving cell. - */ - networkType: NetworkType; - - /** - * Obtains the camp-on status of the serving cell. - * - * @return Returns {@code true} if the user equipment (UE) is camped on the cell; returns - * {@code false} otherwise. - */ - isCamped: boolean; - - /** - * Obtains the timestamp when the cell information is obtained. - * - * @return Returns a timestamp since boot, in nanoseconds. - */ - timeStamp: number; - - /** - * An abstract method of the parent class whose implementation depends on the child classes. - * Returned child class objects vary according to the network type. - * - * @return Returns child class objects specific to the network type. - */ - signalInformation: SignalInformation; - - data: CdmaCellInformation | GsmCellInformation | LteCellInformation | NrCellInformation | TdscdmaCellInformation - | WcdmaCellInformation; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface CdmaCellInformation { - baseId: number; - latitude: number; - longitude: number; - nid: number; - sid: number; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface GsmCellInformation { - lac: number; - cellId: number; - arfcn: number; - bsic: number; - mcc: string; - mnc: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface LteCellInformation { - cgi: number; - pci: number; - tac: number; - earfcn: number; - bandwidth: number; - mcc: string; - mnc: string; - isSupportEndc: boolean; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface NrCellInformation { - nrArfcn: number; - pci: number; - tac: number; - nci: number; - mcc: string; - mnc: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface TdscdmaCellInformation { - lac: number; - cellId: number; - cpid: number; - uarfcn: number; - mcc: string; - mnc: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface WcdmaCellInformation { - lac: number; - cellId: number; - psc: number; - uarfcn: number; - mcc: string; - mnc: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum NrOptionMode { - /** Indicates unknown NR networking mode. */ - NR_OPTION_UNKNOWN, - - /** Indicates that the NR networking mode is NSA only. */ - NR_OPTION_NSA_ONLY, - - /** Indicates that the NR networking mode is SA only. */ - NR_OPTION_SA_ONLY, - - /** Indicates that the NR networking mode is NSA and SA. */ - NR_OPTION_NSA_AND_SA, - } - - /** - * @systemapi Hide this for inner system use. - */ - export interface NetworkSearchResult { - isNetworkSearchSuccess: boolean; - networkSearchResult: Array; - } - - /** - * @systemapi Hide this for inner system use. - */ - export interface NetworkInformation { - operatorName: string; - operatorNumeric: string; - state: NetworkInformationState; - radioTech: string; - } - - /** - * @systemapi Hide this for inner system use. - */ - export enum NetworkInformationState { - /** Indicates that the network state is unknown. */ - NETWORK_UNKNOWN, - - /** Indicates that the network is available for registration. */ - NETWORK_AVAILABLE, - - /** Indicates that you have already registered with the network. */ - NETWORK_CURRENT, - - /** Indicates that the network is unavailable for registration. */ - NETWORK_FORBIDDEN - } - - /** - * @systemapi Hide this for inner system use. - */ - export interface NetworkSelectionModeOptions { - slotId: number; - selectMode: NetworkSelectionMode; - networkInformation: NetworkInformation; - resumeSelection: boolean; - } - export enum NetworkSelectionMode { /** Unknown network selection modes. */ NETWORK_SELECTION_UNKNOWN, diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 1ff02a7ba8..fb4e05af7f 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -121,88 +121,6 @@ declare namespace sim { function getCardType(slotId: number, callback: AsyncCallback): void; function getCardType(slotId: number): Promise; - /** - * Obtains the ICCID of the SIM card in a specified slot. - * - *

The ICCID is a unique identifier of a SIM card. It consists of 20 digits - * and is recorded in the EFICCID file of the SIM card. - * - * @param slotId Indicates the card slot index number, - * ranging from 0 to the maximum card slot index number supported by the device. - * @param callback Returns the ICCID; returns an empty string if no SIM card is inserted. - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function getSimIccId(slotId: number, callback: AsyncCallback): void; - function getSimIccId(slotId: number): Promise; - - /** - * Obtains the alpha identifier of the voice mailbox of the SIM card in a specified slot. - * - * @param slotId Indicates the card slot index number, - * ranging from {@code 0} to the maximum card slot index number supported by the device. - * @param callback Returns the voice mailbox alpha identifier; - * returns an empty string if no voice mailbox alpha identifier is written into the SIM card. - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getVoiceMailIdentifier(slotId: number, callback: AsyncCallback): void; - function getVoiceMailIdentifier(slotId: number): Promise; - - /** - * Obtains the voice mailbox number of the SIM card in a specified slot. - * - * @param slotId Indicates the card slot index number, - * ranging from {@code 0} to the maximum card slot index number supported by the device. - * @param callback Returns the voice mailbox number; - * returns an empty string if no voice mailbox number is written into the SIM card. - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getVoiceMailNumber(slotId: number, callback: AsyncCallback): void; - function getVoiceMailNumber(slotId: number): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: AsyncCallback): void; - function setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string): Promise; - - /** - * Obtains the MSISDN of the SIM card in a specified slot. - * The MSISDN is recorded in the EFMSISDN file of the SIM card. - * - * @param slotId Indicates the card slot index number, - * ranging from 0 to the maximum card slot index number supported by the device. - * @param callback Returns the MSISDN; returns an empty string if no SIM card is inserted or - * no MSISDN is recorded in the EFMSISDN file. - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getSimTelephoneNumber(slotId: number, callback: AsyncCallback): void; - function getSimTelephoneNumber(slotId: number): Promise; - - /** - * Obtains the Group Identifier Level 1 (GID1) of the SIM card in a specified slot. - * The GID1 is recorded in the EFGID1 file of the SIM card. - * - * @param slotId Indicates the card slot index number, - * ranging from 0 to the maximum card slot index number supported by the device. - * @param callback Returns the GID1; returns an empty string if no SIM card is inserted or - * no GID1 in the SIM card. - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function getSimGid1(slotId: number, callback: AsyncCallback): void; - function getSimGid1(slotId: number): Promise; - /** * Obtains the maximum number of SIM cards that can be used simultaneously on the device, * that is, the maximum number of SIM card slots. @@ -212,13 +130,6 @@ declare namespace sim { */ function getMaxSimCount(): number; - /** - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - */ - function getIMSI(slotId: number, callback: AsyncCallback): void; - function getIMSI(slotId: number): Promise; - /** * Checks whether a SIM card is inserted in a specified slot. * @@ -230,303 +141,6 @@ declare namespace sim { function hasSimCard(slotId: number, callback: AsyncCallback): void; function hasSimCard(slotId: number): Promise; - /** - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function getSimAccountInfo(slotId: number, callback: AsyncCallback): void; - function getSimAccountInfo(slotId: number): Promise; - - /** - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getActiveSimAccountInfoList(callback: AsyncCallback>): void; - function getActiveSimAccountInfoList(): Promise>; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback): void; - function setDefaultVoiceSlotId(slotId: number): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function activateSim(slotId: number, callback: AsyncCallback): void; - function activateSim(slotId: number): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function deactivateSim(slotId: number, callback: AsyncCallback): void; - function deactivateSim(slotId: number): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function setShowName(slotId: number, name: string, callback: AsyncCallback): void; - function setShowName(slotId: number, name: string): Promise; - - /** - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getShowName(slotId: number, callback: AsyncCallback): void; - function getShowName(slotId: number): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function setShowNumber(slotId: number, number: string, callback: AsyncCallback): void; - function setShowNumber(slotId: number, number: string): Promise; - - /** - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getShowNumber(slotId: number, callback: AsyncCallback): void; - function getShowNumber(slotId: number): Promise; - - /** - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getOperatorConfigs(slotId: number, callback: AsyncCallback>): void; - function getOperatorConfigs(slotId: number): Promise>; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function unlockPin(slotId: number, pin: string, callback: AsyncCallback): void; - function unlockPin(slotId: number, pin: string): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function unlockPuk(slotId: number, newPin: string, puk: string, callback: AsyncCallback): void; - function unlockPuk(slotId: number, newPin: string, puk: string): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback): void; - function alterPin(slotId: number, newPin: string, oldPin: string): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function setLockState(slotId: number, options: LockInfo, callback: AsyncCallback): void; - function setLockState(slotId: number, options: LockInfo): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function unlockPin2(slotId: number, pin2: string, callback: AsyncCallback): void; - function unlockPin2(slotId: number, pin2: string): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallback): void; - function unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function alterPin2(slotId: number, newPin2: string, oldPin2: string, callback: AsyncCallback): void; - function alterPin2(slotId: number, newPin2: string, oldPin2: string): Promise; - - /** - * @permission ohos.permission.READ_CONTACTS - * @systemapi Hide this for inner system use. - * @since 8 - */ - function queryIccDiallingNumbers(slotId: number, type: ContactType, callback: AsyncCallback>): void - function queryIccDiallingNumbers(slotId: number, type: ContactType): Promise>; - - /** - * @permission ohos.permission.WRITE_CONTACTS - * @systemapi Hide this for inner system use. - * @since 8 - */ - function addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback): void; - function addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; - - /** - * @permission ohos.permission.WRITE_CONTACTS - * @systemapi Hide this for inner system use. - * @since 8 - */ - function delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback): void; - function delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; - - /** - * @permission ohos.permission.WRITE_CONTACTS - * @systemapi Hide this for inner system use. - * @since 8 - */ - function updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback): void; - function updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getLockState(slotId: number, lockType: LockType, callback: AsyncCallback): void; - function getLockState(slotId: number, lockType: LockType): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function sendEnvelopeCmd(slotId: number, cmd: string, callback: AsyncCallback): void; - function sendEnvelopeCmd(slotId: number, cmd: string): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function sendTerminalResponseCmd(slotId: number, cmd: string, callback: AsyncCallback): void; - function sendTerminalResponseCmd(slotId: number, cmd: string): Promise; - - /** - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 8 - */ - function unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback): void; - function unlockSimLock(slotId: number, lockInfo: PersoLockInfo): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface OperatorConfig { - field: string; - value: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export interface IccAccountInfo { - /** - * sim Id for card. - */ - simId: number; - /** - * slot id. - */ - slotIndex: number; - /** - * mark card is eSim or not. - */ - isEsim: boolean; - /** - * active status for card. - */ - isActive: boolean; - /** - * iccId for card. - */ - iccId: string; - /** - * display name for card. - */ - showName: string; - /** - * display number for card. - */ - showNumber: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export interface LockStatusResponse { - /** - * Current operation result - */ - result: number; - /** - * Operations remaining - */ - remain?: number; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface DiallingNumbersInfo { - alphaTag: string; - number: string; - recordNumber?: number; - pin2?: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface LockInfo { - lockType: LockType; - password: string; - state: LockState; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface PersoLockInfo { - lockType: PersoLockType; - password: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum LockType { - PIN_LOCK = 1, - FDN_LOCK = 2, - } - /** * @since 7 */ @@ -601,44 +215,6 @@ declare namespace sim { */ SIM_STATE_LOADED } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum LockState { - /**Indicates that the lock state card is in the off state. */ - LOCK_OFF = 0, - - /**Indicates that the lock state card is in the on state. */ - LOCK_ON = 1, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum ContactType { - GENERAL_CONTACT = 1, - FIXED_DIALING = 2, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum PersoLockType { - PN_PIN_LOCK, //Network Personalization (refer 3GPP TS 22.022 [33]) - PN_PUK_LOCK, - PU_PIN_LOCK, //network sUbset Personalization (refer 3GPP TS 22.022 [33]) - PU_PUK_LOCK, - PP_PIN_LOCK, //service Provider Personalization (refer 3GPP TS 22.022 [33]) - PP_PUK_LOCK, - PC_PIN_LOCK, //Corporate Personalization (refer 3GPP TS 22.022 [33]) - PC_PUK_LOCK, - SIM_PIN_LOCK, //SIM/USIM personalisation (refer 3GPP TS 22.022 [33]) - SIM_PUK_LOCK, - } } export default sim; diff --git a/api/@ohos.telephony.sms.d.ts b/api/@ohos.telephony.sms.d.ts index 42b9cf1263..95e181833b 100644 --- a/api/@ohos.telephony.sms.d.ts +++ b/api/@ohos.telephony.sms.d.ts @@ -22,22 +22,6 @@ import {AsyncCallback} from "./basic"; * @syscap SystemCapability.Telephony.SmsMms */ declare namespace sms { - /** - * Splits a long SMS message into multiple fragments. - * - *

If the length of an SMS message exceeds the maximum length allowed (140 bytes), - * the SMS message is split into multiple segments for processing. - * - * @param content Indicates the short message content, which cannot be {@code null}. - * @param callback Returns a list of split segments, which can be combined into a complete SMS message; - * returns an empty string if no permission is granted or the short message content is {@code null}. - * @permission ohos.permission.SEND_MESSAGES - * @systemapi Hide this for inner system use. - * @since 8 - */ - function splitMessage(content: string, callback: AsyncCallback>): void; - function splitMessage(content: string): Promise>; - /** * Creates an SMS message instance based on the protocol data unit (PDU) and the specified SMS protocol. * @@ -64,19 +48,6 @@ declare namespace sms { */ function sendMessage(options: SendMessageOptions): void; - /** - * Sets the default SIM card for sending SMS messages. You can obtain the default SIM card by - * using {@code getDefaultSmsSlotId}. - * - * @param slotId Indicates the default SIM card for sending SMS messages. The value {@code 0} indicates card slot 1, - * and the value {@code 1} indicates card slot 2. - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function setDefaultSmsSlotId(slotId: number, callback: AsyncCallback): void; - function setDefaultSmsSlotId(slotId: number): Promise; - /** * Obtains the default SIM card for sending SMS messages. * @@ -87,30 +58,6 @@ declare namespace sms { function getDefaultSmsSlotId(callback: AsyncCallback): void; function getDefaultSmsSlotId(): Promise; - /** - * Sets the address for the Short Message Service Center (SMSC) based on a specified slot ID. - * - * @param slotId Indicates the ID of the slot holding the SIM card for sending SMS messages. - * @param smscAddr Indicates the SMSC address. - * @permission ohos.permission.SET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback): void; - function setSmscAddr(slotId: number, smscAddr: string): Promise; - - /** - * Obtains the SMSC address based on a specified slot ID. - * - * @param slotId Indicates the ID of the slot holding the SIM card for sending SMS messages. - * @param callback Returns the SMSC address. - * @permission ohos.permission.GET_TELEPHONY_STATE - * @systemapi Hide this for inner system use. - * @since 7 - */ - function getSmscAddr(slotId: number, callback: AsyncCallback): void; - function getSmscAddr(slotId: number): Promise; - /** * Returns whether a device is capable of sending and receiving SMS messages. * @@ -120,365 +67,6 @@ declare namespace sms { */ function hasSmsCapability(): boolean; - /** - * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES - * @systemapi Hide this for inner system use. - * @since 7 - */ - function addSimMessage(options: SimMessageOptions, callback: AsyncCallback): void; - function addSimMessage(options: SimMessageOptions): Promise; - - /** - * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES - * @systemapi Hide this for inner system use. - * @since 7 - */ - function delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback): void; - function delSimMessage(slotId: number, msgIndex: number): Promise; - - /** - * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES - * @systemapi Hide this for inner system use. - * @since 7 - */ - function updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback): void; - function updateSimMessage(options: UpdateSimMessageOptions): Promise; - - /** - * @permission ohos.permission.RECEIVE_SMS - * @systemapi Hide this for inner system use. - * @since 7 - */ - function getAllSimMessages(slotId: number, callback: AsyncCallback>): void; - function getAllSimMessages(slotId: number): Promise>; - - /** - * @permission ohos.permission.RECEIVE_SMS - * @systemapi Hide this for inner system use. - * @since 7 - */ - function setCBConfig(options: CBConfigOptions, callback: AsyncCallback): void; - function setCBConfig(options: CBConfigOptions): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback: AsyncCallback): void; - function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise; - - /** - * SMS over IMS is supported if IMS is registered and SMS is supported on IMS. - * - * @param callback Returns true if SMS over IMS is supported, false otherwise. - * @systemapi Hide this for inner system use. - * @since 8 - */ - function isImsSmsSupported(callback: AsyncCallback): void; - function isImsSmsSupported(): Promise; - - /** - * Gets SMS format supported on IMS. SMS over IMS format is either 3GPP or 3GPP2. - * - * @param callback Returns format, 3gpp, 3gpp2 or unknown. - * @systemapi Hide this for inner system use. - * @since 8 - */ - function getImsShortMessageFormat(callback: AsyncCallback): void; - function getImsShortMessageFormat(): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function decodeMms(mmsFilePathName: string | Array, callback: AsyncCallback): void; - function decodeMms(mmsFilePathName: string | Array): Promise; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - function encodeMms(mms: MmsInformation, callback: AsyncCallback>): void; - function encodeMms(mms: MmsInformation): Promise>; - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsInformation { - messageType: MessageType; - mmsType: MmsSendReq | MmsSendConf | MmsNotificationInd | MmsRespInd | MmsRetrieveConf | MmsAcknowledgeInd | MmsDeliveryInd | MmsReadOrigInd | MmsReadRecInd; - attachment?: Array; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsSendReq { - from: MmsAddress; - transactionId: string; - contentType: string; - version: MmsVersionType; - to?: Array; - date?: number; - cc?: Array; - bcc?: Array; - subject?: string; - messageClass?: number; - expiry?: number; - priority?: MmsPriorityType; - senderVisibility?: number; - deliveryReport?: number; - readReport?: number; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsSendConf { - responseState: number; - transactionId: string; - version: MmsVersionType; - messageId?: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsNotificationInd { - transactionId: string; - messageClass: number; - messageSize: number; - expiry: number; - contentLocation: string; - version: MmsVersionType; - from?: MmsAddress; - subject?: string; - deliveryReport?: number; - contentClass?: number; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsRespInd { - transactionId: string; - status: number; - version: MmsVersionType; - reportAllowed?: ReportType; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsRetrieveConf { - transactionId: string; - messageId: string; - date: number; - contentType: string; - to: Array; - version: MmsVersionType; - from?: MmsAddress; - cc?: Array; - subject?: string; - priority?: MmsPriorityType; - deliveryReport?: number; - readReport?: number; - retrieveStatus?: number; - retrieveText?: string; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsAcknowledgeInd { - transactionId: string; - version: MmsVersionType; - reportAllowed?: ReportType; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsDeliveryInd { - messageId: string; - date: number; - to: Array; - status: number; - version: MmsVersionType; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsReadOrigInd { - version: MmsVersionType; - messageId: string; - to: Array; - from: MmsAddress; - date: number; - readStatus: number; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsReadRecInd { - version: MmsVersionType; - messageId: string; - to: Array; - from: MmsAddress; - readStatus: number; - date?: number; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsAttachment { - contentId: string; - contentLocation: string; - contentDisposition: DispositionType; - contentTransferEncoding: string; - contentType: string; - isSmil: boolean; - path?: string; - inBuff?: Array; - fileName?: string; - charset?: MmsCharSets; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface MmsAddress { - address: string; - charset: MmsCharSets; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum MessageType { - TYPE_MMS_SEND_REQ = 128, - TYPE_MMS_SEND_CONF, - TYPE_MMS_NOTIFICATION_IND, - TYPE_MMS_RESP_IND, - TYPE_MMS_RETRIEVE_CONF, - TYPE_MMS_ACKNOWLEDGE_IND, - TYPE_MMS_DELIVERY_IND, - TYPE_MMS_READ_REC_IND, - TYPE_MMS_READ_ORIG_IND, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum MmsPriorityType { - MMS_LOW = 128, - MMS_NORMAL, - MMS_HIGH, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum MmsVersionType { - MMS_VERSION_1_0 = 0x10, - MMS_VERSION_1_1, - MMS_VERSION_1_2, - MMS_VERSION_1_3, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum MmsCharSets { - BIG5 = 0X07EA, - ISO_10646_UCS_2 = 0X03E8, - ISO_8859_1 = 0X04, - ISO_8859_2, - ISO_8859_3, - ISO_8859_4, - ISO_8859_5, - ISO_8859_6, - ISO_8859_7, - ISO_8859_8, - ISO_8859_9, - SHIFT_JIS = 0X11, - US_ASCII = 0X03, - UTF_8 = 0X6A, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum DispositionType { - FROM_DATA = 0, - ATTACHMENT, - INLINE, - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum ReportType { - MMS_YES = 128, - MMS_NO, - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export interface CBConfigOptions { - slotId: number; - enable: boolean; - startMessageId: number; - endMessageId: number; - ranType: RanType; - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export interface SimMessageOptions { - slotId: number; - smsc: string; - pdu: string; - status: SimMessageStatus; - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export interface UpdateSimMessageOptions { - slotId: number; - msgIndex: number; - newStatus: SimMessageStatus; - pdu: string; - smsc: string; - } - export interface ShortMessage { /** Indicates the SMS message body. */ visibleMessageBody: string; @@ -507,36 +95,6 @@ declare namespace sms { isSmsStatusReportMessage: boolean; } - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export interface SimShortMessage { - shortMessage: ShortMessage; - - /** Indicates the storage status of SMS messages in the SIM */ - simMessageStatus: SimMessageStatus; - /** Indicates the index of SMS messages in the SIM */ - indexOnSim: number; - } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export enum SimMessageStatus { - /** status free space ON SIM */ - SIM_MESSAGE_STATUS_FREE = 0, - /** REC READ received read message */ - SIM_MESSAGE_STATUS_READ = 1, - /** REC UNREAD received unread message */ - SIM_MESSAGE_STATUS_UNREAD = 3, - /** STO SENT stored sent message (only applicable to SMs) */ - SIM_MESSAGE_STATUS_SENT = 5, - /** STO UNSENT stored unsent message (only applicable to SMs) */ - SIM_MESSAGE_STATUS_UNSENT = 7, - } - export enum ShortMessageClass { /** Indicates an unknown type. */ UNKNOWN, @@ -603,37 +161,6 @@ declare namespace sms { */ SEND_SMS_FAILURE_SERVICE_UNAVAILABLE = 3 } - - /** - * @systemapi Hide this for inner system use. - * @since 7 - */ - export enum RanType { - TYPE_GSM = 1, // GSM - TYPE_CDMA = 2, // CDMA - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export interface SmsSegmentsInfo { - splitCount: number; - encodeCount: number; - encodeCountRemaining: number; - scheme: SmsEncodingScheme; - } - - /** - * @systemapi Hide this for inner system use. - * @since 8 - */ - export enum SmsEncodingScheme { - SMS_ENCODING_UNKNOWN = 0, - SMS_ENCODING_7BIT, - SMS_ENCODING_8BIT, - SMS_ENCODING_16BIT, - } } export default sms; \ No newline at end of file diff --git a/api/@ohos.update.d.ts b/api/@ohos.update.d.ts index d67b84af0f..ebb97115e2 100644 --- a/api/@ohos.update.d.ts +++ b/api/@ohos.update.d.ts @@ -23,433 +23,6 @@ import { AsyncCallback, BussinessError } from "./basic"; * @systemapi hide for inner use. */ declare namespace update { - /** - * Enumerates new version package types. - * - * @since 6 - */ - export enum PackageTypes { - PACKAGE_TYPE_NORMAL = 1, - PACKAGE_TYPE_BASE = 2, - PACKAGE_TYPE_CUST = 3, - PACKAGE_TYPE_PRELOAD = 4, - PACKAGE_TYPE_COTA = 5, - PACKAGE_TYPE_VERSION = 6, - PACKAGE_TYPE_PATCH = 7 - } - - /** - * Represents new version results after update version check. - * - * @since 6 - */ - export interface CheckResult { - /** - * New version name - * - * @since 6 - */ - versionName: number; - - /** - * New version code - * - * @since 6 - */ - versionCode: string; - - /** - * New version package size - * - * @since 6 - */ - size: number; - - /** - * New version verify information - * - * @since 6 - */ - verifyInfo: string; - - /** - * New version package type - * - * @since 6 - */ - packageType: PackageTypes; - - /** - * New version description ID - * - * @since 6 - */ - descriptionId: string; - } - - /** - * Represents new version description information. - * - * @since 6 - */ - export interface DescriptionInfo { - /** - * description ID - * - * @since 6 - */ - descriptionId: string; - - /** - * description content - * - * @since 6 - */ - content: string; - } - - /** - * Enumerates new version status. - * - * @since 6 - */ - export enum NewVersionStatus { - /** - * New version check with system error - * - * @since 6 - */ - VERSION_STATUS_ERR = -1, - - /** - * New version detected - * - * @since 6 - */ - VERSION_STATUS_NEW = 0, - - /** - * No New version - * - * @since 6 - */ - VERSION_STATUS_NONE = 1, - - /** - * Server busy - * - * @since 6 - */ - VERSION_STATUS_BUSY = 2 - } - - /** - * Represents new version information. - * - * @since 6 - */ - export interface NewVersionInfo { - /** - * Update Check Status - * - * @since 6 - */ - status: NewVersionStatus; - - /** - * New version check error message - * - * @since 6 - */ - errMsg: string; - - /** - * New version check results - * - * @since 6 - */ - checkResults: Array; - - /** - * New version check description - * - * @since 6 - */ - descriptionInfo: Array; - } - - /** - * Enumerates update status. - * - * @since 6 - */ - export enum UpdateState { - UPDATE_STATE_INIT = 0, - UPDATE_STATE_CHECK_VERSION_ON = 10, - UPDATE_STATE_CHECK_VERSION_FAIL, - UPDATE_STATE_CHECK_VERSION_SUCCESS, - UPDATE_STATE_DOWNLOAD_ON = 20, - UPDATE_STATE_DOWNLOAD_PAUSE, - UPDATE_STATE_DOWNLOAD_CANCEL, - UPDATE_STATE_DOWNLOAD_FAIL, - UPDATE_STATE_DOWNLOAD_SUCCESS, - UPDATE_STATE_VERIFY_ON = 30, - UPDATE_STATE_VERIFY_FAIL, - UPDATE_STATE_VERIFY_SUCCESS, - UPDATE_STATE_PACKAGE_TRANS_ON = 70, - UPDATE_STATE_PACKAGE_TRANS_FAIL, - UPDATE_STATE_PACKAGE_TRANS_SUCCESS, - UPDATE_STATE_INSTALL_ON = 80, - UPDATE_STATE_INSTALL_FAIL, - UPDATE_STATE_INSTALL_SUCCESS, - UPDATE_STATE_UPDATE_ON = 90, - UPDATE_STATE_UPDATE_FAIL, - UPDATE_STATE_UPDATE_SUCCESS - } - - /** - * Represents update progress information. - * - * @since 6 - */ - export interface Progress { - /** - * update progress percent - * - * @since 6 - */ - percent: number; - - /** - * update status - * - * @since 6 - */ - status: UpdateState; - - /** - * update end reason - * - * @since 6 - */ - endReason: string; - } - - /** - * Enumerates install mode for new version packages. - * - * @since 6 - */ - export enum InstallMode { - /** - * Normal update. - * - * @since 6 - */ - INSTALL_MODE_NORMAL, - - /** - * Update at night - * - * @since 6 - */ - INSTALL_MODE_NIGHT, - - /** - * Auto update - * - * @since 6 - */ - INSTALL_MODE_AUTO - } - - /** - * Represents update policy. - * - * @since 6 - */ - export interface UpdatePolicy { - /** - * Enable auto download new packages or not - * - * @since 6 - */ - autoDownload: boolean; - - /** - * New packages auto installation mode - * - * @since 6 - */ - installMode: INSTALL_MODE; - - /** - * Auto installation time interval - * - * @since 6 - */ - autoUpgradeInterval: Array; - } - - /** - * Called when the signal status changes. You need to implement this method in a child class. - * Unlike {@code onSignalStatus(status: number)}, a signal source is specified in this method. - * - * @param status Indicates the signal status. - * The value {@code 0} indicates that the signal is stable, - * {@code 1} indicates that no signal is available, - * {@code 2} indicates that the signal is not supported, - * and {@code 3} indicates that the signal is unstable. - * @param source Indicates the signal source. For details about available values, - * see {@link @system.tv.SourceIndices}. - * @since 6 - */ - export interface UpdateProgressCallback { - (progress: Progress): void; - } - - /** - * A static class to do update for the specified device. - * - * @since 6 - * @syscap SystemCapability.Update.UpdateService - * @systemapi hide for inner use. - */ - export interface Updater { - /** - * Check new version. - * - * @since 6 - */ - checkNewVersion(callback: AsyncCallback): void; - checkNewVersion(): Promise; - - /** - * Trigger download new version packages. - * apps should listen to downloadProgress event - * - * @since 6 - */ - download(): void; - - /** - * Install packages for the device. - * apps should listen to upgradeProgress event - * - * @since 6 - */ - upgrade(): void; - - /** - * Get new version information for the newly installed package. - * - * @since 6 - */ - getNewVersionInfo(callback: AsyncCallback): void; - getNewVersionInfo(): Promise; - - /** - * Get current update policy. - * - * @since 6 - */ - getUpdatePolicy(callback: AsyncCallback): void; - getUpdatePolicy(): Promise; - - /** - * Set update policy. - * - * @since 6 - */ - setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback): void; - setUpdatePolicy(policy: UpdatePolicy): Promise; - - /** - * Reboot to apply upgrade package. - * - * @since 6 - */ - applyNewVersion(callback: AsyncCallback): void; - applyNewVersion(): Promise; - - /** - * Reboot to clean cache. - * - * @since 6 - * @deprecated since 8 - */ - rebootAndCleanCache(callback: AsyncCallback): void; - rebootAndCleanCache(): Promise; - - /** - * Reboot and clean user data. - * - * @since 8 - */ - rebootAndCleanUserData(callback: AsyncCallback): void; - rebootAndCleanUserData(): Promise; - - /** - * verify update package. - * apps should listen to verifyProgress event - * - * @since 6 - */ - verifyUpdatePackage(upgradeFile: string, certsFile: string): void; - - /** - * Subscribe to download/upgrade/verify progress events - * - * @since 6 - */ - on(eventType: 'downloadProgress', callback: UpdateProgressCallback): void; - on(eventType: 'upgradeProgress', callback: UpdateProgressCallback): void; - on(eventType: 'verifyProgress', callback: UpdateProgressCallback): void; - - /** - * Unsubscribe to download/upgrade/verify progress events - * - * @since 6 - */ - off(eventType: 'downloadProgress', callback?: UpdateProgressCallback): void; - off(eventType: 'upgradeProgress', callback?: UpdateProgressCallback): void; - off(eventType: 'verifyProgress', callback?: UpdateProgressCallback): void; - - /** - * cancel download packages for the device. - * - * @since 6 - */ - cancel(): void; - } - - export type UpdateTypes = - 'OTA' | - 'patch'; - - /** - * Get Updater handler for the calling device. - * - * @return Updater handler to perform actual update - * @since 6 - */ - function getUpdater(upgradeFile: string, updateType?: UpdateTypes): Updater; - - /** - * Get Updater handler for the specified device. - * - * @return Updater handler to perform actual update - * @since 6 - */ - function getUpdaterForOther(upgradeFile: string, device: string, updateType?: UpdateTypes): Updater; - - /** - * Get Updater handler from other device to trigger update for the calling device. - * - * @return Updater handler to perform actual update - * @since 6 - */ - function getUpdaterFromOther(upgradeFile: string, device: string, updateType?: UpdateTypes): Updater; } export default update; diff --git a/api/@ohos.wallpaper.d.ts b/api/@ohos.wallpaper.d.ts index 96f958acb7..67ec44ad3e 100644 --- a/api/@ohos.wallpaper.d.ts +++ b/api/@ohos.wallpaper.d.ts @@ -107,28 +107,6 @@ declare namespace wallpaper { function setWallpaper(source: string | image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback): void; function setWallpaper(source: string | image.PixelMap, wallpaperType: WallpaperType): Promise; - /** - * Obtains the default pixel map of a wallpaper of the specified type. - * @param wallpaperType Indicates the wallpaper type. - * @return the default pixel map. - * @permission ohos.permission.GET_WALLPAPER - * @permission ohos.permission.READ_USER_STORAGE - * @systemapi Hide this for inner system use. - */ - function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback): void; - function getPixelMap(wallpaperType: WallpaperType): Promise; - - /** - * Screen shot live wallpaper - * @param scale scale the PixelMap - * @param pixelFormat pixel format - * @return the pixel map of wallpaper. - * @permission ohos.permission.CAPTURE_SCREEN - * @systemapi Hide this for inner system use. - */ - function screenshotLiveWallpaper(scale: number, pixelFormat: image.PixelMapFormat, callback: AsyncCallback): void; - function screenshotLiveWallpaper(scale: number, pixelFormat: image.PixelMapFormat): Promise; - /** * Registers a listener for wallpaper color changes to receive notifications about the changes. * @param type The incoming colorChange table open receiver pick a color change wallpaper wallpaper color changes diff --git a/api/@ohos.wantAgent.d.ts b/api/@ohos.wantAgent.d.ts index 15a908ec67..1f717156f3 100644 --- a/api/@ohos.wantAgent.d.ts +++ b/api/@ohos.wantAgent.d.ts @@ -47,24 +47,6 @@ declare namespace wantAgent { function getUid(agent: WantAgent, callback: AsyncCallback): void; function getUid(agent: WantAgent): Promise; - /** - * Obtains the {@link Want} of an {@link WantAgent}. - * - * @param agent Indicates the {@link WantAgent} whose UID is to be obtained. - * @return Returns the {@link Want} of the {@link WantAgent}. - * @systemapi Hide this for inner system use. - */ - function getWant(agent: WantAgent, callback: AsyncCallback): void; - - /** - * Obtains the {@link Want} of an {@link WantAgent}. - * - * @param agent Indicates the {@link WantAgent} whose UID is to be obtained. - * @return Returns the {@link Want} of the {@link WantAgent}. - * @systemapi Hide this for inner system use. - */ - function getWant(agent: WantAgent): Promise; - /** * Cancels a WantAgent. Only the application that creates the WantAgent can cancel it. * diff --git a/api/@ohos.wifi.d.ts b/api/@ohos.wifi.d.ts index 4ea5cdc727..08587e05d9 100644 --- a/api/@ohos.wifi.d.ts +++ b/api/@ohos.wifi.d.ts @@ -22,30 +22,6 @@ import { AsyncCallback, Callback } from './basic'; * @import import wifi from '@ohos.wifi'; */ declare namespace wifi { - /** - * Enables Wi-Fi. - * - * @return Returns {@code true} if the operation is successful, returns {@code false} otherwise. - * - * @since 6 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function enableWifi(): boolean; - - /** - * Disables Wi-Fi. - * - * @return Returns {@code true} if the operation is successful, returns {@code false} otherwise. - * - * @since 6 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function disableWifi(): boolean; - /** * Queries the Wi-Fi status * @@ -82,22 +58,6 @@ declare namespace wifi { function getScanInfos(): Promise>; function getScanInfos(callback: AsyncCallback>): void; - /** - * Adds Wi-Fi connection configuration to the device. - * - *

The configuration will be updated when the configuration is added.

- * - * @param config Indicates the device configuration for connection to the Wi-Fi network. - * @return Returns {@code networkId} if the configuration is added; returns {@code -1} otherwise. - * - * @since 6 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.SET_WIFI_CONFIG - * @systemapi Hide this for inner system use. - */ - function addDeviceConfig(config: WifiDeviceConfig): Promise; - function addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback): void; - /** * Adds a specified untrusted hotspot configuration. * @@ -125,45 +85,6 @@ declare namespace wifi { function removeUntrustedConfig(config: WifiDeviceConfig): Promise; function removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback): void; - /** - * Connects to Wi-Fi network. - * - * @param networkId ID of the connected network. - * @return Returns {@code true} if the network connection is successful, returns {@code false} otherwise. - * - * @since 6 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function connectToNetwork(networkId: number): boolean; - - /** - * Connects to Wi-Fi network. - * - * @param config Indicates the device configuration for connection to the Wi-Fi network. - * @return Returns {@code true} if the network connection is successful, returns {@code false} otherwise. - * - * @since 6 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.SET_WIFI_CONFIG and - * ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function connectToDevice(config: WifiDeviceConfig): boolean; - - /** - * Disconnects Wi-Fi network. - * - * @return Returns {@code true} for disconnecting network success, returns {@code false} otherwise. - * - * @since 6 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function disconnect(): boolean; - /** * Calculates the Wi-Fi signal level based on the Wi-Fi RSSI and frequency band. * @@ -198,19 +119,6 @@ declare namespace wifi { */ function isConnected(): boolean; - /** - * Obtains the features supported by this device. - * - *

To check whether this device supports a specified feature. - * - * @return Returns the features supported by this device. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.Core - * @permission ohos.permission.GET_WIFI_INFO - * @systemapi Hide this for inner system use. - */ - function getSupportedFeatures(): number; - /** * Checks whether this device supports a specified feature. * @@ -222,19 +130,6 @@ declare namespace wifi { */ function isFeatureSupported(featureId: number): boolean; - /** - * Obtains the MAC address of a Wi-Fi device. Wi-Fi must be enabled. - * - *

The MAC address is unique and cannot be changed. - * - * @return Returns the MAC address of the Wi-Fi device. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.GET_WIFI_LOCAL_MAC and ohos.permission.GET_WIFI_INFO - * @systemapi Hide this for inner system use. - */ - function getDeviceMacAddress(): string[]; - /** * Obtains the IP information of a Wi-Fi connection. * @@ -257,186 +152,6 @@ declare namespace wifi { */ function getCountryCode(): string; - /** - * Re-associates to current network. - * - * @return {@code true} if the Wi-Fi network is re-associate successfully. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function reassociate(): boolean; - - /** - * Re-connects to current network. - * - * @return {@code true} if the Wi-Fi network is re-connect successfully. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function reconnect(): boolean; - - /** - * Obtains the list of all existing Wi-Fi configurations. - * - *

You can obtain only the Wi-Fi configurations you created on your own application. - * - * @return Returns the list of all existing Wi-Fi configurations you created on your application. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.GET_WIFI_CONFIG - * @systemapi Hide this for inner system use. - */ - function getDeviceConfigs(): Array; - - /** - * Updates the specified Wi-Fi configuration. - * - * @param config Indicates the Wi-Fi configuration to update. - * - * @return Returns the network ID in the updated Wi-Fi configuration if the update is successful; - * returns {@code -1} if the specified Wi-Fi configuration is not contained in the list. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.SET_WIFI_CONFIG - * @systemapi Hide this for inner system use. - */ - function updateNetwork(config: WifiDeviceConfig): number; - - /** - * Disables a specified network. - * - *

The disabled network will not be associated with again. - * - * @param netId Identifies the network to disable. - * @return Returns {@code true} if the specified network is disabled, returns {@code false} otherwise. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function disableNetwork(netId: number): boolean; - - /** - * Removes all the saved Wi-Fi configurations. - * - * @return Returns {@code true} if all the saved Wi-Fi configurations are removed; - * returns {@code false} otherwise. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function removeAllNetwork(): boolean; - - /** - * Deletes a Wi-Fi network with a specified ID. - * - *

After a Wi-Fi network is deleted, its configuration will be deleted from the list of Wi-Fi configurations. - * If the Wi-Fi network is being connected, the connection will be interrupted. - * The application can only delete Wi-Fi networks it has created. - * - * @param id Indicates the ID of the Wi-Fi network, - * which can be obtained using the {@link #addDeviceConfig} or {@link #getLinkedInfo} method. - * @return Returns {@code true} if the Wi-Fi network is deleted successfully, returns {@code false} otherwise. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function removeDevice(id: number): boolean; - - /** - * Enables a Wi-Fi hotspot. - * - *

This method is asynchronous. After the Wi-Fi hotspot is enabled, Wi-Fi may be disabled. - * - * @return Returns {@code true} if this method is called successfully, returns {@code false} otherwise. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.MANAGE_WIFI_HOTSPOT - * @systemapi Hide this for inner system use. - */ - function enableHotspot(): boolean; - - /** - * Disables a Wi-Fi hotspot. - * - *

This method is asynchronous. If Wi-Fi is enabled after the Wi-Fi hotspot is disabled, Wi-Fi may be re-enabled. - * - * @return Returns {@code true} if this method is called successfully, returns {@code false} otherwise. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.MANAGE_WIFI_HOTSPOT - * @systemapi Hide this for inner system use. - */ - function disableHotspot(): boolean; - - /** - * Checks whether a device serving as a Wi-Fi hotspot supports both the 2.4 GHz and 5 GHz Wi-Fi. - * - * @return Returns {@code true} if the method is called successfully, returns {@code false} otherwise. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.MANAGE_WIFI_HOTSPOT - * @systemapi Hide this for inner system use. - */ - function isHotspotDualBandSupported(): boolean; - - /** - * Checks whether Wi-Fi hotspot is active on a device. - * - * @return Returns {@code true} if Wi-Fi hotspot is enabled, returns {@code false} otherwise. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.GET_WIFI_INFO - * @systemapi Hide this for inner system use. - */ - function isHotspotActive(): boolean; - - /** - * Sets the hotspot for a device. - * - *

Only OPEN and WPA2 PSK hotspots can be configured. - * - * @param config Indicates the Wi-Fi hotspot configuration. - * The SSID and {@code securityType} must be available and correct. - * If {@code securityType} is not {@code open}, {@code preSharedKey} must be available and correct. - * @return Returns {@code true} if the method is called successfully, returns {@code false} otherwise. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG - * @systemapi Hide this for inner system use. - */ - function setHotspotConfig(config: HotspotConfig): boolean; - - /** - * Obtains the Wi-Fi hotspot configuration. - * - * @return Returns the configuration of an existing or enabled Wi-Fi hotspot. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.GET_WIFI_CONFIG - * @systemapi Hide this for inner system use. - */ - function getHotspotConfig(): HotspotConfig; - - /** - * Obtains the list of clients that are connected to a Wi-Fi hotspot. - * - *

This method can only be used on a device that serves as a Wi-Fi hotspot. - * - * @return Returns the list of clients that are connected to the Wi-Fi hotspot. - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.GET_WIFI_INFO and ohos.permission.LOCATION and ohos.permission.MANAGE_WIFI_HOTSPOT - * @systemapi Hide this for inner system use. - */ - function getStations(): Array; - /** * Obtains information about a P2P connection. * @@ -532,30 +247,6 @@ declare namespace wifi { */ function stopDiscoverDevices(): boolean; - /** - * Deletes the persistent P2P group with the specified network ID. - * - * @param netId Indicates the network ID of the group to be deleted. - * @return Returns {@code true} if the operation is successful, returns {@code false} otherwise. - * @since 8 - * @syscap SystemCapability.Communication.WiFi.P2P - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function deletePersistentGroup(netId: number): boolean; - - /** - * Sets the name of the Wi-Fi P2P device. - * - * @param devName Indicates the name to be set. - * @return Returns {@code true} if the operation is successful, returns {@code false} otherwise. - * @since 8 - * @syscap SystemCapability.Communication.WiFi.P2P - * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function setDeviceName(devName: string): boolean; - /** * Subscribe Wi-Fi status change events. * @@ -640,29 +331,6 @@ declare namespace wifi { */ function off(type: "wifiRssiChange", callback?: Callback): void; - /** - * Subscribe Wi-Fi stream change events. - * - * @return Returns 0: stream none, 1: stream down, 2: stream up, 3: stream bidirectional - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function on(type: "streamChange", callback: Callback): void; - - /** - * Unsubscribe Wi-Fi stream change events. - * - *

All callback functions will be deregistered If there is no specific callback parameter.

- * - * @since 7 - * @syscap SystemCapability.Communication.WiFi.STA - * @permission ohos.permission.MANAGE_WIFI_CONNECTION - * @systemapi Hide this for inner system use. - */ - function off(type: "streamChange", callback?: Callback): void; - /** * Subscribe Wi-Fi hotspot state change events. * @@ -684,51 +352,6 @@ declare namespace wifi { */ function off(type: "hotspotStateChange", callback?: Callback): void; - /** - * Subscribe Wi-Fi hotspot sta join events. - * - * @return Returns StationInfo - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.MANAGE_WIFI_HOTSPOT - * @systemapi Hide this for inner system use. - */ - function on(type: "hotspotStaJoin", callback: Callback): void; - - /** - * Unsubscribe Wi-Fi hotspot sta join events. - * - *

All callback functions will be deregistered If there is no specific callback parameter.

- * - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.MANAGE_WIFI_HOTSPOT - * @systemapi Hide this for inner system use. - */ - function off(type: "hotspotStaJoin", callback?: Callback): void; - - /** - * Subscribe Wi-Fi hotspot sta leave events. - * - * @return Returns {@link #StationInfo} object - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.MANAGE_WIFI_HOTSPOT - * @systemapi Hide this for inner system use. - */ - function on(type: "hotspotStaLeave", callback: Callback): void; - - /** - * Unsubscribe Wi-Fi hotspot sta leave events. - * - * @return Returns {@link #StationInfo} object - * @since 7 - * @syscap SystemCapability.Communication.WiFi.AP.Core - * @permission ohos.permission.MANAGE_WIFI_HOTSPOT - * @systemapi Hide this for inner system use. - */ - function off(type: "hotspotStaLeave", callback?: Callback): void; - /** * Subscribe P2P status change events. * @@ -865,48 +488,6 @@ declare namespace wifi { /** Security type: reference definition of WifiSecurityType */ securityType: WifiSecurityType; - - /** The UID of the Wi-Fi configuration creator */ - /* @systemapi */ - creatorUid: number; - - /** Disable reason */ - /* @systemapi */ - disableReason: number; - - /** Allocated networkId */ - /* @systemapi */ - netId: number; - - /** Random mac type */ - /* @systemapi */ - randomMacType: number; - - /** Random mac address, the length is 6 */ - /* @systemapi */ - randomMacAddr: string; - - /** IP Type */ - /* @systemapi */ - ipType: IpType; - - /** IP config of static */ - /* @systemapi */ - staticIp: IpConfig; - } - - /** - * Wi-Fi IP configuration information. - * - * @since 7 - * @systemapi Hide this for inner system use. - * @syscap SystemCapability.Communication.WiFi.STA - */ - interface IpConfig { - ipAddress: number; - gateway: number; - dnsServers: number[]; - domains: Array; } /** @@ -980,10 +561,6 @@ declare namespace wifi { /** The BSSID of the Wi-Fi hotspot */ bssid: string; - /** The ID(uniquely identifies) of a Wi-Fi connection. */ - /* @systemapi */ - networkId: number; - /** The RSSI(dBm) of a Wi-Fi access point. */ rssi: number; @@ -1002,24 +579,12 @@ declare namespace wifi { /** Whether this Wi-Fi connection restricts the data volume. */ isRestricted: boolean; - /** The load value of this Wi-Fi connection. A greater value indicates a higher load. */ - /* @systemapi */ - chload: number; - - /** The signal-to-noise ratio (SNR) of this Wi-Fi connection. */ - /* @systemapi */ - snr: number; - /** The Wi-Fi MAC address of a device. */ macAddress: string; /** The IP address of this Wi-Fi connection. */ ipAddress: number; - /** The state of the supplicant of this Wi-Fi connection. */ - /* @systemapi */ - suppState: SuppState; - /** The state of this Wi-Fi connection. */ connState: ConnState; } @@ -1053,111 +618,6 @@ declare namespace wifi { leaseDuration: number; } - /** - * Wi-Fi hotspot configuration information. - * - * @since 7 - * @systemapi Hide this for inner system use. - * @syscap SystemCapability.Communication.WiFi.AP.Core - */ - interface HotspotConfig { - /** The SSID of the Wi-Fi hotspot */ - ssid: string; - - /** The encryption mode of the Wi-Fi hotspot */ - securityType: WifiSecurityType; - - /** The frequency band of the Wi-Fi hotspot */ - band: number; - - /** The password of the Wi-Fi hotspot */ - preSharedKey: string; - - /** The maximum number of connections allowed by the Wi-Fi hotspot */ - maxConn: number; - } - - /** - * Wi-Fi station information. - * - * @since 7 - * @systemapi Hide this for inner system use. - * @syscap SystemCapability.Communication.WiFi.AP.Core - */ - interface StationInfo { - /** the network name of the Wi-Fi client */ - name: string; - - /** The MAC address of the Wi-Fi client */ - macAddress: string; - - /** The IP address of the Wi-Fi client */ - ipAddress: string; - } - - /** - * Wi-Fi IP type enumeration. - * - * @since 7 - * @systemapi Hide this for inner system use. - * @syscap SystemCapability.Communication.WiFi.STA - */ - enum IpType { - /** Use statically configured IP settings */ - STATIC, - - /** Use dynamically configured IP settings */ - DHCP, - - /** No IP details are assigned */ - UNKNOWN, - } - - /** - * The state of the supplicant enumeration. - * - * @since 6 - * @systemapi Hide this for inner system use. - * @syscap SystemCapability.Communication.WiFi.STA - */ - export enum SuppState { - /** The supplicant is not associated with or is disconnected from the AP. */ - DISCONNECTED, - - /** The network interface is disabled. */ - INTERFACE_DISABLED, - - /** The supplicant is disabled. */ - INACTIVE, - - /** The supplicant is scanning for a Wi-Fi connection. */ - SCANNING, - - /** The supplicant is authenticating with a specified AP. */ - AUTHENTICATING, - - /** The supplicant is associating with a specified AP. */ - ASSOCIATING, - - /** The supplicant is associated with a specified AP. */ - ASSOCIATED, - - /** The four-way handshake is ongoing. */ - FOUR_WAY_HANDSHAKE, - - /** The group handshake is ongoing. */ - GROUP_HANDSHAKE, - - /** All authentication is completed. */ - COMPLETED, - - /** Failed to establish a connection to the supplicant. */ - UNINITIALIZED, - - /** The supplicant is in an unknown or invalid state. */ - INVALID - } - /** * The state of Wi-Fi connection enumeration. * diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 21a6e812bd..b10cc54156 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -52,18 +52,6 @@ declare namespace window { */ TYPE_CUTOUT } - /** - * Describes the window mode of an application - * @systemapi Hide this for inner system use. - * @since 7 - */ - enum WindowMode { - UNDEFINED = 1, - FULLSCREEN, - PRIMARY, - SECONDARY, - FLOATING - } /** * Properties of status bar and navigation bar, it couldn't update automatically @@ -108,56 +96,6 @@ declare namespace window { navigationBarContentColor?: string; } - /** - * system bar tint of region - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @systemapi Hide this for inner system use. - * @since 8 - */ - interface SystemBarRegionTint { - /** - * system bar type - */ - type: WindowType; - - /** - * the visibility of system bar - */ - isEnable?: boolean; - - /** - * the region of system bar - */ - region?: Rect; - - /** - * the background color of the system bar. - */ - backgroundColor?: string; - - /** - * the content color of the system bar. - */ - contentColor?: string - } - - /** - * system bar tint state for systemui - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @systemapi Hide this for inner system use. - * @since 8 - */ - interface SystemBarTintState { - /** - * id of display - */ - displayId: number; - /** - * region tint of systembar - */ - regionTint: Array; - } - /** * Rectangle * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -386,37 +324,7 @@ declare namespace window { */ function getTopWindow(ctx: Context, callback: AsyncCallback): void; - /** - * register the callback of systemBarTintChange - * @param type: 'systemBarTintChange' - * @systemapi Hide this for inner system use. - * @since 8 - */ - function on(type: 'systemBarTintChange', callback: Callback): void; - - /** - * unregister the callback of systemBarTintChange - * @param type: 'systemBarTintChange' - * @systemapi Hide this for inner system use. - * @since 8 - */ - function off(type: 'systemBarTintChange', callback?: Callback): void; - interface Window { - /** - * hide window. - * @systemapi Hide this for inner system use. - * @since 7 - */ - hide (callback: AsyncCallback): void; - - /** - * hide window. - * @systemapi Hide this for inner system use. - * @since 7 - */ - hide(): Promise; - /** * show window. * @since 7 @@ -477,24 +385,6 @@ declare namespace window { */ resetSize(width: number, height: number, callback: AsyncCallback): void; - /** - * Set the type of a window. - * @param type Indicate the type of a window. - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @systemapi Hide this for inner system use. - * @since 7 - */ - setWindowType(type: WindowType): Promise; - - /** - * Set the type of a window. - * @param type Indicate the type of a window. - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @systemapi Hide this for inner system use. - * @since 7 - */ - setWindowType(type: WindowType, callback: AsyncCallback): void; - /** * get the properties of current window * @syscap SystemCapability.WindowManager.WindowManager.Core diff --git a/api/@system.app.d.ts b/api/@system.app.d.ts index d038224a58..71795543cc 100644 --- a/api/@system.app.d.ts +++ b/api/@system.app.d.ts @@ -113,19 +113,6 @@ export default class App { */ static terminate(): void; - /** - * Requests the application to run in full window. - * In some scenarios, such as semi-modal FA, the FA runs in non-full window. - * In this case, you can call this API. - * This API is invalid for an application already in full-window mode. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @param options Transition time from non-full window to full window, in milliseconds. - * By default, the value is in direct proportion to the distance between the non-full window and the full window. - * @since 3 - * @systemapi - */ - static requestFullWindow(options?: RequestFullWindowOptions): void; - /** * Set image cache capacity of decoded image count. * if not set, the application will not cache any decoded image. diff --git a/api/application/AbilityRunningInfo.d.ts b/api/application/AbilityRunningInfo.d.ts index 6ffba2b824..983cef4a33 100644 --- a/api/application/AbilityRunningInfo.d.ts +++ b/api/application/AbilityRunningInfo.d.ts @@ -14,62 +14,4 @@ */ import { ElementName } from '../bundle/elementName'; -import abilityManager from '../@ohos.application.abilityManager'; - -/** - * The class of an ability running information. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide this for inner system use - * @permission N/A - */ -export interface AbilityRunningInfo { - /** - * @default ability element name - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide this for inner system use - */ - ability: ElementName; - - /** - * @default process id - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide this for inner system use - */ - pid: number; - - /** - * @default user id - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide this for inner system use - */ - uid: number; - - /** - * @default the name of the process - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide this for inner system use - */ - processName: string; - - /** - * @default ability start time - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide this for inner system use - */ - startTime: number; - - /** - * @default Enumerates state of the ability state info - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide this for inner system use - */ - abilityState: abilityManager.AbilityState; -} \ No newline at end of file +import abilityManager from '../@ohos.application.abilityManager'; \ No newline at end of file diff --git a/api/application/AbilityStateData.d.ts b/api/application/AbilityStateData.d.ts index 0f32059761..bea7f529a9 100644 --- a/api/application/AbilityStateData.d.ts +++ b/api/application/AbilityStateData.d.ts @@ -12,67 +12,3 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/** - * The ability or extension state data. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - * @permission N/A - */ -export default class AbilityStateData { - /** - * The bundle name. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - */ - bundleName: string; - - /** - * The ability name. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - */ - abilityName: string; - - /** - * The pid. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - */ - pid: number; - - /** - * The uid. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - */ - uid: number; - - /** - * The application state. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - */ - state: number; - - /** - * The ability type, page or service and so on. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - */ - abilityType: number; -} \ No newline at end of file diff --git a/api/application/AppStateData.d.ts b/api/application/AppStateData.d.ts index 753f38cc35..bea7f529a9 100644 --- a/api/application/AppStateData.d.ts +++ b/api/application/AppStateData.d.ts @@ -12,40 +12,3 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/** - * The application state data. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - * @permission N/A - */ -export default class AppStateData { - /** - * The bundle name. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - */ - bundleName: string; - - /** - * The uid. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - */ - uid: number; - - /** - * The application state. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - */ - state: number; -} \ No newline at end of file diff --git a/api/application/ApplicationStateObserver.d.ts b/api/application/ApplicationStateObserver.d.ts index 96341bd8a3..65c31cde48 100644 --- a/api/application/ApplicationStateObserver.d.ts +++ b/api/application/ApplicationStateObserver.d.ts @@ -15,58 +15,4 @@ import AppStateData from "./AppStateData"; import AbilityStateData from "./AbilityStateData"; -import ProcessData from "./ProcessData"; - -/** - * The application state observer. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi hide for inner use. - * @permission N/A - */ -export default class ApplicationStateObserver { - /** - * Will be called when foreground or background application changed. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param appStateData State changed Application info. - * @systemapi hide for inner use. - * @return - - */ - onForegroundApplicationChanged(appStateData: AppStateData): void; - - /** - * Will be called when ability state changed. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param abilityStateData State changed ability info. - * @systemapi hide for inner use. - * @return - - */ - onAbilityStateChanged(abilityStateData: AbilityStateData): void; - - /** - * Will be called when process created. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param processData Process info. - * @systemapi hide for inner use. - * @return - - */ - onProcessCreated(processData: ProcessData): void; - - /** - * Will be called when process died. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param processData Process info. - * @systemapi hide for inner use. - * @return - - */ - onProcessDied(processData: ProcessData): void; -} \ No newline at end of file +import ProcessData from "./ProcessData"; \ No newline at end of file diff --git a/api/application/MissionInfo.d.ts b/api/application/MissionInfo.d.ts index 5233bce35e..46e2255287 100644 --- a/api/application/MissionInfo.d.ts +++ b/api/application/MissionInfo.d.ts @@ -13,78 +13,4 @@ * limitations under the License. */ -import Want from "../@ohos.application.Want"; - -/** - * Mission information corresponding to ability. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @permission N/A - * @systemapi hide for inner use. - */ -export interface MissionInfo { - /** - * Indicates mission id. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - missionId: number; - - /** - * Indicates running state. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - runningState: number; - - /** - * Indicates locked state. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - lockedState: boolean; - - /** - * Indicates the recent create or update time of the mission. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - timestamp: string; - - /** - * Indicates want of the mission. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - want: Want; - - /** - * Indicates label of the mission. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - label: string; - - /** - * Indicates icon path of the mission. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - iconPath: string; - - /** - * Indicates whether the mision is continuable. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - continuable: boolean; -} \ No newline at end of file +import Want from "../@ohos.application.Want"; \ No newline at end of file diff --git a/api/application/MissionListener.d.ts b/api/application/MissionListener.d.ts index c4bb55f70d..d2fa6edff9 100644 --- a/api/application/MissionListener.d.ts +++ b/api/application/MissionListener.d.ts @@ -12,54 +12,3 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/** - * MissionListener registered by app. - * - * @name MissionListener - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @permission N/A - * @systemapi hide for inner use. - */ - export interface MissionListener { - /** - * Called by system when mission created. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param mission Indicates the id of created mission. - * @return - - */ - onMissionCreated(mission: number): void; - - /** - * Called by system when mission destroyed. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param mission Indicates the id of destroyed mission. - * @return - - */ - onMissionDestroyed(mission: number): void; - - /** - * Called by system when mission shapshot changed. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param mission Indicates the id of the mission which the snapshot changes - * @return - - */ - onMissionSnapshotChanged(mission: number): void; - - /** - * Called by system when mission moved to fornt. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @param mission Indicates the id of the mission being moved to the foreground. - * @return - - */ - onMissionMovedToFront(mission: number): void; -} \ No newline at end of file diff --git a/api/application/MissionSnapshot.d.ts b/api/application/MissionSnapshot.d.ts index 3fa0dd0587..fdb7eea911 100644 --- a/api/application/MissionSnapshot.d.ts +++ b/api/application/MissionSnapshot.d.ts @@ -14,30 +14,4 @@ */ import { ElementName } from '../bundle/elementName'; -import { image } from '../@ohos.multimedia.image'; - -/** - * Mission snapshot corresponding to mission. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @permission N/A - * @systemapi hide for inner use. - */ -export interface MissionSnapshot { - /** - * Indicates the ability elementName of the mission. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - ability: ElementName; - - /** - * Indicates mission snapshot. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - */ - snapshot: image.PixelMap; -} \ No newline at end of file +import { image } from '../@ohos.multimedia.image'; \ No newline at end of file diff --git a/api/application/ProcessData.d.ts b/api/application/ProcessData.d.ts index 8be5e311ef..5e78000e34 100644 --- a/api/application/ProcessData.d.ts +++ b/api/application/ProcessData.d.ts @@ -11,41 +11,4 @@ * 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. - */ - -/** - * The process data. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @systemapi hide for inner use. - * @permission N/A - */ -export default class ProcessData { - /** - * The bundle name. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @systemapi hide for inner use. - */ - bundleName: string; - - /** - * The pid. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @systemapi hide for inner use. - */ - pid: number; - - /** - * The uid. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Mission - * @systemapi hide for inner use. - */ - uid: number; -} \ No newline at end of file + */ \ No newline at end of file diff --git a/api/application/abilityDelegator.d.ts b/api/application/abilityDelegator.d.ts index b19a849e73..6f1403e2d4 100644 --- a/api/application/abilityDelegator.d.ts +++ b/api/application/abilityDelegator.d.ts @@ -51,19 +51,6 @@ export interface AbilityDelegator { executeShellCommand(cmd: string, callback: AsyncCallback): void; executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback): void; executeShellCommand(cmd: string, timeoutSecs?: number): Promise; - - /** - * Prints log information to the unit testing console. - * The total length of the log information to be printed cannot exceed 1000 characters. - * - * @since 8 - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi Hide this for inner system use. - * @param msg Log information - * @param code Result code - */ - finishTest(msg: string, code: number, callback: AsyncCallback): void; - finishTest(msg: string, code: number): Promise; } export default AbilityDelegator; \ No newline at end of file diff --git a/api/bundle/PermissionDef.d.ts b/api/bundle/PermissionDef.d.ts index f47217e547..e212930ef9 100644 --- a/api/bundle/PermissionDef.d.ts +++ b/api/bundle/PermissionDef.d.ts @@ -12,40 +12,3 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/** - * @name Indicates the defined permission details in file config.json - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * @systemapi - */ - export interface PermissionDef { - /** - * @default Indicates the name of this permission - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - permissionName: string; - - /** - * @default Indicates the grant mode of this permission - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - grantMode: number; - - /** - * @default Indicates the labelId of this permission - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - labelId: number; - - /** - * @default Indicates the descriptionId of this permission - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - descriptionId: number; -} diff --git a/api/bundle/bundleInstaller.d.ts b/api/bundle/bundleInstaller.d.ts index 6717988243..feadc82155 100644 --- a/api/bundle/bundleInstaller.d.ts +++ b/api/bundle/bundleInstaller.d.ts @@ -14,108 +14,4 @@ */ import { AsyncCallback } from './../basic'; -import bundle from './../@ohos.bundle'; - -/** - * @name Provides parameters required for installing or uninstalling an application. - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * @systemapi Hide this for inner system use - */ -export interface InstallParam { - /** - * @default Indicates the user id - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - userId: number; - - /** - * @default Indicates the install flag - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - installFlag: number; - - /** - * @default Indicates whether the param has data - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - isKeepData: boolean; -} - -/** - * @name Indicates the install or uninstall status - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * @systemapi Hide this for inner system use - */ -export interface InstallStatus { - - /** - * @default Indicates the install or uninstall error code - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - status: bundle.InstallErrorCode; - - /** - * @default Indicates the install or uninstall result string message - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - statusMessage: string; -} - -/** - * @name Offers install, upgrade, and remove bundles on the devices. - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * @systemapi Hide this for inner system use - */ -export interface BundleInstaller { - /** - * Install an application in a HAP. - * - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * - * @param bundleFilePaths Indicates the path where the bundle of the application is stored. The path should be the - * relative path to the data directory of the current application. - * @param installParam Indicates other parameters required for the installation. - * @return InstallStatus - * @permission ohos.permission.INSTALL_BUNDLE - */ - install(bundleFilePaths: Array, param: InstallParam, callback: AsyncCallback): void; - - /** - * Uninstall an application. - * - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * - * @param bundleName Indicates the bundle name of the application to be uninstalled. - * @param installParam Indicates other parameters required for the uninstallation. - * @return InstallStatus - * @permission ohos.permission.INSTALL_BUNDLE - */ - uninstall(bundleName: string, param: InstallParam, callback: AsyncCallback): void; - - /** - * recover an application. - * - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * - * @param bundleName Indicates the bundle name of the application to be recovered. - * @param installParam Indicates other parameters required for the recover. - * @return InstallStatus - * @permission ohos.permission.INSTALL_BUNDLE - * @systemapi Hide this for inner system use - */ - recover(bundleName: string, param: InstallParam, callback: AsyncCallback): void; -} \ No newline at end of file +import bundle from './../@ohos.bundle'; \ No newline at end of file diff --git a/api/bundle/bundleStatusCallback.d.ts b/api/bundle/bundleStatusCallback.d.ts index d42bbf2329..2e73d04e2d 100644 --- a/api/bundle/bundleStatusCallback.d.ts +++ b/api/bundle/bundleStatusCallback.d.ts @@ -12,46 +12,3 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/** - * Contains basic Ability information, which uniquely identifies an launcher StatusCallback. - * You can use this class to obtain values of the fields set in an callback function, - * such as the add, update, remove. - * @name Contains basic launcher status callback information, which uniquely identifies an LauncherStatusCallback - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * @systemapi Hide this for inner system use - */ -declare interface BundleStatusCallback { - /** - * @name Obtains add callback about an launcherStatusCallback. - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * - * @systemapi Hide this for inner system use - */ - add: (bundleName : string, userId: number) => void; - - /** - * @name Obtains update callback about an launcherStatusCallback. - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * - * @systemapi Hide this for inner system use - */ - update: (bundleName : string, userId: number) => void; - - /** - * @name Obtains remove callback about an launcherStatusCallback. - * @since 8 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * - * @systemapi Hide this for inner system use - */ - remove: (bundleName : string, userId: number) => void; -} \ No newline at end of file diff --git a/api/bundle/remoteAbilityInfo.d.ts b/api/bundle/remoteAbilityInfo.d.ts index e9a1585c26..4bef4b3295 100644 --- a/api/bundle/remoteAbilityInfo.d.ts +++ b/api/bundle/remoteAbilityInfo.d.ts @@ -14,34 +14,3 @@ */ import { ElementName } from './elementName'; - -/** - * @name Contains basic remote ability information. - * @since 8 - * @syscap SystemCapability.BundleManager.DistributedBundleFramework - * @systemapi - * - * @permission N/A - */ -export interface RemoteAbilityInfo { - /** - * @default Indicates the ability information - * @since 8 - * @syscap SystemCapability.BundleManager.DistributedBundleFramework - */ - readonly elementName: ElementName; - - /** - * @default Indicates the label of the ability - * @since 8 - * @syscap SystemCapability.BundleManager.DistributedBundleFramework - */ - readonly label: string; - - /** - * @default Indicates the icon of the ability - * @since 8 - * @syscap SystemCapability.BundleManager.DistributedBundleFramework - */ - readonly icon: string; -} \ No newline at end of file diff --git a/api/bundle/shortcutInfo.d.ts b/api/bundle/shortcutInfo.d.ts index 78d78ce8d9..f88f0d88fa 100644 --- a/api/bundle/shortcutInfo.d.ts +++ b/api/bundle/shortcutInfo.d.ts @@ -12,30 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - /** - * @name Provides methods for obtaining information about the ability that a shortcut will start, including the target - * bundle name and ability class name. - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * @systemapi Hide this for inner system use - */ - export interface ShortcutWant{ - /** - * @default Indicates the target bundle of the shortcut want - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly targetBundle: string; - /** - * @default Indicates the target class of the shortcut want - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly targetClass: string; - } - /** * @name Provides information about a shortcut, including the shortcut ID and label. * @since 7 diff --git a/api/common/full/featureability.d.ts b/api/common/full/featureability.d.ts index e37966a993..d545fac6dc 100644 --- a/api/common/full/featureability.d.ts +++ b/api/common/full/featureability.d.ts @@ -31,37 +31,6 @@ export interface Result { data: object; } -/** - * @since 5 - * @systemapi - * @deprecated since 8 - */ -export interface SubscribeMessageResponse { - /** - * Peer device ID. - * @since 5 - */ - deviceId: string; - - /** - * Name of the bundle where the peer ability locates. The name is case sensitive. - * @since 5 - */ - bundleName: string; - - /** - * Peer ability name, which is case sensitive. - * @since 5 - */ - abilityName: string; - - /** - * Messages received from the device. - * @since 5 - */ - message: string; -} - /** * @since 5 * @deprecated since 8 @@ -148,76 +117,6 @@ export interface SubscribeAbilityEventParam { syncOption?: number; } -/** - * @since 5 - * @systemapi - * @deprecated since 8 - */ -export interface SendMessageOptions { - /** - * Destination device ID. - * @since 5 - */ - deviceId: string; - - /** - * Name of the destination bundle where the ability locates. The name is case sensitive. - * @since 5 - */ - bundleName: string; - - /** - * Destination ability name, which is case sensitive. - * @since 5 - */ - abilityName: string; - - /** - * Messages sent to the destination device. - * A maximum of 1 KB of data can be transmitted at a time. - * If more than 1 KB of data needs to be transmitted, split the messages into multiple parts to transmit. - * @since 5 - */ - message?: string; - - /** - * Called when the messages are sent successfully. - * @since 5 - */ - success?: () => void; - - /** - * Called when the messages fail to be sent. - * @since 5 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 5 - */ - complete?: () => void; -} - -/** - * @since 5 - * @systemapi - * @deprecated since 8 - */ -export interface SubscribeMessageOptions { - /** - * Called when the messages are sent successfully. - * @since 5 - */ - success?: (data: SubscribeMessageResponse) => void; - - /** - * Called when the messages fail to be sent. - * @since 5 - */ - fail?: (data: string, code: number) => void; -} - /** * @since 5 * @deprecated since 8 @@ -370,30 +269,4 @@ export declare class FeatureAbility { * @deprecated since 8 */ static unsubscribeAbilityEvent(param: SubscribeAbilityEventParam): Promise; - - /** - * Sends messages to the destination device. - * @param options Options. - * @since 5 - * @systemapi - * @deprecated since 8 - */ - static sendMsg(options: SendMessageOptions): void; - - /** - * Listens for messages sent from other devices. - * @param options Options. - * @since 5 - * @systemapi - * @deprecated since 8 - */ - static subscribeMsg(options: SubscribeMessageOptions): void; - - /** - * Cancels the listening for messages sent from other devices. - * @since 5 - * @systemapi - * @deprecated since 8 - */ - static unsubscribeMsg(): void; } diff --git a/api/common/full/global.d.ts b/api/common/full/global.d.ts index a3729cd8f2..37af67c714 100644 --- a/api/common/full/global.d.ts +++ b/api/common/full/global.d.ts @@ -216,19 +216,3 @@ export declare class ImageBitmap { */ readonly width: number; } - -/** - * Conditional compilation for rich equipment - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 4 - * @systemapi - */ -export declare const STANDARD: string; - -/** - * Conditional compilation for lite equipment - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 4 - * @systemapi - */ -export declare const LITE: string; diff --git a/api/common/full/viewmodel.d.ts b/api/common/full/viewmodel.d.ts index 466e568af9..cc823b8f7e 100644 --- a/api/common/full/viewmodel.d.ts +++ b/api/common/full/viewmodel.d.ts @@ -500,14 +500,6 @@ export interface Element { */ getBoundingClientRect(): RectObj; - /** - * Obtains attributes of the element. - * @returns attributes of the element in json string. - * @since 8 - * @systemapi - */ - getInspector(): string; - /** * If 0.5 is returned, 50% of the current component is visible. * @param radios Scope of Monitoring components. @@ -2759,25 +2751,3 @@ export interface Options> { */ onCreate?(): void; } - -/** - * Used for ide. - * @systemapi - * @hide - * @since 4 - */ -type DefaultData = object; -/** - * Used for ide. - * @systemapi - * @hide - * @since 4 - */ -type CombinedOptions = object & Options & ThisType; -/** - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @systemapi - * @hide - * @since 4 - */ -export declare function extendViewModel(options: CombinedOptions): ViewModel & Data; diff --git a/api/common/lite/featureability.d.ts b/api/common/lite/featureability.d.ts index cbe4af8797..7738d0f13e 100644 --- a/api/common/lite/featureability.d.ts +++ b/api/common/lite/featureability.d.ts @@ -13,135 +13,9 @@ * limitations under the License. */ -/** - * @since 5 - * @systemapi - * @deprecated since 8 - */ -export interface SubscribeMessageResponse { - /** - * Peer device ID. - * @since 5 - */ - deviceId: string; - - /** - * Name of the bundle where the peer ability locates. The name is case sensitive. - * @since 5 - */ - bundleName: string; - - /** - * Peer ability name, which is case sensitive. - * @since 5 - */ - abilityName: string; - - /** - * Messages received from the device. - * @since 5 - */ - message: string; -} - -/** - * @since 5 - * @systemapi - * @deprecated since 8 - */ -export interface SendMessageOptions { - /** - * Destination device ID. - * @since 5 - */ - deviceId: string; - - /** - * Name of the destination bundle where the ability locates. The name is case sensitive. - * @since 5 - */ - bundleName: string; - - /** - * Destination ability name, which is case sensitive. - * @since 5 - */ - abilityName: string; - - /** - * Messages sent to the destination device. - * A maximum of 1 KB of data can be transmitted at a time. - * If more than 1 KB of data needs to be transmitted, split the messages into multiple parts to transmit. - * @since 5 - */ - message?: string; - - /** - * Called when the messages are sent successfully. - * @since 5 - */ - success?: () => void; - - /** - * Called when the messages fail to be sent. - * @since 5 - */ - fail?: (data: string, code: number) => void; - - /** - * Called when the execution is completed. - * @since 5 - */ - complete?: () => void; -} - -/** - * @since 5 - * @systemapi - * @deprecated since 8 - */ -export interface SubscribeMessageOptions { - /** - * Called when the messages are sent successfully. - * @since 5 - */ - success?: (data: SubscribeMessageResponse) => void; - - /** - * Called when the messages fail to be sent. - * @since 5 - */ - fail?: (data: string, code: number) => void; -} - /** * @since 5 * @deprecated since 8 */ export declare class FeatureAbility { - /** - * Sends messages to the destination device. - * @param options Options. - * @since 5 - * @systemapi - * @deprecated since 8 - */ - static sendMsg(options: SendMessageOptions): void; - - /** - * Listens for messages sent from other devices. - * @param options Options. - * @since 5 - * @systemapi - * @deprecated since 8 - */ - static subscribeMsg(options: SubscribeMessageOptions): void; - - /** - * Cancels the listening for messages sent from other devices. - * @since 5 - * @systemapi - * @deprecated since 8 - */ - static unsubscribeMsg(): void; } diff --git a/api/notification/notificationFlags.ts b/api/notification/notificationFlags.ts index 9fcc00325e..eb46bb093a 100644 --- a/api/notification/notificationFlags.ts +++ b/api/notification/notificationFlags.ts @@ -13,30 +13,6 @@ * limitations under the License. */ -/** - * The status of the notification flag. - * - * @since 8 - * @systemapi Hide this for inner system use. - * @syscap SystemCapability.Notification.Notification - */ - export enum NotificationFlagStatus { - /** - * notification flag default value - */ - TYPE_NONE = 0, - - /** - * notification flag open - */ - TYPE_OPEN = 1, - - /** - * notification flag close - */ - TYPE_CLOSE = 2, -} - /** * Describes a NotificationFlags instance. * diff --git a/api/notification/notificationRequest.d.ts b/api/notification/notificationRequest.d.ts index 2ace6b67ad..ef7a31a0b1 100644 --- a/api/notification/notificationRequest.d.ts +++ b/api/notification/notificationRequest.d.ts @@ -168,35 +168,11 @@ export interface NotificationRequest { */ readonly creatorUserId?: number; - /** - * Obtains the classification of this notification. - * - * @systemapi Hide this for inner system use. - */ - classification?: string; - /** * Obtains the unique hash code of a notification in the current application. */ readonly hashCode?: string; - /** - * Whether the notification can be remove. - * - * @default true - * @since 8 - * @systemapi Hide this for inner system use. - */ - readonly isRemoveAllowed?: boolean; - - /** - * Notification source. enum SourceType - * - * @since 8 - * @systemapi Hide this for inner system use. - */ - readonly source?: number; - /** * Obtains the template of this notification. * @@ -211,14 +187,6 @@ export interface NotificationRequest { */ distributedOption?: DistributedOptions; - /** - * The device ID of the notification source. - * - * @since 8 - * @systemapi Hide this for inner system use. - */ - readonly deviceId?: string; - /** * Obtains the set of identifiers for the notification. * @@ -252,11 +220,4 @@ export interface DistributedOptions { * Obtains the devices on which notifications can be open. */ supportOperateDevices?: Array; - - /** - * Obtains the remind mode of the notification. enum DeviceRemindType. - - * @systemapi Hide this for inner system use. - */ - readonly remindType?: number; } diff --git a/api/notification/notificationSorting.d.ts b/api/notification/notificationSorting.d.ts index 3155555098..85f3cce4e7 100644 --- a/api/notification/notificationSorting.d.ts +++ b/api/notification/notificationSorting.d.ts @@ -13,19 +13,4 @@ * limitations under the License. */ -import { NotificationSlot } from './notificationSlot'; - -/** - * Provides sorting information about an active notification. - * - * @name NotificationSorting - * @syscap SystemCapability.Notification.Notification - * @permission N/A - * @systemapi Hide this for inner system use. - * @since 7 - */ -export interface NotificationSorting { - readonly slot: NotificationSlot; - readonly hashCode: string; - readonly ranking: number; -} \ No newline at end of file +import { NotificationSlot } from './notificationSlot'; \ No newline at end of file diff --git a/api/notification/notificationSortingMap.d.ts b/api/notification/notificationSortingMap.d.ts index 1b62fa6a4f..19e7d9bb6e 100644 --- a/api/notification/notificationSortingMap.d.ts +++ b/api/notification/notificationSortingMap.d.ts @@ -13,18 +13,4 @@ * limitations under the License. */ -import { NotificationSorting } from './notificationSorting'; - -/** - * Provides sorting information about the active notifications among all the notifications that have been subscribed to - * - * @name NotificationSortingMap - * @since 7 - * @syscap SystemCapability.Notification.Notification - * @permission N/A - * @systemapi Hide this for inner system use. - */ -interface NotificationSortingMap { - readonly sortings: {[key: string]: NotificationSorting}; - readonly sortedHashCode: Array; -} \ No newline at end of file +import { NotificationSorting } from './notificationSorting'; \ No newline at end of file diff --git a/api/notification/notificationSubscribeInfo.d.ts b/api/notification/notificationSubscribeInfo.d.ts index 6886554c57..e0689abf57 100644 --- a/api/notification/notificationSubscribeInfo.d.ts +++ b/api/notification/notificationSubscribeInfo.d.ts @@ -11,18 +11,4 @@ * 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. - */ - -/** - * Sets filter criteria of publishers for subscribing to desired notifications. - * - * @name NotificationSubscribeInfo - * @since 7 - * @syscap SystemCapability.Notification.Notification - * @permission N/A - * @systemapi Hide this for inner system use. - */ -export interface NotificationSubscribeInfo { - bundleNames?: Array; - userId?: number; -} \ No newline at end of file + */ \ No newline at end of file diff --git a/api/notification/notificationSubscriber.d.ts b/api/notification/notificationSubscriber.d.ts index f2356ec81f..c0addf2b05 100644 --- a/api/notification/notificationSubscriber.d.ts +++ b/api/notification/notificationSubscriber.d.ts @@ -16,68 +16,3 @@ import { NotificationRequest } from './notificationRequest'; import { NotificationSortingMap } from './notificationSortingMap'; import notification from '../@ohos.notification'; - -/** - * Provides methods that will be called back when the subscriber receives a new notification or - * a notification is canceled. - * - * @name NotificationSubscriber - * @syscap SystemCapability.Notification.Notification - * @permission N/A - * @systemapi Hide this for inner system use. - * @since 7 - */ -export interface NotificationSubscriber { - onConsume?:(data: SubscribeCallbackData) => void; - onCancel?:(data: SubscribeCallbackData) => void; - onUpdate?:(data: NotificationSortingMap) => void; - onConnect?:() => void; - onDisconnect?:() => void; - onDestroy?:() => void; - - /** - * Callback when the Do Not Disturb setting changed. - * @syscap SystemCapability.Notification.Notification - * @since 8 - */ - onDoNotDisturbDateChange?:(mode: notification.DoNotDisturbDate) => void; - - /** - * Callback when the notificaition permission is changed. - * @syscap SystemCapability.Notification.Notification - * @since 8 - */ - onEnabledNotificationChanged?:(callbackData: EnabledNotificationCallbackData) => void; -} - -/** - * Provides methods that will be called back when the subscriber receives a new notification or - * a notification is canceled. - * - * @name SubscribeCallbackData - * @syscap SystemCapability.Notification.Notification - * @permission N/A - * @systemapi Hide this for inner system use. - * @since 7 - */ -export interface SubscribeCallbackData { - readonly request: NotificationRequest; - readonly sortingMap?: NotificationSortingMap; - readonly reason?: number; - readonly sound?: string; - readonly vibrationValues?: Array; -} - -/** - * Describes the properties of the application that the permission to send notifications has changed. - * - * @name EnabledNotificationCallbackData - * @syscap SystemCapability.Notification.Notification - * @systemapi Hide this for inner system use. - * @since 8 - */ -export interface EnabledNotificationCallbackData { - readonly bundle: string; - readonly uid: number; - readonly enable: boolean; -} -- Gitee