| /interface/sdk-js/api/ |
| D | @ohos.multimedia.avsession.d.ts | 42 …function createAVSession(context: Context, tag: string, type: AVSessionType, callback: AsyncCallba… 67 …function getAllSessionDescriptors(callback: AsyncCallback<Array<Readonly<AVSessionDescriptor>>>): … 93 …function getHistoricalSessionDescriptors(maxSize: number, callback: AsyncCallback<Array<Readonly<A… 123 function createController(sessionId: string, callback: AsyncCallback<AVSessionController>): void; 157 …SessionToken | 'all', audioDevices: Array<audio.AudioDeviceDescriptor>, callback: AsyncCallback<vo… 229 function on(type: 'sessionCreate', callback: (session: AVSessionDescriptor) => void): void; 243 function on(type: 'sessionDestroy', callback: (session: AVSessionDescriptor) => void): void; 257 function on(type: 'topSessionChange', callback: (session: AVSessionDescriptor) => void): void; 271 function off(type: 'sessionCreate', callback?: (session: AVSessionDescriptor) => void): void; 285 function off(type: 'sessionDestroy', callback?: (session: AVSessionDescriptor) => void): void; [all …]
|
| D | @ohos.net.socket.d.ts | 427 bind(address: NetAddress, callback: AsyncCallback<void>): void; 473 send(options: UDPSendOptions, callback: AsyncCallback<void>): void; 515 close(callback: AsyncCallback<void>): void; 553 getState(callback: AsyncCallback<SocketStateBase>): void; 595 setExtraOptions(options: UDPExtraOptions, callback: AsyncCallback<void>): void; 635 …on(type: 'message', callback: Callback<{ message: ArrayBuffer, remoteInfo: SocketRemoteInfo }>): v… 652 …off(type: 'message', callback?: Callback<{ message: ArrayBuffer, remoteInfo: SocketRemoteInfo }>):… 669 on(type: 'listening' | 'close', callback: Callback<void>): void; 686 off(type: 'listening' | 'close', callback?: Callback<void>): void; 703 on(type: 'error', callback: ErrorCallback): void; [all …]
|
| D | @ohos.inputMethod.d.ts | 91 function switchInputMethod(target: InputMethodProperty, callback: AsyncCallback<boolean>): void; 143 …function switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallback<boole… 199 callback: AsyncCallback<boolean> 237 …callback: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => vo… 251 …callback?: (inputMethodProperty: InputMethodProperty, inputMethodSubtype: InputMethodSubtype) => v… 264 on(type: 'imeShow', callback: (info: Array<InputWindowInfo>) => void): void; 276 off(type: 'imeShow', callback?: (info: Array<InputWindowInfo>) => void): void; 288 on(type: 'imeHide', callback: (info: Array<InputWindowInfo>) => void): void; 300 off(type: 'imeHide', callback?: (info: Array<InputWindowInfo>) => void): void; 315 callback: AsyncCallback<Array<InputMethodSubtype>> [all …]
|
| D | @ohos.sensor.d.ts | 207 function on(type: SensorId.COLOR, callback: Callback<ColorResponse>, options?: Options): void; 220 function on(type: SensorId.SAR, callback: Callback<SarResponse>, options?: Options): void; 234 function on(type: SensorId.ACCELEROMETER, callback: Callback<AccelerometerResponse>, 249 …function on(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback<AccelerometerUncalibrate… 262 …function on(type: SensorId.AMBIENT_LIGHT, callback: Callback<LightResponse>, options?: Options): v… 274 function on(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback<AmbientTemperatureResponse>, 287 …function on(type: SensorId.BAROMETER, callback: Callback<BarometerResponse>, options?: Options): v… 299 function on(type: SensorId.GRAVITY, callback: Callback<GravityResponse>, 314 function on(type: SensorId.GYROSCOPE, callback: Callback<GyroscopeResponse>, 329 …function on(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback<GyroscopeUncalibratedRespons… [all …]
|
| D | @ohos.inputMethodEngine.d.ts | 361 hide(callback: AsyncCallback<void>): void; 380 hideKeyboard(callback: AsyncCallback<void>): void; 408 callback: (kbController: KeyboardController, textInputClient: TextInputClient) => void 421 callback?: (kbController: KeyboardController, textInputClient: TextInputClient) => void 432 on(type: 'keyboardShow' | 'keyboardHide', callback: () => void): void; 442 off(type: 'keyboardShow' | 'keyboardHide', callback?: () => void): void; 463 …on(type: 'inputStart', callback: (kbController: KeyboardController, inputClient: InputClient) => v… 473 …off(type: 'inputStart', callback?: (kbController: KeyboardController, inputClient: InputClient) =>… 483 on(type: 'inputStop', callback: () => void): void; 493 off(type: 'inputStop', callback: () => void): void; [all …]
|
| D | @ohos.window.d.ts | 1069 function createWindow(config: Configuration, callback: AsyncCallback<Window>): void; 1099 function create(id: string, type: WindowType, callback: AsyncCallback<Window>): void; 1141 …function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback<Window>): … 1153 function find(id: string, callback: AsyncCallback<Window>): void; 1200 function getTopWindow(callback: AsyncCallback<Window>): void; 1236 function getTopWindow(ctx: BaseContext, callback: AsyncCallback<Window>): void; 1261 function getLastWindow(ctx: BaseContext, callback: AsyncCallback<Window>): void; 1299 function minimizeAll(id: number, callback: AsyncCallback<void>): void; 1323 function toggleShownStateForAllAppWindows(callback: AsyncCallback<void>): void; 1347 function setWindowLayoutMode(mode: WindowLayoutMode, callback: AsyncCallback<void>): void; [all …]
|
| D | @ohos.multimedia.media.d.ts | 33 function createAVPlayer(callback: AsyncCallback<AVPlayer>): void; 51 function createAVRecorder(callback: AsyncCallback<AVRecorder>): void; 90 function createVideoPlayer(callback: AsyncCallback<VideoPlayer>): void; 111 function createVideoRecorder(callback: AsyncCallback<VideoRecorder>): void; 137 callback: AsyncCallback<SoundPool> 296 prepare(callback: AsyncCallback<void>): void; 315 play(callback: AsyncCallback<void>): void; 333 pause(callback: AsyncCallback<void>): void; 351 stop(callback: AsyncCallback<void>): void; 369 reset(callback: AsyncCallback<void>): void; [all …]
|
| D | @ohos.telephony.observer.d.ts | 62 function on(type: 'networkStateChange', callback: Callback<NetworkState>): void; 82 …function on(type: 'networkStateChange', options: { slotId: number }, callback: Callback<NetworkSta… 98 function off(type: 'networkStateChange', callback?: Callback<NetworkState>): void; 114 function on(type: 'signalInfoChange', callback: Callback<Array<SignalInformation>>): void; 132 …function on(type: 'signalInfoChange', options: { slotId: number }, callback: Callback<Array<Signal… 148 function off(type: 'signalInfoChange', callback?: Callback<Array<SignalInformation>>): void; 168 function on(type: 'cellInfoChange', callback: Callback<Array<CellInformation>>): void; 190 …function on(type: 'cellInfoChange', options: { slotId: number }, callback: Callback<Array<CellInfo… 208 function off(type: 'cellInfoChange', callback?: Callback<Array<CellInformation>>): void; 227 callback: Callback<{ state: DataConnectState, network: RatType }>): void; [all …]
|
| D | @ohos.account.appAccount.d.ts | 57 addAccount(name: string, callback: AsyncCallback<void>): void; 73 addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>): void; 106 createAccount(name: string, callback: AsyncCallback<void>): void; 125 createAccount(name: string, options: CreateAccountOptions, callback: AsyncCallback<void>): void; 162 callback: AuthenticatorCallback 180 createAccountImplicitly(owner: string, callback: AuthCallback): void; 198 …createAccountImplicitly(owner: string, options: CreateAccountImplicitlyOptions, callback: AuthCall… 212 deleteAccount(name: string, callback: AsyncCallback<void>): void; 242 removeAccount(name: string, callback: AsyncCallback<void>): void; 273 disableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void; [all …]
|
| D | @ohos.account.osAccount.d.ts | 67 activateOsAccount(localId: number, callback: AsyncCallback<void>): void; 103 isMultiOsAccountEnable(callback: AsyncCallback<boolean>): void; 125 checkMultiOsAccountEnabled(callback: AsyncCallback<boolean>): void; 149 isOsAccountActived(localId: number, callback: AsyncCallback<boolean>): void; 178 checkOsAccountActivated(localId: number, callback: AsyncCallback<boolean>): void; 217 …isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback<boolean>)… 267 …checkOsAccountConstraintEnabled(localId: number, constraint: string, callback: AsyncCallback<boole… 304 isTestOsAccount(callback: AsyncCallback<boolean>): void; 326 checkOsAccountTestable(callback: AsyncCallback<boolean>): void; 350 isOsAccountVerified(callback: AsyncCallback<boolean>): void; [all …]
|
| D | @ohos.app.form.formHost.d.ts | 50 function deleteForm(formId: string, callback: AsyncCallback<void>): void; 95 function releaseForm(formId: string, callback: AsyncCallback<void>): void; 119 …function releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback<void>): void; 167 function requestForm(formId: string, callback: AsyncCallback<void>): void; 211 function castToNormalForm(formId: string, callback: AsyncCallback<void>): void; 251 function notifyVisibleForms(formIds: Array<string>, callback: AsyncCallback<void>): void; 291 function notifyInvisibleForms(formIds: Array<string>, callback: AsyncCallback<void>): void; 332 function enableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void>): void; 375 function disableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void>): void; 410 function isSystemReady(callback: AsyncCallback<void>): void; [all …]
|
| D | @ohos.net.sharing.d.ts | 41 function isSharingSupported(callback: AsyncCallback<boolean>): void; 72 function isSharing(callback: AsyncCallback<boolean>): void; 109 function startSharing(type: SharingIfaceType, callback: AsyncCallback<void>): void; 152 function stopSharing(type: SharingIfaceType, callback: AsyncCallback<void>): void; 188 function getStatsRxBytes(callback: AsyncCallback<number>): void; 218 function getStatsTxBytes(callback: AsyncCallback<number>): void; 248 function getStatsTotalBytes(callback: AsyncCallback<number>): void; 280 function getSharingIfaces(state: SharingIfaceState, callback: AsyncCallback<Array<string>>): void; 314 …function getSharingState(type: SharingIfaceType, callback: AsyncCallback<SharingIfaceState>): void; 348 function getSharableRegexes(type: SharingIfaceType, callback: AsyncCallback<Array<string>>): void; [all …]
|
| D | @ohos.net.policy.d.ts | 43 function setBackgroundAllowed(isAllowed: boolean, callback: AsyncCallback<void>): void; 76 function isBackgroundAllowed(callback: AsyncCallback<boolean>): void; 109 …function getBackgroundPolicyByUid(uid: number, callback: AsyncCallback<NetBackgroundPolicy>): void; 144 function setPolicyByUid(uid: number, policy: NetUidPolicy, callback: AsyncCallback<void>): void; 179 function getPolicyByUid(uid: number, callback: AsyncCallback<NetUidPolicy>): void; 213 function getUidsByPolicy(policy: NetUidPolicy, callback: AsyncCallback<Array<number>>): void; 248 function isUidNetAllowed(uid: number, isMetered: boolean, callback: AsyncCallback<boolean>): void; 284 function isUidNetAllowed(uid: number, iface: string, callback: AsyncCallback<boolean>): void; 319 …function setNetQuotaPolicies(quotaPolicies: Array<NetQuotaPolicy>, callback: AsyncCallback<void>):… 352 function getNetQuotaPolicies(callback: AsyncCallback<Array<NetQuotaPolicy>>): void; [all …]
|
| D | @ohos.net.webSocket.d.ts | 184 connect(url: string, callback: AsyncCallback<boolean>): void; 209 connect(url: string, options: WebSocketRequestOptions, callback: AsyncCallback<boolean>): void; 257 send(data: string | ArrayBuffer, callback: AsyncCallback<boolean>): void; 301 close(callback: AsyncCallback<boolean>): void; 324 close(options: WebSocketCloseOptions, callback: AsyncCallback<boolean>): void; 364 on(type: 'open', callback: AsyncCallback<Object>): void; 381 off(type: 'open', callback?: AsyncCallback<Object>): void; 400 on(type: 'message', callback: AsyncCallback<string | ArrayBuffer>): void; 419 off(type: 'message', callback?: AsyncCallback<string | ArrayBuffer>): void; 438 on(type: 'close', callback: AsyncCallback<CloseResult>): void; [all …]
|
| D | @ohos.notification.d.ts | 65 function publish(request: NotificationRequest, callback: AsyncCallback<void>): void; 94 …function publish(request: NotificationRequest, userId: number, callback: AsyncCallback<void>): voi… 121 function cancel(id: number, callback: AsyncCallback<void>): void; 134 function cancel(id: number, label: string, callback: AsyncCallback<void>): void; 158 function cancelAll(callback: AsyncCallback<void>): void; 184 function addSlot(slot: NotificationSlot, callback: AsyncCallback<void>): void; 211 function addSlot(type: SlotType, callback: AsyncCallback<void>): void; 238 function addSlots(slots: Array<NotificationSlot>, callback: AsyncCallback<void>): void; 265 function getSlot(slotType: SlotType, callback: AsyncCallback<NotificationSlot>): void; 289 function getSlots(callback: AsyncCallback<Array<NotificationSlot>>): void; [all …]
|
| D | @ohos.multimodalInput.pointer.d.ts | 452 function setPointerSpeed(speed: number, callback: AsyncCallback<void>): void; 487 function getPointerSpeed(callback: AsyncCallback<number>): void; 520 …function setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback<voi… 554 function getPointerStyle(windowId: number, callback: AsyncCallback<PointerStyle>): void; 588 function setPointerVisible(visible: boolean, callback: AsyncCallback<void>): void; 622 function isPointerVisible(callback: AsyncCallback<boolean>): void; 653 function setPointerColor(color: number, callback: AsyncCallback<void>): void; 690 function getPointerColor(callback: AsyncCallback<number>): void; 725 function setPointerSize(size: number, callback: AsyncCallback<void>): void; 762 function getPointerSize(callback: AsyncCallback<number>): void; [all …]
|
| D | @ohos.telephony.call.d.ts | 41 function dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback<boolean>): void; 74 function dial(phoneNumber: string, callback: AsyncCallback<boolean>): void; 96 …function dialCall(phoneNumber: string, options: DialCallOptions, callback: AsyncCallback<void>): v… 139 function dialCall(phoneNumber: string, callback: AsyncCallback<void>): void; 154 function makeCall(phoneNumber: string, callback: AsyncCallback<void>): void; 179 function hasCall(callback: AsyncCallback<boolean>): void; 213 function getCallState(callback: AsyncCallback<CallState>): void; 260 function muteRinger(callback: AsyncCallback<void>): void; 308 …function isEmergencyPhoneNumber(phoneNumber: string, options: EmergencyNumberOptions, callback: As… 341 function isEmergencyPhoneNumber(phoneNumber: string, callback: AsyncCallback<boolean>): void; [all …]
|
| D | @ohos.application.formHost.d.ts | 47 function deleteForm(formId: string, callback: AsyncCallback<void>): void; 81 function releaseForm(formId: string, callback: AsyncCallback<void>): void; 100 …function releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback<void>): void; 137 function requestForm(formId: string, callback: AsyncCallback<void>): void; 171 function castTempForm(formId: string, callback: AsyncCallback<void>): void; 203 function notifyVisibleForms(formIds: Array<string>, callback: AsyncCallback<void>): void; 237 function notifyInvisibleForms(formIds: Array<string>, callback: AsyncCallback<void>): void; 271 function enableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void>): void; 305 function disableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void>): void; 335 function isSystemReady(callback: AsyncCallback<void>): void; [all …]
|
| D | @ohos.print.d.ts | 43 on(type: 'block', callback: Callback<void>): void; 54 on(type: 'succeed', callback: Callback<void>): void; 65 on(type: 'fail', callback: Callback<void>): void; 76 on(type: 'cancel', callback: Callback<void>): void; 87 off(type: 'block', callback?: Callback<void>): void; 98 off(type: 'succeed', callback?: Callback<void>): void; 109 off(type: 'fail', callback?: Callback<void>): void; 120 off(type: 'cancel', callback?: Callback<void>): void; 132 function print(files: Array<string>, callback: AsyncCallback<PrintTask>): void; 1002 …function queryAllPrinterExtensionInfos(callback: AsyncCallback<Array<PrinterExtensionInfo>>): void; [all …]
|
| D | @ohos.continuation.continuationManager.d.ts | 49 …function on(type: 'deviceSelected', token: number, callback: Callback<Array<ContinuationResult>>):… 86 …function on(type: 'deviceUnselected', token: number, callback: Callback<Array<ContinuationResult>>… 118 function on(type: 'deviceConnect', callback: Callback<ContinuationResult>): void; 133 function off(type: 'deviceConnect', callback?: Callback<ContinuationResult>): void; 147 function on(type: 'deviceDisconnect', callback: Callback<string>): void; 161 function off(type: 'deviceDisconnect', callback?: Callback<string>): void; 174 function register(callback: AsyncCallback<number>): void; 189 function register(options: ContinuationExtraParams, callback: AsyncCallback<number>): void; 217 function unregister(token: number, callback: AsyncCallback<void>): void; 249 callback: AsyncCallback<void> [all …]
|
| D | @ohos.multimedia.audio.d.ts | 114 …function createAudioCapturer(options: AudioCapturerOptions, callback: AsyncCallback<AudioCapturer>… 132 …function createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback<AudioRenderer>… 151 function createTonePlayer(options: AudioRendererInfo, callback: AsyncCallback<TonePlayer>): void; 1302 setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback<void>): void; 1324 getVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void; 1344 getMinVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void; 1364 getMaxVolume(volumeType: AudioVolumeType, callback: AsyncCallback<number>): void; 1384 getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void; 1405 mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback<void>): void; 1427 isMute(volumeType: AudioVolumeType, callback: AsyncCallback<boolean>): void; [all …]
|
| D | @ohos.wifi.d.ts | 98 function getScanInfos(callback: AsyncCallback<Array<WifiScanInfo>>): void; 130 function addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>): void; 162 function addUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback<boolean>): void; 192 function removeUntrustedConfig(config: WifiDeviceConfig, callback: AsyncCallback<boolean>): void; 273 function getLinkedInfo(callback: AsyncCallback<WifiLinkedInfo>): void; 585 function getP2pLinkedInfo(callback: AsyncCallback<WifiP2pLinkedInfo>): void; 609 function getCurrentGroup(callback: AsyncCallback<WifiP2pGroupInfo>): void; 633 function getP2pPeerDevices(callback: AsyncCallback<WifiP2pDevice[]>): void; 748 function on(type: 'wifiStateChange', callback: Callback<number>): void; 763 function off(type: 'wifiStateChange', callback?: Callback<number>): void; [all …]
|
| /interface/sdk-js/build-tools/api_diff/test/ut/new_api_001/new/api/ |
| D | new_api_001.d.ts | 41 function deleteForm(formId: string, callback: AsyncCallback<void>): void; 55 function deleteId(formId: string, callback: AsyncCallback<void>): void; 84 function releaseForm(formId: string, callback: AsyncCallback<void>): void; 100 …function releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback<void>): void; 132 function requestForm(formId: string, callback: AsyncCallback<void>): void; 160 function castToNormalForm(formId: string, callback: AsyncCallback<void>): void; 186 function notifyVisibleForms(formIds: Array<string>, callback: AsyncCallback<void>): void; 214 function notifyInvisibleForms(formIds: Array<string>, callback: AsyncCallback<void>): void; 242 function enableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void>): void; 270 function disableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void>): void; [all …]
|
| /interface/sdk-js/api/app/ |
| D | context.d.ts | 63 getOrCreateLocalDir(callback: AsyncCallback<string>): void; 95 …verifyPermission(permission: string, options: PermissionOptions, callback: AsyncCallback<number>):… 110 verifyPermission(permission: string, callback: AsyncCallback<number>): void; 148 getApplicationInfo(callback: AsyncCallback<ApplicationInfo>): void; 168 getBundleName(callback: AsyncCallback<string>): void; 188 getDisplayOrientation(callback: AsyncCallback<bundle.DisplayOrientation>): void; 209 getExternalCacheDir(callback: AsyncCallback<string>): void; 231 …setDisplayOrientation(orientation: bundle.DisplayOrientation, callback: AsyncCallback<void>): void; 258 setShowOnLockScreen(show: boolean, callback: AsyncCallback<void>): void; 286 setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback<void>): void; [all …]
|
| /interface/sdk-js/build-tools/api_diff/test/ut/new_api_001/old/api/ |
| D | new_api_001.d.ts | 41 function deleteForm(formId: string, callback: AsyncCallback<void>): void; 70 function releaseForm(formId: string, callback: AsyncCallback<void>): void; 86 …function releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback<void>): void; 118 function requestForm(formId: string, callback: AsyncCallback<void>): void; 146 function castToNormalForm(formId: string, callback: AsyncCallback<void>): void; 172 function notifyVisibleForms(formIds: Array<string>, callback: AsyncCallback<void>): void; 200 function notifyInvisibleForms(formIds: Array<string>, callback: AsyncCallback<void>): void; 228 function enableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void>): void; 256 function disableFormsUpdate(formIds: Array<string>, callback: AsyncCallback<void>): void; 281 function isSystemReady(callback: AsyncCallback<void>): void; [all …]
|