diff --git a/api/@ohos.request.d.ts b/api/@ohos.request.d.ts index d50e6e72acb7f576e5b4f90ae62686105c198fee..5da8cea8e50bff5d6dc7b1cb7f3b32bc878414e0 100644 --- a/api/@ohos.request.d.ts +++ b/api/@ohos.request.d.ts @@ -16,8 +16,9 @@ import { AsyncCallback } from './basic'; /** * upload and download - * + * @syscap SystemCapability.MiscServices.Download * @since 7 + * * @import request from '@ohos.request'; * @permission {@code ohos.permission.INTERNET} */ @@ -25,7 +26,7 @@ declare namespace request { /** * Bit flag indicating download is allowed when using the cellular network. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -33,7 +34,7 @@ declare namespace request { /** * Bit flag indicating download is allowed when using the WLAN. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -41,7 +42,7 @@ declare namespace request { /** * Indicates that the download cannot be resumed for some temporary errors. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -49,7 +50,7 @@ declare namespace request { /** * Indicates that no storage device, such as an SD card, is found. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -57,7 +58,7 @@ declare namespace request { /** * Indicates that files to be downloaded already exist, and that the download session cannot overwrite the existing files. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -65,7 +66,7 @@ declare namespace request { /** * Indicates that a file operation fails. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -73,7 +74,7 @@ declare namespace request { /** * Indicates that the HTTP transmission fails. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -81,7 +82,7 @@ declare namespace request { /** * Indicates insufficient storage space. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -89,7 +90,7 @@ declare namespace request { /** * Indicates an error caused by too many network redirections. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -97,7 +98,7 @@ declare namespace request { /** * Indicates an HTTP code that cannot be identified. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -105,7 +106,7 @@ declare namespace request { /** * Indicates an undefined error. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -113,7 +114,7 @@ declare namespace request { /** * Indicates that the download is paused and waiting for a WLAN connection, because the file size exceeds the maximum allowed for a session using the cellular network. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -121,7 +122,7 @@ declare namespace request { /** * Indicates that the download is paused for some reasons. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -129,7 +130,7 @@ declare namespace request { /** * Indicates that the download is paused due to a network problem, for example, network disconnection. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -137,7 +138,7 @@ declare namespace request { /** * Indicates that a network error occurs, and the download session will be retried. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -145,7 +146,7 @@ declare namespace request { /** * Indicates that the download session has failed and will not be retried. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -153,7 +154,7 @@ declare namespace request { /** * Indicates that the download session has been paused. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -161,7 +162,7 @@ declare namespace request { /** * Indicates that the download session is being scheduled. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -169,7 +170,7 @@ declare namespace request { /** * Indicates that the download session is in progress. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -177,7 +178,7 @@ declare namespace request { /** * Indicates that the download session is completed. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} */ @@ -185,7 +186,7 @@ declare namespace request { /** * Starts a download session. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 6 * @param config download config * @param callback Indicate the callback function to receive DownloadTask. @@ -196,7 +197,7 @@ declare namespace request { /** * Starts a download session. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 6 * @param config download config * @permission {@code ohos.permission.INTERNET} @@ -206,7 +207,7 @@ declare namespace request { /** * Starts a upload session. - * @syscap SystemCapability.Miscservices.Upload + * @syscap SystemCapability.MiscServices.Upload * @since 6 * @param config upload config * @param callback Indicate the callback function to receive UploadTask. @@ -217,7 +218,7 @@ declare namespace request { /** * Starts a upload session. - * @syscap SystemCapability.Miscservices.Upload + * @syscap SystemCapability.MiscServices.Upload * @since 6 * @param config upload config * @permission {@code ohos.permission.INTERNET} @@ -253,7 +254,7 @@ declare namespace request { interface DownloadTask { /** * Called when the current download session is in process. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 6 * @param type progress Indicates the download task progress. * @param callback The callback function for the download progress change event @@ -266,7 +267,7 @@ declare namespace request { /** * Called when the current download session is in process. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 6 * @param type progress Indicates the download task progress. * @param callback The callback function for the download progress change event @@ -279,7 +280,7 @@ declare namespace request { /** * Called when the current download session complete、pause or remove. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @param type Indicates the download session event type * complete: download task completed, @@ -293,7 +294,7 @@ declare namespace request { /** * Called when the current download session complete、pause or remove. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @param type Indicates the download session event type * complete: download task completed, @@ -307,7 +308,7 @@ declare namespace request { /** * Called when the current download session fails. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @param type Indicates the download session type, fail: download task has failed. * @param callback The callback function for the download fail change event @@ -319,7 +320,7 @@ declare namespace request { /** * Called when the current download session fails. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @param type Indicates the download session type, fail: download task has failed. * @param callback Indicate the callback function to receive err. @@ -331,7 +332,7 @@ declare namespace request { /** * Deletes a download session and the downloaded files. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 6 * @param callback Indicates asynchronous invoking Result. * @permission {@code ohos.permission.INTERNET} @@ -341,7 +342,7 @@ declare namespace request { /** * Deletes a download session and the downloaded files. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 6 * @permission {@code ohos.permission.INTERNET} * @return - @@ -350,7 +351,7 @@ declare namespace request { /** * Pause a download session. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @param callback Indicates asynchronous invoking Result. * @permission {@code ohos.permission.INTERNET} @@ -360,7 +361,7 @@ declare namespace request { /** * Pause a download session. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} * @return - @@ -369,7 +370,7 @@ declare namespace request { /** * Resume a paused download session. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @param callback Indicates asynchronous invoking Result. * @permission {@code ohos.permission.INTERNET} @@ -379,7 +380,7 @@ declare namespace request { /** * Resume a paused download session. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} * @return - @@ -388,7 +389,7 @@ declare namespace request { /** * Queries download information of a session, which is defined in DownloadSession.DownloadInfo. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @param callback Indicate the callback function to receive download info. * @permission {@code ohos.permission.INTERNET} @@ -398,7 +399,7 @@ declare namespace request { /** * Queries download information of a session, which is defined in DownloadSession.DownloadInfo. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} * @return - @@ -407,7 +408,7 @@ declare namespace request { /** * Queries the MIME type of the download file. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @param callback Indicate the callback function to receive download file MIME type. * @permission {@code ohos.permission.INTERNET} @@ -417,7 +418,7 @@ declare namespace request { /** * Queries the MIME type of the download file. - * @syscap SystemCapability.Miscservices.Download + * @syscap SystemCapability.MiscServices.Download * @since 7 * @permission {@code ohos.permission.INTERNET} * @return - @@ -448,7 +449,7 @@ declare namespace request { interface UploadTask { /** * Called when the current upload session is in process. - * @syscap SystemCapability.Miscservices.Upload + * @syscap SystemCapability.MiscServices.Upload * @since 6 * @param type progress Indicates the upload task progress. * @param callback The callback function for the upload progress change event @@ -461,7 +462,7 @@ declare namespace request { /** * Called when the current upload session is in process. - * @syscap SystemCapability.Miscservices.Upload + * @syscap SystemCapability.MiscServices.Upload * @since 6 * @param type progress Indicates the upload task progress. * @param callback The callback function for the upload progress change event @@ -474,7 +475,7 @@ declare namespace request { /** * Called when the header of the current upload session has been received. - * @syscap SystemCapability.Miscservices.Upload + * @syscap SystemCapability.MiscServices.Upload * @since 7 * @param type headerReceive Indicates the upload task headed receive. * @param callback The callback function for the HTTP Response Header event @@ -486,7 +487,7 @@ declare namespace request { /** * Called when the header of the current upload session has been received. - * @syscap SystemCapability.Miscservices.Upload + * @syscap SystemCapability.MiscServices.Upload * @since 7 * @param type headerReceive Indicates the upload task headed receive. * @param callback The callback function for the HTTP Response Header event @@ -498,7 +499,7 @@ declare namespace request { /** * Deletes a upload session. - * @syscap SystemCapability.Miscservices.Upload + * @syscap SystemCapability.MiscServices.Upload * @since 6 * @param callback Indicates asynchronous invoking Result. * @permission {@code ohos.permission.INTERNET} @@ -508,7 +509,7 @@ declare namespace request { /** * Deletes a upload session. - * @syscap SystemCapability.Miscservices.Upload + * @syscap SystemCapability.MiscServices.Upload * @since 6 * @permission {@code ohos.permission.INTERNET} * @return - diff --git a/api/@ohos.screenLock.d.ts b/api/@ohos.screenLock.d.ts index ad709d2617033526f1be7fb0ddf2c54362f75fd3..f1be748d76e6166c0ab4f7f3cb1c53e80855c4b9 100644 --- a/api/@ohos.screenLock.d.ts +++ b/api/@ohos.screenLock.d.ts @@ -17,7 +17,7 @@ import { Callback } from './basic'; /** * systemScreenLock - * @syscap SystemCapability.Miscservices.ScreenLock + * @syscap SystemCapability.MiscServices.ScreenLock * @since 7 */ declare namespace screenLock { diff --git a/api/@ohos.systemTimer.d.ts b/api/@ohos.systemTimer.d.ts index 987f9067a8bc9701f2b30df7f5b0abcb87c8749a..909a5b891d15aff5303058664a1185378393973f 100644 --- a/api/@ohos.systemTimer.d.ts +++ b/api/@ohos.systemTimer.d.ts @@ -20,7 +20,7 @@ import { WantAgent } from './@ohos.wantAgent'; * Provides js api for systemTimer * * @since 7 - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.Miscservices.Time * @systemapi Hide this for inner system use. */ declare namespace systemTimer {