diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index ba9645edc9171895a40e2693093f433d7f0a44a4..f31a2193e74671ea592ea4c7a0d6a9052d439c16 100644 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -2753,8 +2753,7 @@ declare namespace media { * @param { Callback> } callback - Callback used to listen for the mediaKeySystemInfoUpdate event. * @syscap SystemCapability.Multimedia.Media.AVPlayer * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'mediaKeySystemInfoUpdate', callback: Callback>): void; @@ -2771,8 +2770,7 @@ declare namespace media { * @param { Callback> } callback - Callback for event. * @syscap SystemCapability.Multimedia.Media.AVPlayer * @atomicservice - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'mediaKeySystemInfoUpdate', callback?: Callback>): void; diff --git a/api/multimedia/soundPool.d.ts b/api/multimedia/soundPool.d.ts index 8d4c7352963cd16439abd87b9926bc38b2d854f1..045a0cc6861c3bd209a3136774ea42cc45f08f0e 100644 --- a/api/multimedia/soundPool.d.ts +++ b/api/multimedia/soundPool.d.ts @@ -389,19 +389,17 @@ export interface SoundPool { * @param {'loadComplete'} type Type of the play finish event to listen for. * @param {Callback} callback Callback used to listen for load result event * @syscap SystemCapability.Multimedia.Media.SoundPool - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ - on(type: 'loadComplete', callback: Callback): void; + on(type: 'loadComplete', callback: Callback): void; /** * Cancel Listens for load result event. * * @param {'loadComplete'} type Type of the play finish event to listen for. * @syscap SystemCapability.Multimedia.Media.SoundPool - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ - off(type: 'loadComplete'): void; + off(type: 'loadComplete'): void; /** * Register the listener for playing finished event. The conditions which this event is called * are the same as {@link #playFinished}, additionally, this event can callback the streamId of finishing playing. @@ -411,18 +409,16 @@ export interface SoundPool { * @param {'playFinishedWithStreamId'} type name of the play finished event to listen for. * @param {Callback} callback Callback used to listen which stream id has finished playback. * @syscap SystemCapability.Multimedia.Media.SoundPool - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ on(type: 'playFinishedWithStreamId', callback: Callback): void; - /** - * Cancel listening for playing finished event. - * - * @param {'playFinishedWithStreamId'} type name of the play finished event to listen for. - * @syscap SystemCapability.Multimedia.Media.SoundPool - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ + /** + * Cancel listening for playing finished event. + * + * @param {'playFinishedWithStreamId'} type name of the play finished event to listen for. + * @syscap SystemCapability.Multimedia.Media.SoundPool + * @since 18 + */ off(type: 'playFinishedWithStreamId'): void; /** * Register listens for play finish event. @@ -430,19 +426,17 @@ export interface SoundPool { * @param {'playFinished'} type Type of the play finish event to listen for. * @param {Callback} callback Callback used to listen for the play finish * @syscap SystemCapability.Multimedia.Media.SoundPool - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ - on(type: 'playFinished', callback: Callback): void; + on(type: 'playFinished', callback: Callback): void; /** * Cancel Listens for play finish event. * * @param {'playFinished'} type of the play finish event to listen for. * @syscap SystemCapability.Multimedia.Media.SoundPool - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ - off(type: 'playFinished'): void; + off(type: 'playFinished'): void; /** * Register listens for sound play error events. * @@ -451,15 +445,14 @@ export interface SoundPool { * @syscap SystemCapability.Multimedia.Media.SoundPool * @since 10 */ - on(type: 'error', callback: ErrorCallback): void; + on(type: 'error', callback: ErrorCallback): void; /** * Cancel Listens for sound play error events. * * @param {'error'} type Type of the sound play error event to listen for. * @syscap SystemCapability.Multimedia.Media.SoundPool - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ - off(type: 'error'): void; + off(type: 'error'): void; }