/interface/sdk-js/api/ |
D | @ohos.multimedia.media.d.ts | 487 …on(type: 'stateChange', callback: (state: AVPlayerState, reason: StateChangeReason) => void): void; method 496 on(type: 'volumeChange', callback: Callback<number>): void; method 505 on(type: 'endOfStream', callback: Callback<void>): void; method 514 on(type: 'seekDone', callback: Callback<number>): void; method 523 on(type: 'speedDone', callback: Callback<number>): void; method 532 on(type: 'bitrateDone', callback: Callback<number>): void; method 541 on(type: 'timeUpdate', callback: Callback<number>): void; method 550 on(type: 'durationUpdate', callback: Callback<number>): void; method 559 … on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void; method 568 on(type: 'startRenderFrame', callback: Callback<void>): void; method [all …]
|
D | @ohos.inputMethodEngine.d.ts | 318 …on(type: 'inputStart', callback: (kbController: KeyboardController, textInputClient: TextInputClie… method 333 on(type: 'keyboardShow'|'keyboardHide', callback: () => void): void; method 359 …on(type: 'inputStart', callback: (kbController: KeyboardController, inputClient: InputClient) => v… method 377 on(type: 'inputStop', callback: () => void): void; method 395 on(type: 'setCallingWindow', callback: (wid:number) => void): void; method 413 on(type: 'keyboardShow'|'keyboardHide', callback: () => void): void; method 431 on(type: 'setSubtype', callback: (inputMethodSubtype: InputMethodSubtype) => void): void; method 749 on(type: 'keyDown'|'keyUp', callback: (event: KeyEvent) => boolean): void; method 763 … on(type: 'cursorContextChange', callback: (x: number, y: number, height: number) => void): void; method 777 …on(type: 'selectionChange', callback: (oldBegin: number, oldEnd: number, newBegin: number, newEnd:… method [all …]
|
D | @ohos.multimedia.camera.d.ts | 340 on(type: 'cameraStatus', callback: AsyncCallback<CameraStatusInfo>): void; method 350 on(type: 'cameraMute', callback: AsyncCallback<boolean>): void; method 595 on(type: 'error', camera: CameraDevice, callback: ErrorCallback<BusinessError>): void; method 1133 on(type: 'focusStateChange', callback: AsyncCallback<FocusState>): void; method 1142 on(type: 'error', callback: ErrorCallback<BusinessError>): void; method 1217 on(type: 'frameStart', callback: AsyncCallback<void>): void; method 1226 on(type: 'frameEnd', callback: AsyncCallback<void>): void; method 1235 on(type: 'error', callback: ErrorCallback<BusinessError>): void; method 1420 on(type: 'captureStart', callback: AsyncCallback<number>): void; method 1429 on(type: 'frameShutter', callback: AsyncCallback<FrameShutterInfo>): void; method [all …]
|
D | @ohos.data.distributedDataObject.d.ts | 146 on(type: 'change', callback: Callback<{ sessionId: string, fields: Array<string> }>): void; method 180 on(type: 'status', method 254 on(type: 'change', callback: Callback<{ sessionId: string, fields: Array<string> }>): void; method 287 on(type: 'status', method
|
D | @ohos.net.webSocket.d.ts | 91 on(type: 'open', callback: AsyncCallback<Object>): void; method 102 on(type: 'message', callback: AsyncCallback<string | ArrayBuffer>): void; method 113 on(type: 'close', callback: AsyncCallback<{ code: number, reason: string }>): void; method 123 on(type: 'error', callback: ErrorCallback): void; method
|
D | @ohos.net.socket.d.ts | 187 …on(type: 'message', callback: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): voi… method 197 on(type: 'listening' | 'close', callback: Callback<void>): void; method 207 on(type: 'error', callback: ErrorCallback): void; method 337 …on(type: 'message', callback: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): voi… method 347 on(type: 'connect' | 'close', callback: Callback<void>): void; method 357 on(type: 'error', callback: ErrorCallback): void; method 419 …on(type: 'message', callback: Callback<{message: ArrayBuffer, remoteInfo: SocketRemoteInfo}>): voi… method 433 on(type: 'connect' | 'close', callback: Callback<void>): void; method 447 on(type: 'error', callback: ErrorCallback): void; method
|
D | @ohos.multimedia.avsession.d.ts | 130 …function on(type: 'sessionCreate' | 'sessionDestroy' | 'topSessionChange', callback: (session: AVS… function 996 …on(type: 'metadataChange', filter: Array<keyof AVMetadata> | 'all', callback: (data: AVMetadata) =… method 1025 …on(type: 'playbackStateChange', filter: Array<keyof AVPlaybackState> | 'all', callback: (state: AV… method 1051 on(type: 'sessionDestroy', callback: () => void); method 1076 on(type: 'activeStateChange', callback: (isActive: boolean) => void); method 1102 on(type: 'validCommandChange', callback: (commands: Array<AVControlCommandType>) => void); method 1129 on(type: 'outputDeviceChange', callback: (device: OutputDeviceInfo) => void): void; method
|
D | @ohos.request.d.ts | 541 on(type: 'progress', callback: (receivedSize: number, totalSize: number) => void): void; method 566 on(type: 'complete' | 'pause' | 'remove', callback: () => void): void; method 590 on(type: 'fail', callback: (err: number) => void): void; method 978 on(type: 'progress', callback: (uploadedSize: number, totalSize: number) => void): void; method 1001 on(type: 'headerReceive', callback: (header: object) => void): void; method 1024 on(type:'complete' | 'fail', callback: Callback<Array<TaskState>>): void; method
|
D | @ohos.multimedia.audio.d.ts | 1410 on(type: 'volumeChange', callback: Callback<VolumeEvent>): void; method 1420 on(type: 'ringerModeChange', callback: Callback<AudioRingMode>): void; method 1463 on(type: 'deviceChange', callback: Callback<DeviceChangeAction>): void; method 1484 on(type: 'interrupt', interrupt: AudioInterrupt, callback: Callback<InterruptAction>): void; method 1600 on(type: 'deviceChange', deviceFlag: DeviceFlag, callback: Callback<DeviceChangeAction>): void; method 1756 on(type: "audioRendererChange", callback: Callback<AudioRendererChangeInfoArray>): void; method 1777 on(type: "audioCapturerChange", callback: Callback<AudioCapturerChangeInfoArray>): void; method 1858 on(type: 'volumeChange', callback: Callback<VolumeEvent>): void; method 2027 on(type: 'ringerModeChange', callback: Callback<AudioRingMode>): void; method 2073 on(type: 'micStateChange', callback: Callback<MicStateChangeEvent>): void; method [all …]
|
D | @ohos.app.ability.UIAbility.d.ts | 114 on(type: "release", callback: OnReleaseCallback): void; method 157 on(method: string, callback: CalleeCallback): void; method
|
D | @ohos.app.ability.errorManager.d.ts | 36 function on(type: "error", observer: ErrorObserver): number; function
|
D | @ohos.app.ability.missionManager.d.ts | 42 function on(type: "mission", listener: MissionListener): number; function
|
D | @ohos.multimodalInput.inputMonitor.d.ts | 49 function on(type:"touch", receiver:TouchEventReceiver):void; function
|
D | @ohos.continuation.continuationManager.d.ts | 44 …function on(type: "deviceSelected", token: number, callback: Callback<Array<ContinuationResult>>):… function
|
D | @ohos.bundle.bundleMonitor.d.ts | 70 function on(type: BundleChangedEvent, callback: Callback<BundleChangedInfo>): void; function
|
D | @ohos.multimodalInput.inputConsumer.d.ts | 55 function on(type: "key", keyOptions: KeyOptions, callback: Callback<KeyOptions>): void; function
|
D | @ohos.window.d.ts | 1562 on(type: 'windowSizeChange', callback: Callback<Size>): void; method 1581 on(type: 'systemAvoidAreaChange', callback: Callback<AvoidArea>): void; method 1600 on(type: 'avoidAreaChange', callback: Callback<{ type: AvoidAreaType, area: AvoidArea }>): void; method 1618 on(type: 'keyboardHeightChange', callback: Callback<number>): void; method 1635 on(type: 'touchOutside', callback: Callback<void>): void; method 1652 on(type: 'screenshot', callback: Callback<void>): void; method 2386 on(eventType: 'windowStageEvent', callback: Callback<WindowStageEventType>): void; method
|
D | @ohos.mediaquery.d.ts | 49 on(type: 'change', callback: Callback<MediaQueryResult>): void; method
|
D | @ohos.events.emitter.d.ts | 35 function on(event: InnerEvent, callback: Callback<EventData>): void; function
|
D | @ohos.stationary.d.ts | 94 …function on(activity: ActivityType, event: ActivityEvent, reportLatencyNs: number, callback: Callb… function
|
D | @ohos.app.ability.appManager.d.ts | 74 function on(type: "applicationState", observer: ApplicationStateObserver): number; function
|
D | @ohos.net.http.d.ts | 135 on(type: "headerReceive", callback: AsyncCallback<Object>): void; method 150 on(type: "headersReceive", callback: Callback<Object>): void; method
|
D | @ohos.multimodalInput.inputDevice.d.ts | 98 function on(type: "change", listener: Callback<DeviceListener>): void; function
|
/interface/sdk-js/api/application/ |
D | EventHub.d.ts | 34 on(event: string, callback: Function): void method in EventHub
|
D | ApplicationContext.d.ts | 39 on(type: "abilityLifecycle", callback: AbilityLifecycleCallback): number; method in ApplicationContext
|